DittoSharp
0.1.0-alpha3
|
Public Member Functions | |
DittoPendingCursorOperation | Find (string query) |
Creates a cursor for the documents in this collection that match the provided query. More... | |
DittoPendingCursorOperation | FindAll () |
Creates a cursor for all of the documents in this collection. More... | |
DittoPendingIDSpecificOperation | FindById (string id) |
Creates an accessor for a single document by its unique identifier. More... | |
unsafe string | Insert (Dictionary< string, object > data, string id=null, bool isDefault=false) |
Inserts a document into a collection. More... | |
unsafe DittoAttachment | NewAttachment (string path, Dictionary< string, string > metadata=null) |
DittoAttachmentFetcher | FetchAttachment (DittoAttachmentToken token, Action< DittoAttachmentStatus > onStatusChanged) |
|
inline |
Creates a cursor for the documents in this collection that match the provided query.
query | A ditto query string. |
|
inline |
Creates a cursor for all of the documents in this collection.
|
inline |
Creates an accessor for a single document by its unique identifier.
id | The id of the document in this collection. |
|
inline |
Inserts a document into a collection.
data | The document content. |
id | The primary key or identifier for this document. If this is null then DittoKit will assign it a unique identifier. This cannot be changed once inserted. |
isDefault | Set to true if the document should assume all values are default. See https://docs.ditto.live/concepts/data-model. |