Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aa-sqlite3

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aa-sqlite3 - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc