📄️ Set up SDK
WeaveDB has two types of SDKs.
📄️ Light Client
With the light client, browser users don't have to hold a full cache from the Warp SDK, which makes read queries extremely fast.
📄️ Query APIs
WeaveDB queries cover most of the things Firestore can do with syntactic sugar inspired by Firestore Sweet.
📄️ Data Schemas
It's essential to set a presice data schema and access controls to each collection as otherwise WeaveDB is permissionless and anyone can put arbitrary data.
📄️ Access Control
Single field indexes are automatically generated, but multi field compound indexes need to be added by the DB admin before collections can be accessed with complex queries.
With SCP (Storage-based Consensus Paradigm) and its nature of determinictic calculation, defining and executing scheduled tasks can be built-in to smart contracts.
When writing to the DB, Ethereum-based addresses are authenticated with EIP-712 signatures. However, this requires dapp users to sign with Metamask for every action, and it's a very poor UX. To solve this, WeaveDB allows internal address linking, so dapp users can use disposal addresses for auto-signing.