angola
Project description
Angola
Angola
API
Connection
import angola
#--- connect
db = angola.db(hosts="http://host:8529", username="root", password:str)
#--- select collection
coll = db.select_collection('test')
#--- insert item
coll.insert({k:v, ...})
#--- insert item with custom _key
coll.insert({k:v,...}, _key='awesome')
Query
@@CURRDATE
@@CURRDATE($format=None, $dateshifter=None)
{
"_modified_at": "@@CURRDATE() +2Days"
}
Format:
YYYY: Year
MM: Month
DD: Date
HH: Hour
mm: Min
ss: seconds
ISODATE: YYYY-MM-DDTHH:mm:ss
$AND and $OR
filters = {
"$or": [
{ // query between dates
"_created_at:$lt": "@@CURRDATE() -2days",
"_created_at:$gt": "@@CURRDATE() +2days"
}
]
}
Insert
Update
Delete
Collection
SubCollection
Operators
Custom Operators
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
angola-0.10.11.tar.gz
(30.8 kB
view hashes)
Built Distribution
angola-0.10.11-py3-none-any.whl
(31.3 kB
view hashes)