Skip to content

Commit 6365560

Browse files
author
Oscar Franco
committed
Typo fixes
1 parent 810c75c commit 6365560

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ interface QueryResult {
4343
rows?: {
4444
/** Raw array with all dataset */
4545
_array: any[];
46-
/** The lengh of the dataset */
46+
/** The length of the dataset */
4747
length: number;
4848
};
4949
/**
50-
* Query metadata, avaliable only for select query results
50+
* Query metadata, available only for select query results
5151
*/
5252
metadata?: ColumnMetadata[];
5353
}
@@ -145,7 +145,7 @@ if (!status) {
145145

146146
### Transactions
147147

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.
149149

150150
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.
151151

@@ -179,7 +179,7 @@ const commands = [
179179
];
180180
const result = sqlite.executeSqlBatch('myDatabase', commands);
181181
if (!result.status) {
182-
// result.status undefined or 0 === sucess
182+
// result.status undefined or 0 === success
183183
console.log(`Batch affected ${result.rowsAffected} rows`);
184184
}
185185
```
@@ -209,7 +209,7 @@ if (!status) {
209209

210210
### Async operations
211211

212-
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.
213213

214214
```ts
215215
sqlite.asyncExecuteSql(
@@ -230,9 +230,9 @@ This package offers a low-level API to raw execute SQL queries. I strongly recom
230230

231231
Follow the instructions to make TypeORM work with React Native (enable decorators, configure babel, etc), then apply the example patch via patch-package.
232232

233-
## Learn React Native JSI
233+
## More
234234

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)!
236236

237237
## License
238238

0 commit comments

Comments
 (0)