Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "aa-sqlite3", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "async await with sqlite3", | ||
@@ -5,0 +5,0 @@ "main": "aa-sqlite3.js", |
@@ -52,5 +52,5 @@ # [aa-sqlite3](https://www.npmjs.com/package/aa-sqlite3) - npm | ||
await db.run('INSERT INTO users(name, age) VALUES($name, $age)', | ||
{ $name: 'Kaz', $age: 57 }); | ||
{ $name: 'Kaz', $age: 57 }); | ||
await db.run('INSERT INTO users(name, age) VALUES(?, ?)', | ||
'Leo', 13); | ||
'Leo', 13); | ||
@@ -61,3 +61,3 @@ const rows = await db.all('SELECT * FROM users'); | ||
const row = await db.get('SELECT * FROM users WHERE name = $name', | ||
{ $name: 'Leo' }); | ||
{ $name: 'Leo' }); | ||
console.log('db.get: ->', row); | ||
@@ -114,3 +114,3 @@ | ||
await db.exec('CREATE TABLE IF NOT EXISTS users' + | ||
'(name TEXT PRIMARY KEY, age INTEGER) WITHOUT rowid'); | ||
'(name TEXT PRIMARY KEY, age INTEGER) WITHOUT rowid'); | ||
await db.exec('CREATE INDEX IF NOT EXISTS users_ix01 ON users(name, age)'); | ||
@@ -127,3 +127,3 @@ | ||
const row = await db.get('SELECT * FROM users WHERE name = $name', | ||
{ $name: 'Leo' }); | ||
{ $name: 'Leo' }); | ||
console.log(' Database.get: ->', row); | ||
@@ -130,0 +130,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14037