Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.04 KB

HOW_TO_SETUP.md

File metadata and controls

34 lines (25 loc) · 1.04 KB

Starting with Con-Databases

If you don't have experience with the Map build-in class, go get acquainted. Here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map

Steps

Downloading specific version

Pick your version what you want to use here

Then download your required files

  • (try downloading types for better experience)

Import and use!

  • Place database files into your coding folder
  • Import your required classes from database file
    import {JsonDatabase} from "./con-database"; //import your downloaded file

Now you can just use, save and load your data

const database = new JsonDatabase("my_database_id");

database.set("some key", "string data");
database.set("some key2", 645654);
database.set("some key3", ["array","array",{name:"object"}]);

database.get("some key2") - 645654;
database.get("some key") + " is useful";
database.delete("some key3");