-
-
Notifications
You must be signed in to change notification settings - Fork 2
Home & Sqlite
Rhydderchc edited this page Feb 10, 2021
·
3 revisions
This wiki will provide you with as much information needed to get started with hive-db as your database.
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
- Initialize your key and value!
db.init('name',['Lason']);
- Get the value stored in the key!
db.fetch('name')
- Delete a key!
db.del('name')
- Input an element into an array value.
db.input('name','Tensor')
- Subtract a numeric value from a key storing a numeric value
db.subtract('age',1)
// subtracting 21 from 1, where age(key) contains -> 21
- Subtract a numeric value from a key storing a numeric value
db.add('age',1)
// Adding 1 to 21, where age(key) contains -> 21
- Fetching all elements in an Array
db.array('name')
// output => Tensor, Lason
- Checks if a key stores a
value
or isnull
db.has('name')
// output => true
- Outputs the datatype of the stored value in a key.
db.datatype('age')
// output => int
hive-db guide