bob_sqlite3

Modules For Bob

Usage no npm install needed!

<script type="module">
  import bobSqlite3 from 'https://cdn.skypack.dev/bob_sqlite3';
</script>

README

Bob's Sqlite3 Class

For personal use.

Import

npm i bob_sqlite3
const SQLite = require("bob_sqlite3");

Syntax

Constructor

const database = new SQLite("URL To SQLite Database");

Methods

async function methods() {
    await database.insert("SQL QUERY");
    //Returns "Completed" when finished, otherwise returns the error as a String
    await database.selectMultiple("SQL QUERY");
    //Returns an Array of Objects, otherwise returns the error as a String
    await database.select("SQL QUERY");
    //Returns an Object, otherwise returns the error as a String
}