Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 913 Bytes

File metadata and controls

32 lines (28 loc) · 913 Bytes

SQLAlchemy dialect for google cloud datastore(firestore mode)

How to install

python3 setup.py install

or

pip install python-datastore-sqlalchemy

How to use

from sqlalchemy import *
from sqlalchemy.engine import create_engine
from sqlalchemy.schema import *
engine = create_engine("datastore://my-project/?database=my-db", credentials='path/to/credentials.json')
conn = engine.connect()
result = conn.execute("SELECT * fro" test_table")
print(result.fetchall())

Preview

Warning

Please note: Not all GQL and SQL syntax has been fully tested. Should you encounter any bugs, please post the relevant query and open an issue on GitHub.

How to contribute

Feel free to open issues and pull requests on GitHub.

Development Notes