Skip to content

Commit

Permalink
Replace macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Franco committed Oct 1, 2022
1 parent cc02501 commit 41408af
Show file tree
Hide file tree
Showing 8 changed files with 478 additions and 535 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,11 @@ Batch execution allows transactional execution of a set of commands
```typescript
const commands = [
['CREATE TABLE TEST (id integer)'],
['INSERT INTO TEST (id) VALUES (?)', [1]][
('INSERT INTO TEST (id) VALUES (?)', [2])
][('INSERT INTO TEST (id) VALUES (?)', [[3], [4], [5], [6]])],
['INSERT INTO TEST (id) VALUES (?)', [1]],
[('INSERT INTO TEST (id) VALUES (?)', [2])],
[('INSERT INTO TEST (id) VALUES (?)', [[3], [4], [5], [6]])],
];

const result = QuickSQLite.executeSqlBatch('myDatabase', commands);
if (!result.status) {
// result.status undefined or 0 === success
Expand Down
Loading

0 comments on commit 41408af

Please sign in to comment.