simple, fast, funny json dbms base on python
- TODO
from foxlin import FoxLin, Schema
class MyTable(schema): # define your teble schema
name: str
username: str
password: str
db = FoxLin('./db.json', MyTable)
data = [
MyTable(name='sobhan', username='misano', password='#197382645#'),
MyTable(name='Tommy', username='god_of_war', password='123QWEasdZXC')
]
with db.session as db_session:
db_session.INSERT(*data)
# OR
db_session = db.sessionFactory
db_session.INSERT(*data)
db_session.COMMIT()
r_data = db_session.SELECT().WHERE('name','=','sobhan').get()
myrecord = r_data[0]
print(myrecord.name, myrecord.username, myrecord.password)
- crud
- level base operation manager
- self log system
- session model
- transaction but by grouping commits not ACDI
- write test
- neo dict implemented by numpy
- add logs to ..logs
- genetate logs
- quering
- asynchronus
- transaction ACDI