Skip to content

Home & Sqlite

Rhydderchc edited this page Feb 10, 2021 · 3 revisions

Welcome

This wiki will provide you with as much information needed to get started with hive-db as your database.

Interactions

Hive-db provides you with 2 interaction adapters as of now, mongo -> hive.mongo, and sqlite -> hive.sqlite The sqlite, would better be said better-sqlite3

Table of Content

Home & Sqlite

More Sqlite

MongoDB

Lets Start

Sqlite Mode

Functions

  1. Initialize your key and value!
db.init('name',['Lason']);
  1. Get the value stored in the key!
db.fetch('name')
  1. Delete a key!
db.del('name')
  1. Input an element into an array value.
db.input('name','Tensor')
  1. Subtract a numeric value from a key storing a numeric value
db.subtract('age',1)
// subtracting 21 from 1, where age(key) contains -> 21
  1. Subtract a numeric value from a key storing a numeric value
db.add('age',1)
// Adding 1 to 21, where age(key) contains -> 21
  1. Fetching all elements in an Array
db.array('name')
// output => Tensor, Lason
  1. Checks if a key stores a value or is null
db.has('name')
// output => true
  1. Outputs the datatype of the stored value in a key.
db.datatype('age')
// output => int
Clone this wiki locally