Skip to content

Commit

Permalink
fix publish release
Browse files Browse the repository at this point in the history
  • Loading branch information
ellyofreitas committed May 15, 2024
1 parent 72f40cd commit a5951cd
Show file tree
Hide file tree
Showing 3 changed files with 850 additions and 930 deletions.
12 changes: 6 additions & 6 deletions examples/native-modules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
);
await fs.ensureDir(temporaryDirectory);

const { Database, sql } = require("@leafac/sqlite");
const Database = require("better-sqlite3");
const database = new Database(path.join(temporaryDirectory, "database.db"));
database.execute(sql`CREATE TABLE caxaExampleNativeModules (example TEXT);`);
database.run(
sql`INSERT INTO caxaExampleNativeModules (example) VALUES (${"caxa native modules"})`
);
database.prepare(`CREATE TABLE caxaExampleNativeModules (example TEXT);`).run();
database.prepare(
`INSERT INTO caxaExampleNativeModules (example) VALUES (?)`
).run("caxa native modules");
console.log(
"@leafac/sqlite:",
JSON.stringify(
database.get(sql`SELECT example FROM caxaExampleNativeModules`),
database.prepare(`SELECT example FROM caxaExampleNativeModules`).get(),
undefined,
2
)
Expand Down
Loading

0 comments on commit a5951cd

Please sign in to comment.