2.5.2 • Published 5 months ago

@forge/sql v2.5.2

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
5 months ago

Library for Forge environment.

Usage example:

import sql, { migrationRunner } from "@forge/sql";

const migrationResults = await migrationRunner
  .enqueue(
    'v001_create_example_table',
    `CREATE TABLE IF NOT EXISTS example (id INT PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL);`
  )
  .enqueue('v002_alter_example_table_add_age', `ALTER TABLE example ADD COLUMN age INT NOT NULL;`)
  .enqueue('v003_alter_example_table_add_index_age', `CREATE INDEX idx_example_age ON example (age);`)
  .run();

const listExamples = await sql.executeRaw('SELECT * FROM example');

const statement = sql.prepare('INSERT INTO test example(name, age) VALUES (?, ?)');

const insertUserResult = await statement.bindParams('John Doe', 42).execute();
2.5.2-next.0

5 months ago

2.2.3-next.0

11 months ago

2.2.1-next.0

12 months ago

2.5.0-next.1

7 months ago

2.2.1

12 months ago

2.3.3-next.0

9 months ago

2.3.1-next.0

9 months ago

2.4.1

8 months ago

2.2.3

11 months ago

2.4.0

8 months ago

2.2.2

11 months ago

2.4.2

7 months ago

2.4.3-next.0

7 months ago

2.4.2-next.0

8 months ago

2.4.1-next.0

8 months ago

2.4.1-next.1

8 months ago

2.4.1-next.2

8 months ago

2.4.1-next.3

8 months ago

2.4.1-next.4

8 months ago

2.4.0-next.2

8 months ago

2.4.1-next.5

8 months ago

2.5.1-next.0

5 months ago

2.2.2-next.0

11 months ago

2.3.4-next.0

9 months ago

2.3.2-next.1

9 months ago

2.3.0

10 months ago

2.3.0-next.1

11 months ago

2.5.0

7 months ago

2.3.2

9 months ago

2.3.4-next.1

8 months ago

2.3.1

9 months ago

2.3.0-next.0

11 months ago

2.5.2

5 months ago

2.5.1

5 months ago

2.3.3

9 months ago

2.3.2-next.0

9 months ago

2.2.0

1 year ago

2.2.0-next.2

1 year ago

2.2.0-next.3

1 year ago

2.2.0-next.1

1 year ago

2.2.0-next.0

1 year ago

2.1.0

1 year ago

2.1.0-next.2

1 year ago

0.1.0

1 year ago

2.0.1-next.1

1 year ago

2.0.0-next.0

1 year ago

2.0.1-next.0

1 year ago

2.0.0

1 year ago

0.0.2-next.0

1 year ago

0.1.0-next.1

1 year ago