DQL Quick Reference
SELECT
DQL
INSERT
DQL
UPDATE
DQL
EVICT
DQL
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 SDK Version 5.0 is now live! See What's New in v5 for details.
Ditto Query Language (DQL) is a powerful, flexible query language designed specifically for use with the Ditto platform. It allows you to perform complex data operations with ease, enabling real-time synchronization and efficient data management.
SELECT [DISTINCT] * | field1, field2, ... | aggregate_function(field) [AS alias]
FROM your_collection_name
[WHERE condition]
[GROUP BY groupby_expression_1, groupby_expression_2, ...]
[HAVING condition]
[ORDER BY orderby_expression_1, orderby_expression_2, ... [ASC|DESC]]
[LIMIT limit_value]
[OFFSET number_of_documents_to_skip]
INSERT INTO your_collection_name
DOCUMENTS([document1]),([document2]), ([document3]), ...
[ON ID CONFLICT [FAIL | DO NOTHING | DO UPDATE]]
UPDATE your_collection_name
SET field1 = value1, field2 -> [mutator], ...
WHERE [condition]
EVICT FROM your_collection_name
WHERE [condition]
Was this page helpful?