diff --git a/demo/addons/godot-sqlite/bin/android/arm64-v8a/libgdsqlite.so b/demo/addons/godot-sqlite/bin/android/arm64-v8a/libgdsqlite.so index 1c4f3c4..40c63f1 100644 Binary files a/demo/addons/godot-sqlite/bin/android/arm64-v8a/libgdsqlite.so and b/demo/addons/godot-sqlite/bin/android/arm64-v8a/libgdsqlite.so differ diff --git a/demo/addons/godot-sqlite/bin/android/armeabi-v7a/libgdsqlite.so b/demo/addons/godot-sqlite/bin/android/armeabi-v7a/libgdsqlite.so index 1727549..e51b345 100644 Binary files a/demo/addons/godot-sqlite/bin/android/armeabi-v7a/libgdsqlite.so and b/demo/addons/godot-sqlite/bin/android/armeabi-v7a/libgdsqlite.so differ diff --git a/demo/addons/godot-sqlite/bin/android/x86/libgdsqlite.so b/demo/addons/godot-sqlite/bin/android/x86/libgdsqlite.so index 515af29..072961e 100644 Binary files a/demo/addons/godot-sqlite/bin/android/x86/libgdsqlite.so and b/demo/addons/godot-sqlite/bin/android/x86/libgdsqlite.so differ diff --git a/demo/addons/godot-sqlite/bin/ios/arm64/libgdsqlite.a b/demo/addons/godot-sqlite/bin/ios/arm64/libgdsqlite.a index 1759148..325ab57 100644 Binary files a/demo/addons/godot-sqlite/bin/ios/arm64/libgdsqlite.a and b/demo/addons/godot-sqlite/bin/ios/arm64/libgdsqlite.a differ diff --git a/demo/addons/godot-sqlite/bin/ios/arm64/libgodot-cpp.ios.release.arm64.a b/demo/addons/godot-sqlite/bin/ios/arm64/libgodot-cpp.ios.release.arm64.a index 4560c46..2f9560a 100644 Binary files a/demo/addons/godot-sqlite/bin/ios/arm64/libgodot-cpp.ios.release.arm64.a and b/demo/addons/godot-sqlite/bin/ios/arm64/libgodot-cpp.ios.release.arm64.a differ diff --git a/demo/addons/godot-sqlite/bin/ios/armv7/libgdsqlite.a b/demo/addons/godot-sqlite/bin/ios/armv7/libgdsqlite.a index 18c1c2f..76969ac 100644 Binary files a/demo/addons/godot-sqlite/bin/ios/armv7/libgdsqlite.a and b/demo/addons/godot-sqlite/bin/ios/armv7/libgdsqlite.a differ diff --git a/demo/addons/godot-sqlite/bin/ios/armv7/libgodot-cpp.ios.release.armv7.a b/demo/addons/godot-sqlite/bin/ios/armv7/libgodot-cpp.ios.release.armv7.a index 96accc9..ca806f0 100644 Binary files a/demo/addons/godot-sqlite/bin/ios/armv7/libgodot-cpp.ios.release.armv7.a and b/demo/addons/godot-sqlite/bin/ios/armv7/libgodot-cpp.ios.release.armv7.a differ diff --git a/demo/addons/godot-sqlite/bin/javascript/libgdsqlite.wasm b/demo/addons/godot-sqlite/bin/javascript/libgdsqlite.wasm index bd7b490..545861f 100644 Binary files a/demo/addons/godot-sqlite/bin/javascript/libgdsqlite.wasm and b/demo/addons/godot-sqlite/bin/javascript/libgdsqlite.wasm differ diff --git a/demo/addons/godot-sqlite/bin/osx/libgdsqlite.dylib b/demo/addons/godot-sqlite/bin/osx/libgdsqlite.dylib index 828884a..df39cc4 100755 Binary files a/demo/addons/godot-sqlite/bin/osx/libgdsqlite.dylib and b/demo/addons/godot-sqlite/bin/osx/libgdsqlite.dylib differ diff --git a/demo/addons/godot-sqlite/bin/win64/libgdsqlite.dll b/demo/addons/godot-sqlite/bin/win64/libgdsqlite.dll index cd4032b..dca45ef 100644 Binary files a/demo/addons/godot-sqlite/bin/win64/libgdsqlite.dll and b/demo/addons/godot-sqlite/bin/win64/libgdsqlite.dll differ diff --git a/demo/addons/godot-sqlite/bin/x11/libgdsqlite.so b/demo/addons/godot-sqlite/bin/x11/libgdsqlite.so index 2ea66dc..4c7ce6b 100755 Binary files a/demo/addons/godot-sqlite/bin/x11/libgdsqlite.so and b/demo/addons/godot-sqlite/bin/x11/libgdsqlite.so differ diff --git a/src/gdsqlite.cpp b/src/gdsqlite.cpp index 9db5b10..b785f2f 100644 --- a/src/gdsqlite.cpp +++ b/src/gdsqlite.cpp @@ -104,6 +104,7 @@ bool SQLite::open_db() // } } + /* NOTE: Memory allocated by the alloc_c_string()-method needs to be freed manually! */ const char *char_path = path.alloc_c_string(); /* Try to open the database */ if (read_only) @@ -123,7 +124,16 @@ bool SQLite::open_db() else { rc = sqlite3_open_v2(char_path, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_URI, NULL); - /* Identical to: `rc = sqlite3_open(char_path, &db);`*/ + /* The first two flags are default flags with behaviour that is identical to: `rc = sqlite3_open(char_path, &db);`*/ + /* The SQLITE_OPEN_URI flag is solely useful when using shared in-memory databases (shared cache), but it is safe to include in most situations */ + /* As found in the SQLite documentation: (https://www.sqlite.org/uri.html)*/ + + /* Since SQLite always interprets any filename that does not begin with "file:" as an ordinary filename regardless of the URI */ + /* setting, and because it is very unusual to have an actual file begin with "file:", it is safe for most applications to enable URI */ + /* processing even if URI filenames are not currently being used. */ + + /* In-memory databases with shard cache can be opened by setting the path-variable to `file::memory:?cache=shared` */ + /* More information can be found here: https://www.sqlite.org/inmemorydb.html */ } if (rc != SQLITE_OK)