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()
Metadata
Release files for LazyPony 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| LazyPony-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / LazyPony-0.3.2-py3-none-any.whl
| Download URL | LazyPony-0.3.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b91db2340302670f8440a66d24e18d021ab8e711dfcf6b5e01777606f1b9f1e
|
|
BLAKE2b-256 checksum How to use checksums |
1954e3fd5a4ab6d703c268ceb3009b4b6b681cf7789d0bfb9a873d78260779ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5
|