/FoxLin

simple, fast, funny json dbms bases on python

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

FoxLin

simple, fast, funny json dbms base on python

Quick access :

Futures :

  • TODO

simple usage :

    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)
TODO in 1.0
  • 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
TODO at 1.1
  • asynchronus
  • transaction ACDI