SODA (Simple Oracle Document Access) commands are supported in the SQL
code editor. SODA allows schemaless application development using the JSON data
model. The commands are:
SODA create <collection_name> — Creates a new
collection
SODA list — Lists all the collections
SODA get <collection_name> [-all | -f | -k
| -klist] [{<key> | <k1> <k2> ...
| <qbe>}] — Lists documents in the collection.
Optional arguments:
all: Lists the keys of all documents in
the collection
k: Lists documents matching the specific
<key>
klist: Lists documents matching the
list of keys
f: Lists documents matching the
<qbe>
SODA insert <collection_name>
<json_str | filename> — Inserts a new
document within a collection
SODA drop <collection_name> —
Deletes existing collection
SODA count <collection_name>
[<qbe>] — Counts number of documents inside
collection. Optional parameter <qbe> returns
number of matching documents
SODA replace <collection_name>
<oldkey> <new_{str | doc}> —
Replaces one document with another