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
+7-7
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,11 @@ interface QueryResult {
43
43
rows?: {
44
44
/** Raw array with all dataset */
45
45
_array:any[];
46
-
/** The lengh of the dataset */
46
+
/** The length of the dataset */
47
47
length:number;
48
48
};
49
49
/**
50
-
* Query metadata, avaliable only for select query results
50
+
* Query metadata, available only for select query results
51
51
*/
52
52
metadata?:ColumnMetadata[];
53
53
}
@@ -145,7 +145,7 @@ if (!status) {
145
145
146
146
### Transactions
147
147
148
-
Transactions are supported. However, due to the library being opionionated and mostly not throwing errors you need to return a boolean (true for correct exceution, false for incorrect execution) to either commit or rollback the transaction.
148
+
Transactions are supported. However, due to the library being opinionated and mostly not throwing errors you need to return a boolean (true for correct execution, false for incorrect execution) to either commit or rollback the transaction.
149
149
150
150
JSI bindings are fast but there is still some overhead calling `executeSql` for single queries, if you want to execute a large set of commands as fast as possible you should use the `executeSqlBatch` method below, it still uses transactions, but only transmits data between JS and native once.
151
151
@@ -179,7 +179,7 @@ const commands = [
179
179
];
180
180
const result =sqlite.executeSqlBatch('myDatabase', commands);
You might have too much SQL too process and it will cause your application to freeze. There are async versions for some of the operations. This will offload the SQLite processing to a different thread.
212
+
You might have too much SQL to process and it will cause your application to freeze. There are async versions for some of the operations. This will offload the SQLite processing to a different thread.
213
213
214
214
```ts
215
215
sqlite.asyncExecuteSql(
@@ -230,9 +230,9 @@ This package offers a low-level API to raw execute SQL queries. I strongly recom
230
230
231
231
Follow the instructions to make TypeORM work with React Native (enable decorators, configure babel, etc), then apply the example patch via patch-package.
232
232
233
-
## Learn React Native JSI
233
+
## More
234
234
235
-
If you want to learn how to make your own JSI module buy my [JSI/C++ Cheatsheet](http://ospfranco.gumroad.com/l/jsi_guide), I'm also available for [freelance work](mailto:[email protected]?subject=Freelance)!
235
+
If you want to learn how to make your own JSI module buy my [JSI/C++ Cheatsheet](http://ospfranco.gumroad.com/), I'm also available for [freelance work](mailto:[email protected]?subject=Freelance)!
0 commit comments