@theredhead/experiment-data

0.0.2 • Public • Published

@theredheda/data

this is work in progress.

This package presents an easy to use API for serverside projects to connect to databases.

Supported databases:

  • mysql/mariadb (through mysql2)
  • sqlite (through sqlite3)

Basic API:

const cn = new SQLiteConnection({ connectionString: ":memory:" });
const cmd = cn.createCommand("SELECT CURRENT_TIMESTAMP", []);

cn.open();

const result = await cmd.exectute();
expect(result.affectedRows).toBe(1);

cn.close();

Readme

Keywords

Package Sidebar

Install

npm i @theredhead/experiment-data

Weekly Downloads

1

Version

0.0.2

License

WTFPL

Unpacked Size

28.1 kB

Total Files

33

Last publish

Collaborators

  • theredhead-kris