forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
100
Kha/Tools/macos/std/php/db/Mysqli.hx
Normal file
100
Kha/Tools/macos/std/php/db/Mysqli.hx
Normal file
@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import haxe.extern.*;
|
||||
import php.*;
|
||||
import haxe.Constraints.Function;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/class.mysqli.php
|
||||
**/
|
||||
@:native('Mysqli')
|
||||
extern class Mysqli {
|
||||
var affected_rows(default, null):Int;
|
||||
var client_info(default, null):String;
|
||||
var client_version(default, null):Int;
|
||||
var connect_errno(default, null):Int;
|
||||
var connect_error(default, null):String;
|
||||
var errno(default, null):Int;
|
||||
var error_list(default, null):NativeAssocArray<Scalar>;
|
||||
var error(default, null):String;
|
||||
var field_count(default, null):Int;
|
||||
var host_info(default, null):String;
|
||||
var protocol_version(default, null):String;
|
||||
var server_info(default, null):String;
|
||||
var server_version(default, null):Int;
|
||||
var info(default, null):String;
|
||||
var insert_id(default, null):EitherType<Int, String>;
|
||||
var sqlstate(default, null):String;
|
||||
var thread_id(default, null):Int;
|
||||
var warning_count(default, null):Int;
|
||||
|
||||
static function poll(read:Ref<NativeArray>, error:Ref<NativeArray>, reject:Ref<NativeArray>, sec:Int, ?usec:Int):Int;
|
||||
|
||||
function new(?host:String, ?username:String, ?passwd:String, dbname:String = "", ?port:Int, ?socket:String):Void;
|
||||
function autocommit(mode:Bool):Bool;
|
||||
function begin_transaction(?flags:Int, ?name:String):Bool;
|
||||
function change_user(user:String, password:String, database:String):Bool;
|
||||
function character_set_name():String;
|
||||
function close():Bool;
|
||||
function commit(?flags:Int, ?name:String):Bool;
|
||||
function debug(message:String):Bool;
|
||||
function dump_debug_info():Bool;
|
||||
function get_charset():{
|
||||
charset:String,
|
||||
collation:String,
|
||||
dir:String,
|
||||
min_length:Int,
|
||||
number:Int,
|
||||
state:Int
|
||||
};
|
||||
function get_client_info():String;
|
||||
function get_connection_stats():Bool;
|
||||
function get_warnings():Mysqli_warning;
|
||||
function init():Mysqli;
|
||||
function kill(processid:Int):Bool;
|
||||
function more_results():Bool;
|
||||
function multi_query(query:String):Bool;
|
||||
function next_result():Bool;
|
||||
function options(option:Int, value:Scalar):Bool;
|
||||
function ping():Bool;
|
||||
function prepare(query:String):Mysqli_stmt;
|
||||
function query(query:String, ?resultmode:Int):EitherType<Bool, Mysqli_result>;
|
||||
function real_connect(?host:String, ?username:String, ?passwd:String, ?dbname:String, ?port:Int, ?socket:String, ?flags:Int):Bool;
|
||||
function escape_string(escapestr:String):String;
|
||||
function real_query(query:String):Bool;
|
||||
function reap_async_query():Mysqli_result;
|
||||
function refresh(options:Int):Bool;
|
||||
function rollback(?flags:Int, ?name:String):Bool;
|
||||
function rpl_query_type(query:String):Int;
|
||||
function select_db(dbname:String):Bool;
|
||||
function send_query(query:String):Bool;
|
||||
function set_charset(charset:String):Bool;
|
||||
function set_local_infile_handler(read_func:Function):Bool;
|
||||
function ssl_set(key:String, cert:String, ca:String, capath:String, cipher:String):Bool;
|
||||
function stat():String;
|
||||
function stmt_init():Mysqli_stmt;
|
||||
function store_result(?option:Int):Mysqli_result;
|
||||
function use_result():Mysqli_result;
|
||||
}
|
38
Kha/Tools/macos/std/php/db/Mysqli_driver.hx
Normal file
38
Kha/Tools/macos/std/php/db/Mysqli_driver.hx
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import php.NativeArray;
|
||||
|
||||
@:native('Mysqli_driver')
|
||||
extern class Mysqli_driver {
|
||||
var client_info(default, null):String;
|
||||
var client_version(default, null):String;
|
||||
var driver_version(default, null):String;
|
||||
var embedded(default, null):String;
|
||||
var reconnect(default, null):Bool;
|
||||
var report_mode(default, null):Int;
|
||||
|
||||
function embedded_server_end():Void;
|
||||
function embedded_server_start(start:Bool, arguments:NativeArray, groups:NativeArray):Bool;
|
||||
}
|
62
Kha/Tools/macos/std/php/db/Mysqli_result.hx
Normal file
62
Kha/Tools/macos/std/php/db/Mysqli_result.hx
Normal file
@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import php.*;
|
||||
import haxe.extern.*;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/class.mysqli-result.php
|
||||
**/
|
||||
@:native('Myslqi_result')
|
||||
extern class Mysqli_result implements Traversable {
|
||||
var current_field(default, null):Int;
|
||||
var field_count(default, null):Int;
|
||||
var lengths(default, null):EitherType<Bool, NativeIndexedArray<Int>>;
|
||||
var num_rows(default, null):Int;
|
||||
|
||||
function data_seek(offset:Int):Bool;
|
||||
function fetch_all(?resulttype:Int):NativeArray;
|
||||
function fetch_array(?resulttype:Int):NativeArray;
|
||||
function fetch_assoc():NativeAssocArray<String>;
|
||||
function fetch_field_direct(fieldnr:Int):MysqliFieldInfo;
|
||||
function fetch_field():MysqliFieldInfo;
|
||||
function fetch_fields():NativeIndexedArray<MysqliFieldInfo>;
|
||||
function fetch_object(?class_name:String = "stdClass", ?params:NativeArray):{};
|
||||
function fetch_row():NativeIndexedArray<String>;
|
||||
function field_seek(fieldnr:Int):Bool;
|
||||
function free():Void;
|
||||
}
|
||||
|
||||
typedef MysqliFieldInfo = {
|
||||
name:String,
|
||||
orgname:String,
|
||||
table:String,
|
||||
orgtable:String,
|
||||
max_length:Int,
|
||||
length:Int,
|
||||
charsetnr:Int,
|
||||
flags:Int,
|
||||
type:Int,
|
||||
decimals:Int
|
||||
}
|
57
Kha/Tools/macos/std/php/db/Mysqli_stmt.hx
Normal file
57
Kha/Tools/macos/std/php/db/Mysqli_stmt.hx
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import haxe.extern.*;
|
||||
import php.*;
|
||||
|
||||
@:native('Mysqli_stmt')
|
||||
extern class Mysqli_stmt {
|
||||
var affected_rows(default, null):Int;
|
||||
var errno(default, null):Int;
|
||||
var error_list(default, null):NativeArray;
|
||||
var error(default, null):String;
|
||||
var field_count(default, null):Int;
|
||||
var insert_id(default, null):Int;
|
||||
var num_rows(default, null):Int;
|
||||
var param_count(default, null):Int;
|
||||
var sqlstate(default, null):String;
|
||||
|
||||
function new(link:Mysqli, ?query:String):Void;
|
||||
function attr_get(attr:Int):Int;
|
||||
function attr_set(attr:Int, mode:Int):Bool;
|
||||
function bind_param(types:String, var1:Ref<Dynamic>, args:Rest<Ref<Dynamic>>):Bool;
|
||||
function bind_result(var1:Ref<Dynamic>, args:Rest<Ref<Dynamic>>):Bool;
|
||||
function close():Bool;
|
||||
function data_seek(offset:Int):Void;
|
||||
function execute():Bool;
|
||||
function fetch():Bool;
|
||||
function free_result():Void;
|
||||
function get_result():Mysqli_result;
|
||||
function get_warnings(stmt:Mysqli_stmt):{};
|
||||
function prepare(query:String):Bool;
|
||||
function reset():Bool;
|
||||
function result_metadata():Mysqli_result;
|
||||
function send_long_data(param_nr:Int, data:String):Bool;
|
||||
function store_result():Bool;
|
||||
}
|
32
Kha/Tools/macos/std/php/db/Mysqli_warning.hx
Normal file
32
Kha/Tools/macos/std/php/db/Mysqli_warning.hx
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
@:native('Mysqli_warning')
|
||||
extern class Mysqli_warning {
|
||||
var message(default, null):String;
|
||||
var sqlstate(default, null):Dynamic;
|
||||
var errno(default, null):Int;
|
||||
|
||||
function next():Void;
|
||||
}
|
109
Kha/Tools/macos/std/php/db/PDO.hx
Normal file
109
Kha/Tools/macos/std/php/db/PDO.hx
Normal file
@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import php.*;
|
||||
|
||||
@:native('PDO')
|
||||
extern class PDO {
|
||||
@:phpClassConst static final PARAM_BOOL:Int;
|
||||
@:phpClassConst static final PARAM_NULL:Int;
|
||||
@:phpClassConst static final PARAM_INT:Int;
|
||||
@:phpClassConst static final PARAM_STR:Int;
|
||||
@:phpClassConst static final PARAM_LOB:Int;
|
||||
@:phpClassConst static final PARAM_STMT:Int;
|
||||
@:phpClassConst static final PARAM_INPUT_OUTPUT:Int;
|
||||
@:phpClassConst static final FETCH_LAZY:Int;
|
||||
@:phpClassConst static final FETCH_ASSOC:Int;
|
||||
@:phpClassConst static final FETCH_NAMED:Int;
|
||||
@:phpClassConst static final FETCH_NUM:Int;
|
||||
@:phpClassConst static final FETCH_BOTH:Int;
|
||||
@:phpClassConst static final FETCH_OBJ:Int;
|
||||
@:phpClassConst static final FETCH_BOUND:Int;
|
||||
@:phpClassConst static final FETCH_COLUMN:Int;
|
||||
@:phpClassConst static final FETCH_CLASS:Int;
|
||||
@:phpClassConst static final FETCH_INTO:Int;
|
||||
@:phpClassConst static final FETCH_FUNC:Int;
|
||||
@:phpClassConst static final FETCH_GROUP:Int;
|
||||
@:phpClassConst static final FETCH_UNIQUE:Int;
|
||||
@:phpClassConst static final FETCH_KEY_PAIR:Int;
|
||||
@:phpClassConst static final FETCH_CLASSTYPE:Int;
|
||||
@:phpClassConst static final FETCH_SERIALIZE:Int;
|
||||
@:phpClassConst static final FETCH_PROPS_LATE:Int;
|
||||
@:phpClassConst static final ATTR_AUTOCOMMIT:Int;
|
||||
@:phpClassConst static final ATTR_PREFETCH:Int;
|
||||
@:phpClassConst static final ATTR_TIMEOUT:Int;
|
||||
@:phpClassConst static final ATTR_ERRMODE:Int;
|
||||
@:phpClassConst static final ATTR_SERVER_VERSION:Int;
|
||||
@:phpClassConst static final ATTR_CLIENT_VERSION:Int;
|
||||
@:phpClassConst static final ATTR_SERVER_INFO:Int;
|
||||
@:phpClassConst static final ATTR_CONNECTION_STATUS:Int;
|
||||
@:phpClassConst static final ATTR_CASE:Int;
|
||||
@:phpClassConst static final ATTR_CURSOR_NAME:Int;
|
||||
@:phpClassConst static final ATTR_CURSOR:Int;
|
||||
@:phpClassConst static final ATTR_DRIVER_NAME:Int;
|
||||
@:phpClassConst static final ATTR_ORACLE_NULLS:Int;
|
||||
@:phpClassConst static final ATTR_PERSISTENT:Int;
|
||||
@:phpClassConst static final ATTR_STATEMENT_CLASS:Int;
|
||||
@:phpClassConst static final ATTR_DEFAULT_FETCH_MODE:Int;
|
||||
@:phpClassConst static final ATTR_FETCH_TABLE_NAMES:Int;
|
||||
@:phpClassConst static final ATTR_STRINGIFY_FETCHES:Int;
|
||||
@:phpClassConst static final ATTR_EMULATE_PREPARES:Int;
|
||||
@:phpClassConst static final ERRMODE_SILENT:Int;
|
||||
@:phpClassConst static final ERRMODE_WARNING:Int;
|
||||
@:phpClassConst static final ERRMODE_EXCEPTION:Int;
|
||||
@:phpClassConst static final CASE_NATURAL:Int;
|
||||
@:phpClassConst static final CASE_LOWER:Int;
|
||||
@:phpClassConst static final CASE_UPPER:Int;
|
||||
@:phpClassConst static final NULL_NATURAL:Int;
|
||||
@:phpClassConst static final FETCH_ORI_PRIOR:Int;
|
||||
@:phpClassConst static final FETCH_ORI_FIRST:Int;
|
||||
@:phpClassConst static final FETCH_ORI_LAST:Int;
|
||||
@:phpClassConst static final FETCH_ORI_ABS:Int;
|
||||
@:phpClassConst static final FETCH_ORI_REL:Int;
|
||||
@:phpClassConst static final CURSOR_FWDONLY:Int;
|
||||
@:phpClassConst static final CURSOR_SCROLL:Int;
|
||||
@:phpClassConst static final ERR_NONE:String;
|
||||
@:phpClassConst static final PARAM_EVT_ALLOC:Int;
|
||||
@:phpClassConst static final PARAM_EVT_FREE:Int;
|
||||
@:phpClassConst static final PARAM_EVT_EXEC_PRE:Int;
|
||||
@:phpClassConst static final PARAM_EVT_EXEC_POST:Int;
|
||||
@:phpClassConst static final PARAM_EVT_FETCH_PRE:Int;
|
||||
@:phpClassConst static final PARAM_EVT_FETCH_POST:Int;
|
||||
@:phpClassConst static final PARAM_EVT_NORMALIZE:Int;
|
||||
|
||||
function new(dns:String, ?username:String, ?password:String, ?options:NativeArray):Void;
|
||||
function beginTransaction():Bool;
|
||||
function commit():Bool;
|
||||
function errorCode():Dynamic;
|
||||
function errorInfo():NativeArray;
|
||||
function exec(statement:String):Int;
|
||||
function getAttribute(attribute:Int):Dynamic;
|
||||
function getAvailableDrivers():NativeArray;
|
||||
function lastInsertId(?name:String):String;
|
||||
function prepare(statement:String, ?driver_options:NativeArray):PDOStatement;
|
||||
function query(statement:String, ?mode:Int):PDOStatement;
|
||||
function quote(String:String, ?parameter_type:Int = 2):String;
|
||||
function rollBack():Bool;
|
||||
function setAttribute(attribute:Int, value:Dynamic):Bool;
|
||||
}
|
30
Kha/Tools/macos/std/php/db/PDOException.hx
Normal file
30
Kha/Tools/macos/std/php/db/PDOException.hx
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import php.RuntimeException;
|
||||
|
||||
@:native('PDOException')
|
||||
extern class PDOException extends RuntimeException {
|
||||
var errorInfo:NativeArray;
|
||||
}
|
48
Kha/Tools/macos/std/php/db/PDOStatement.hx
Normal file
48
Kha/Tools/macos/std/php/db/PDOStatement.hx
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import php.*;
|
||||
|
||||
@:native('PDOStatement')
|
||||
extern class PDOStatement {
|
||||
function bindColumn(column:Dynamic, param:Dynamic, ?type:Int, ?maxlen:Int, ?driverdata:Dynamic):Bool;
|
||||
function bindParam(parameter:Dynamic, variable:Dynamic, ?data_type:Int, ?length:Int, ?driver_options:Dynamic):Bool;
|
||||
function bindValue(parameter:Dynamic, value:Dynamic, ?data_type:Int):Bool;
|
||||
function closeCursor():Bool;
|
||||
function columnCount():Int;
|
||||
function debugDumpParams():Bool;
|
||||
function errorCode():String;
|
||||
function errorInfo():NativeArray;
|
||||
function execute(?input_parameters:NativeArray):Bool;
|
||||
function fetch(?fetch_style:Int = 4, ?cursor_orientation:Int = 0, ?cursor_offset:Int = 0):Dynamic;
|
||||
function fetchAll(?fetch_style:Int, ?fetch_argument:Dynamic, ?ctor_args:NativeArray):NativeArray;
|
||||
function fetchColumn(?column_number:Int = 0):String;
|
||||
function fetchObject(?class_name:String, ?ctor_args:NativeArray):Dynamic;
|
||||
function getAttribute(attribute:Int):Dynamic;
|
||||
function getColumnMeta(column:Int):NativeArray;
|
||||
function nextRowset():Bool;
|
||||
function rowCount():Int;
|
||||
function setAttribute(attribute:Int, value:Dynamic):Bool;
|
||||
function setFetchMode(mode:Int, ?fetch:Dynamic, ?ctorargs:NativeArray):Bool;
|
||||
}
|
50
Kha/Tools/macos/std/php/db/SQLite3.hx
Normal file
50
Kha/Tools/macos/std/php/db/SQLite3.hx
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import haxe.Constraints;
|
||||
import php.*;
|
||||
import haxe.extern.EitherType;
|
||||
|
||||
@:native('SQLite3')
|
||||
extern class SQLite3 {
|
||||
static function version():NativeArray;
|
||||
static function escapeString(value:String):String;
|
||||
function busyTimeout(msecs:Int):Bool;
|
||||
function changes():Int;
|
||||
function close():Bool;
|
||||
function new(filename:String, ?flags:Int, encryption_key:String = null):Void;
|
||||
function createAggregate(name:String, step_callback:Function, final_callback:Function, argument_count:Int = -1):Bool;
|
||||
function createCollation(name:String, callback:Function):Bool;
|
||||
function createFunction(name:String, callback:Function, argument_count:Int = -1):Bool;
|
||||
function enableExceptions(enableExceptions:Bool = false):Bool;
|
||||
function exec(query:String):Bool;
|
||||
function lastErrorCode():Int;
|
||||
function lastErrorMsg():String;
|
||||
function lastInsertRowID():Int;
|
||||
function loadExtension(shared_library:String):Bool;
|
||||
function open(filename:String, ?flags:Int, encryption_key:String = null):Void;
|
||||
function prepare(query:String):SQLite3Stmt;
|
||||
function query(query:String):EitherType<Bool, SQLite3Result>;
|
||||
function querySingle(query:String, entire_row:Bool = false):Dynamic;
|
||||
}
|
36
Kha/Tools/macos/std/php/db/SQLite3Result.hx
Normal file
36
Kha/Tools/macos/std/php/db/SQLite3Result.hx
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import php.*;
|
||||
import haxe.extern.EitherType;
|
||||
|
||||
@:native('SQLite3Result')
|
||||
extern class SQLite3Result {
|
||||
function columnName(column_number:Int):String;
|
||||
function columnType(column_number:Int):Int;
|
||||
function fetchArray(?mode:Int):EitherType<Bool, NativeAssocArray<String>>;
|
||||
function finalize():Bool;
|
||||
function numColumns():Int;
|
||||
function reset():Bool;
|
||||
}
|
38
Kha/Tools/macos/std/php/db/SQLite3Stmt.hx
Normal file
38
Kha/Tools/macos/std/php/db/SQLite3Stmt.hx
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package php.db;
|
||||
|
||||
import php.*;
|
||||
import haxe.extern.EitherType;
|
||||
|
||||
@:native('SQLite3Stmt')
|
||||
extern class SQLite3Stmt {
|
||||
function bindParam(sql_param:EitherType<String, Int>, param:Ref<Dynamic>, ?type:Int):Bool;
|
||||
function bindValue(sql_param:EitherType<String, Int>, value:Dynamic, ?type:Int):Bool;
|
||||
function clear():Bool;
|
||||
function close():Bool;
|
||||
function execute():SQLite3Result;
|
||||
function paramCount():Int;
|
||||
function readOnly():Bool;
|
||||
function reset():Bool;
|
||||
}
|
Reference in New Issue
Block a user