Documentation - zerzru/UsefulDB GitHub Wiki

Documentation

Welcome to the UsefulDB documentation! This document can change, sometimes visit this page. Coming soon i'wll made beautiful version of documentation on site https://scgofficial.esy.es/UsefulDB/

Class create

This class contain 3 subclass and 1 function: -class user -class table -class database -function info()

:/ subclass user

This subclass contain 2 functions: -function info() -function params()

Function params() contain 3 args: -name -password -confirm

In code, this function look like this:

code-example-creating-user

"Confirm" argument need for confirm your choise. If you have a super-user, you can use do anything with framework. Argument name will give name your super-user. Is it will be "Admin"? "AK-47"? "PewDiePie"? Argument password - super-user password. Need for auth in command panel.

:/ subclass database

This subclass contain 2 functions: -info() -params()

Function params() contain 1 argument: -name

In argument "name" you give name for your database.

:/ subclass table

This subclass contain 2 functions: -info() -params()

Function params() contain 2 arguments: -name -columns

Argument "name" will give name for table, "columns" will give count of columns in table: you need 1 column? 2? 3? more? Framework made this special for you.

Class delete

This class contain 3 class and 1 function: -class user -class table -class database -function info

:/ subclass user

This subclass contain 2 functions: -info() -params()

Function params() contain 5 arguments: -name -password -confirm -save -why

Argument "name" - name of user(argument password - too), confirm(=False) - for safe. Argument "save" - save(=True) old file or no. If save=True, you will see file root_SAVED.json. Argument why - create TXT-file "why.txt". It's like Git commit.

:/ subclass table

This subclass contain 2 functions: -info() -params()

Function params() contain 2 arguments: -name -confirm

Name - table name, confirm - safe

:/ subclass database

This subclass contain 2 functions: -info() -params()

Function params() contain 2 arguments: -name -confirm

Name - database name, confirm - safe

Class change(edit)

This feature will added coming soon

Examples

Creating: create.user.params(name='Admin', password='12345', confirm=True) create.table.params(name='TestTable', 3) (this command will ask you column name, length, type and primary) create.database.params(name='TestDB')

Deleting: delete.user.params(name='Admin', password='12345', confirm=True) delete.table.params(name='TestTable', confirm=True) delete.database.params(name='TestDB', confirm=True)

Change(edit): This feature will added coming soon