1.0.4 • Published 11 months ago

any-sqlite v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

any-sqlite

react native or node sqlite with a common interface

import { open } from "any-sqlite";

async main() {
  const db = await open("yo.db")
  await db.execute("create table foo (bar, baz)")
  await db.execute("insert into foo (bar, baz) values (?, ?)", [1, 2])
  await db.batch([
        ["insert into foo (bar, baz) values (?, ?)", [1, 2]],
        ["insert into foo (bar, baz) values (?, ?)", [2, 3]]
    ])
  let rows = await db.execute("select * from foo")
}
1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago