This is a Python client for the LunaQL NoSQL database.
from LunaQL.Database import Database
from LunaQL.Config.DatabaseConfig import DatabaseConfig
db = Database(DatabaseConfig(
endpoint="<endpoint>",
token="<token>"
))
object_ids = (
db.query()
.from_collection('users')
.limit(1)
.select(['_fk'])
.list('_fk')
)
results = (
db.query()
.from_collection('users')
.where('_fk', 'in', object_ids)
.has_many('tasks', lambda q: q.where('user_id', '=', '$._id').order_by('created_at', 'asc'))
.fetch()
)
print(results)- Add tests
- Implement error handling
- Implement more query methods
If you discover any security related issues, please email donaldpakkies@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.