Skip to content

asxez/SprDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SprDB

中文文档

SprDB is a relational database based on Python.

🛠️ Build Instructions

on Windows:

make w

on Linux(Not at this time):

make l

Then you will get a dist folder with an executable file that can be run by double-clicking or using the terminal command.

✨ Grammar

use < database >

create database < database >

create table < table > (< column > type, ...)

select * | < column > from < table > [where ...]

insert into < table >  [(column, ...)] values (...) [,(...)]

update < table > set < column=..., ... > [where ...]

delete from < table > [where ...]

The syntax is the same as the SQL syntax, the only difference is the type of column, the SprDB only contains three types, string type (str), inter type (int), floating point type (float).

The following commands are unique to SprDB::

startup-auto  --Turn on auto-start at boot
destartup-auto  --Turn off auto-start at boot
exit  --Exit the command line
help  --Check out Help

On the client, you can connect using the following code:

Download the library first::

pip install sprdbclient

then:

from sprdbclient import SprClient

with SprClient() as client:
    client.execute('create database test')

👁️ LICENSE

For details, see the license file。

About

A relational database implemented in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published