Skip to content

stsouko/LazyPony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Lazy load of database

example:

file1.py

from LazyPony import LazyEntityMeta

class A(metaclass=LazyEntityMeta):
    id = PrimaryKey(int, auto=True)

file2.py

from LazyPony import LazyEntityMeta

db = Database()
LazyEntityMeta.attach(db)
db.bind()
db.generate_mapping()

file3.py

from file1 import A

query = A.select()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages