pub fn db_init(
contract_id: ContractId,
db_name: &str,
) -> GenericResult<DbHandle>
Expand description
Create a new database instance for the given contract.
This should be called in the init_contract()
section to create any databases
that the contract might need or use.
Returns a DbHandle
which provides methods for reading and writing.