1.0.1 β’ Published 4 years ago
database-code v1.0.1
π 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