ic-dbms-client

This crate exposes all the types which may be used by an external canister to interact with an IC DBMS Canister instance.
Client
All the client methods can be accessed through the Client trait.
The crate provides an implementation of the client for IC DBMS Canister, called IcDbmsCanisterClient,
which can be used on ic canisters.
If you want to use the client in integration tests with pocket-ic, you can use the
IcDbmsPocketIcClient implementation, but first you need to enable the pocket-ic feature.
Usage
Add the dependencies
[]
= "0.10"
= "0.1"
= "0.1"
= "1"
Implement the record types
You can define your table as you did for the database, or use a common crate to share the types between the canisters.
use ;
use ;
use ;
use Deserialize;
Use the client
let principal = from_text?;
let client = new;
let alice = UserInsertRequest ;
client
.
.await?;
Available Clients
IcDbmsCanisterClient: Client implementation for IC canisters.IcDbmsPocketIcClient: Client implementation forpocket-icintegration tests.
Available Methods
All the client methods are defined in the Client trait.
acl_add_principalacl_remove_principalacl_allowed_principalsbegin_transactioncommitrollbackselectinsertupdatedelete
Available Types
You can import all the useful types and traits by using the prelude module:
use *;
Query
Table
Types
Value
License
This project is licensed under the MIT License. See the LICENSE file for details.