Welcome to nahcrofDB, a simple key-value database solution
currently nahcrofDB supports 3 languages
while this is a small number, we do intend to create libraries for more programming languages in the future.
To begin using nahcrofDB, if you are using python then you will need to run the following command:
pip install nahcrofDB requests
to add and test your database, you will need to paste the following.
if set up correctly, you should print "test value" to the console. If you need an api key, visit the /dashboard page and click "Create Token"
after setting up your database and testing some things, you might not want to have the testing keys in your database anymore.
To reset the entire database, do the following.
in your already set up file, use this function
nahcrofDB.resetDB()
this will reset your entire database. Please note that you should NEVER use this under any circumstances in which you have any important information, this is only for when your database is in a testing phase or does not contain any useful information.
GetKeys
nahcrofDB.getKeys("key1", "key2", "key3")
This would return the values of key1, key2, and key3 in a dict. To get key2 out of this list would look something like this.
Deleting Keys
nahcrofDB.delKey("keyname")
To begin using nahcrofDB, using javascript you simply have to run the following command.
npm i nahcrofdb.js
after install nahcrofdb.js, make sure that type is set to module in the package.json file.
to add and test your database to project, you will need to paste the following.
if set up correctly, you should print "test value" to the console. If you need an api key, visit the /dashboard page and click "Create Token"
after setting up your database and testing some things, you might not want to have the testing keys in your database anymore.
To reset the entire database, do the following.
in your already set up file, use this function
await database.reset();
this will reset your entire database. Please note that you should NEVER use this under any circumstances in which you have any important information, this is only for when your database is in a testing phase or does not contain any useful information.
GetKeys
await database.getKeys("key1", "key2", "key3")
This would return the values of key1, key2, and key3 in a dict. To get key2 out of this list would look something like this.
Deleting Keys
to delete a key from your database you will use the "delete" function.
await database.delete("keyname");
To begin using nahcrofDB, if you are using ruby then ensure you have the nahcrofDB.rb module installed from the
to add and test your database, you can paste the following.
if set up correctly, you should print "test value" to the console. If you need an api key, visit the /dashboard page and click "Create Token"
after setting up your database and testing some things, you might not want to have the testing keys in your database anymore.
To reset the entire database, do the following.
in your already set up file, use this function
NahcrofDB.resetDB()
this will reset your entire database. Please note that you should NEVER use this under any circumstances in which you have any important information, this is only for when your database is in a testing phase or does not contain any useful information.
GetKeys
NahcrofDB.getKeys("key1", "key2", "key3")
This would return the values of key1, key2, and key3 in a dict. To get key2 out of this list would look something like this.
Deleting Keys
NahcrofDB.delKey("keyname")
X-API-Key: api-token-here
?key[]=key1&key[]=key2&key[]=key3
X-API-Key: api-token-here
?query=Hello%20World
X-API-Key: api-token-here