You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ If you are using quick-sqlite in your app, please get in touch or open a PR with
34
34
- Your app will now include C++, you will need to install the NDK on your machine for android. (unless you know how to generate an AAR, feel free to open a PR)
35
35
- If you want to run the example project on android, you will have to change the paths on the android/CMakeLists.txt file, they are already there, just uncomment them.
36
36
- This library supports SQLite BLOBs which are mapped to JS ArrayBuffers, check out the sample project on how to use it
37
+
- Starting with version 2.0.0 the library no longer throws errors when an invalid statement is passed, but rather returns an object with a `status` enum property, where 0 signals a succesful execution and `1` an incorrect execution (this is to keep typeorm from exploding when an incorrect query is executed)
37
38
38
39
## Use TypeORM
39
40
@@ -54,6 +55,8 @@ interface ISQLite {
54
55
query:string,
55
56
params:any[] |undefined
56
57
) => {
58
+
status:0|1; // 0 for correct execution
59
+
message:string; // if status === 1, here you will find error description
0 commit comments