1.0.1 β€’ Published 4 years ago

database-code v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

πŸ’ DATABASE-CODE

πŸ… | npm install database-code --save

◑ω◐

πŸ”₯ Suport

πŸŽƒ Discord Server: https://discord.gg/vvsbvNW πŸ“‹ GitHub: https://github.com/Barry-Allen-oWo

πŸŽ“ Commands (Version: 1.0.0)

πŸ’Ž Creating the simple beginning of our Code with DATABASE-CODE

const Database = require("database-code");

const db = Database.CreateDatabaseJSON("./File.json");

πŸ”₯ Simple examples to start your Code

db.set("Var", "Value")

/* πŸŒ€ Example */

db.set("5th-grade-Students", {
    Barry-Allen: {
        Age: 10,
        Name: "Barry Allen"
    },
    Flash: {
        Age: 31,
        Name: "Flash"
    }
    Rafael: {
        Age: 10,
        Name: "Rafael"
    }
});

/** πŸ’š If you want to exchange information about any Database variable use: **/

db.set("5th-grade-Students", {
    Barry-Allen: {
        Age: 31,
        Name: "Barry Allen"
    }
});

// 😿 Note: When you put something in the Database in JSON format, always remember to change Spaces or - for , JSON cannot handle other types like emojis, among others, so it is very important to try to use ID, in future updates we will put it to change everything you have - or spaces for  but for now use the right way as you can lose information errors in the Database, among others

πŸ”’ If you want to get a value in the Database use this:

/* πŸ“œ Getting the file where the Database is stored */

const DatabaseFile = require("./File.json");

/* πŸ“‚ Now taking the values ​​from the Database, see the Examples: */

DatabaseFile["5th-grade-Students"]["Barry-Allen"]["Name"] /* πŸ’– Most Recommended Example */
DatabaseFile.5th-grade-Students.Barry-Allen.Name /* 😱 Example not very recommended, contains many Errors */

πŸ’– Author

🌹 Discord Name: Barry Allen#9142

1.0.1

4 years ago

1.0.0

4 years ago