Expand description
Types for implementing the BonsaiDb network protocol.
Structs§
- Alter
User Permission Group Membership - Alter’s a user’s membership in a permission group.
- Alter
User Role Membership - Alter’s a user’s role
- Apply
Transaction - Applies a transaction.
- Assume
Identity - Assume an identity.
- Authenticate
- Authenticate the current connection.
- Compact
- Compacts the entire database.
- Compact
Collection - Compacts the collection.
- Compact
KeyValue Store - Compacts the key-value store.
- Count
- Counts the number of documents in the specified range.
- Create
Database - Creates a database.
- Create
Subscriber - Creates a
PubSubSubscriber - Create
User - Creates a user.
- Delete
Database - Deletes the database named
name - Delete
Docs - Deletes the associated documents resulting from the view query.
- Delete
User - Deletes a user.
- Execute
KeyOperation - Excutes a key-value store operation.
- Get
- Retrieve a single document.
- GetMultiple
- Retrieve multiple documents.
- Last
Transaction Id - Queries the last transaction id.
- List
- Retrieve multiple documents.
- List
Available Schemas - Lists available schemas.
- List
Databases - Lists all databases.
- List
Executed Transactions - Lists executed transactions.
- List
Headers - Retrieve multiple document headers.
- LogOut
Session - Logs out from a session.
- Message
Received - A PubSub message was received.
- Payload
- A payload with an associated id.
- Publish
- Publishes
payloadto all subscribers oftopic. - Publish
ToAll - Publishes
payloadto all subscribers of alltopics. - Query
- Queries a view.
- Query
With Docs - Queries a view with the associated documents.
- Reduce
- Reduces a view.
- Reduce
Grouped - Reduces a view, grouping the reduced values by key.
- SetUser
Password - Set’s a user’s password.
- Subscribe
To - Subscribes
subscriber_idto messages fortopic. - Unregister
Subscriber - Unregisters the subscriber.
- Unsubscribe
From - Unsubscribes
subscriber_idfrom messages fortopic.
Enums§
- Error
- A networking error.
Constants§
- CURRENT_
PROTOCOL_ VERSION - The current protocol version.