Skip to content

Commit d451662

Browse files
Update SQLiteConnection.hx
1 parent 99820bb commit d451662

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/crossbyte/db/sql/sqlite/SQLiteConnection.hx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import haxe.Int64;
2727
*/
2828
@:access(crossbyte.db.sql.sqlite.SQLiteStatement)
2929
class SQLiteConnection extends EventDispatcher {
30-
public static inline var isSupported:Bool = #if windows true; #else false; #end
30+
public static inline var isSupported:Bool = #if cpp true; #else false; #end
3131

3232
@:noCompletion private static inline var DEFAULT_CACHE_SIZE:UInt = 2000;
3333

@@ -343,6 +343,18 @@ class SQLiteConnection extends EventDispatcher {
343343
}
344344
}
345345

346+
public inline function request(sql:String):ResultSet {
347+
return __connection.request(sql);
348+
}
349+
350+
public inline function escape(value:String):String {
351+
return __connection.escape(value);
352+
}
353+
354+
public inline function quote(value:String):String {
355+
return __connection.quote(value);
356+
}
357+
346358
public function commit():Void {
347359
if (__async) {
348360
#if cpp

0 commit comments

Comments
 (0)