Database class

Inheritance

Constructors

Database(Client client)

Properties

client Client
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

createCollection({String name, List read, List write, List rules}) Future<Response>
Create Collection
createDocument({String collectionId, Map data, List read, List write, String parentDocument = '', String parentProperty = '', String parentPropertyType = 'assign'}) Future<Response>
Create Document
deleteCollection({String collectionId}) Future<Response>
Delete Collection
deleteDocument({String collectionId, String documentId}) Future<Response>
Delete Document
getCollection({String collectionId}) Future<Response>
Get Collection
getDocument({String collectionId, String documentId}) Future<Response>
Get Document
listCollections({String search = '', int limit = 25, int offset = 0, OrderType orderType = OrderType.asc}) Future<Response>
List Collections
listDocuments({String collectionId, List filters = const [], int limit = 25, int offset = 0, String orderField = '', OrderType orderType = OrderType.asc, String orderCast = 'string', String search = ''}) Future<Response>
List Documents
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateCollection({String collectionId, String name, List read, List write, List rules = const []}) Future<Response>
Update Collection
updateDocument({String collectionId, String documentId, Map data, List read, List write}) Future<Response>
Update Document

Operators

operator ==(Object other) bool
The equality operator.
inherited