@op-engineering/op-sqlite 6.0.0 → 6.0.2-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/op/sqlite/OPSQLiteModule.kt +2 -3
- package/cpp/DBHostObject.cpp +755 -0
- package/cpp/DBHostObject.h +56 -0
- package/cpp/PreparedStatementHostObject.cpp +1 -1
- package/cpp/bindings.cpp +20 -614
- package/cpp/bindings.h +3 -2
- package/cpp/bridge.cpp +10 -16
- package/cpp/bridge.h +2 -1
- package/cpp/sqlbatchexecutor.cpp +2 -2
- package/cpp/utils.cpp +24 -4
- package/cpp/utils.h +3 -2
- package/lib/commonjs/index.js +140 -153
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +140 -153
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/index.d.ts +25 -40
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +198 -274
|
@@ -59,10 +59,7 @@ internal class OPSQLiteModule(context: ReactApplicationContext?) : ReactContextB
|
|
|
59
59
|
val assetsManager = context.assets
|
|
60
60
|
|
|
61
61
|
try {
|
|
62
|
-
// Open the input stream for the asset file
|
|
63
|
-
val inputStream: InputStream = assetsManager.open("$path/$filename")
|
|
64
62
|
|
|
65
|
-
// Create the output file in the documents directory
|
|
66
63
|
val databasesFolder =
|
|
67
64
|
context.getDatabasePath("defaultDatabase")
|
|
68
65
|
.absolutePath
|
|
@@ -79,6 +76,8 @@ internal class OPSQLiteModule(context: ReactApplicationContext?) : ReactContextB
|
|
|
79
76
|
}
|
|
80
77
|
}
|
|
81
78
|
|
|
79
|
+
val inputStream: InputStream = assetsManager.open("$path/$filename")
|
|
80
|
+
|
|
82
81
|
// Open the output stream for the output file
|
|
83
82
|
val outputStream: OutputStream = FileOutputStream(outputFile)
|
|
84
83
|
|