Skip to content

Latest commit

 

History

History
98 lines (77 loc) · 2.43 KB

README.md

File metadata and controls

98 lines (77 loc) · 2.43 KB

AIDADB

Personal SUBD with own DB based on Rust. The main goal of this project is to create personal Database with the strong security & fast responsing to requests with big data.

Now we have this query commnads:

  1. create
  2. use
  3. insert
  4. select
  5. delete

How to build and run:

To start use this DB u need to build the program using command:

admin@aidadb:~$ cargo build
Finished dev [unoptimized + debuginfo] target(s) in 0.84s
Process finished with exit code 0

After that u need to run this app. For windows - aidb.exe, for Linux and MacOS - aidb.o

How to send requests:

Create database request:

> create <database_name>
Database created successfully

Select database request:

> use <database_name>
Switched to database '<database_name>'
Current database path: (Windows)'C:\Users\<username>\.aidadb\databases\<database_name>.aidb' / (Linux or MacOs) '/home/<username>/.aidadb/databases/<database_name>.aidb'

NOTE: To use the next requests u need to select database in which u can add or from which u can get information!

Insert in table request:

> insert <table_name> <key>=<value>
Inserted row into table <table_name>.

NOTE: U can create new tables using the same command; Row size of data is infinity.

Select info from table request:

> select <table_name>
<info from table>.

Delete row from table request:

> delete <table_name> where <condition>
<info from table>.

Examples:

Create database request:

> create test
Database created successfully

Select database request:

> use test
Switched to database 'test'
Current database path: (Windows)'C:\Users\<username>\.aidadb\databases\test.aidb' / (Linux or MacOs) '/home/<username>/.aidadb/databases/test.aidb'

NOTE: To use the next requests u need to select database in which u can add or from which u can get information!

Insert in table request:

> insert test-users id=1 name='User' age=10
Inserted row into table test-users.

NOTE: U can create new tables using the same command; Row size of data is infinity.

Select info from table request:

> select test-users
id=1 name='User' age=10.

Delete row from table request:

> delete test-users where id=1
Row deleted!