forked from sourcenetwork/defradb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Document client interfaces in client/db.go (sourcenetwork#1305)
* Document client.DB * Document client.DB.Store * Document client.DB.NewTxn functions * Document client.DB.Root * Document client.DB.Blockstore * Document client.DB.Close Note: Upon writing this I do not actually think this function should close the rootstore, as Defra does not own it - it is an input parameter and should only be closed by the thing that created it. * Document client.DB.Events * Document client.DB.MaxTxnRetries * Document client.DB.PrintDump * Document client.Store * Document client.Store.AddSchema Uses the existing internal documentation as a starting point, expands it and then backports the changes to the internal functions. * Document client.Store.CreateCollection * Document client.Store.GetCollectionByName * Document client.Store.GetCollectionBySchemaID * Document client.Store.GetCollectionByVersionID * Document client.Store.GetAllCollections * Document client.Store.ExecRequest * Document client.GQLResult * Document client.GQLResult.Errors * Document client.GQLResult.Data * Document client.RequestResult * Document client.RequestResult.GQL Note: I think the naming of this and its type is not ideal. * Document client.RequestResult.Pub * Remove commented out code
- Loading branch information
1 parent
6be4201
commit 5009afb
Showing
3 changed files
with
94 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters