Go client internals
This page discusses supplemental information about the internals of the Data API Go client.
For information about installing and getting started with the Go client, see Get started with the Data API.
For command specifications, see the command references, such as About collections with the Data API, and About tables with the Data API.
|
The Go client is in preview. For more information, see astra-db-go. |
Client hierarchy
When you create apps using the Data API clients, you must instantiate a DataAPIClient object.
The DataAPIClient object serves as the entry point to the client hierarchy. It includes the following concepts:
-
-
Databases-
CollectionsandTables
-
-
Adjacent to these concepts are the administration classes for database administration. The specific administration classes you use, and how you instantiate them, depends on your client language and database type (Astra DB, HCD, or DSE).
-
-
AstraDatabaseAdminorDataAPIDatabaseAdmin
-
You directly instantiate the DataAPIClient object only.
Then, through the DataAPIClient object, you can instantiate and access other classes and concepts.
Where necessary, instructions for instantiating other classes are provided in the command reference relevant to each class.
For instructions for instantiating the DataAPIClient object, see Instantiate a client object.
See also
For examples and details about each command, see the command references About collections with the Data API and About tables with the Data API.
For major changes between versions, see Data API client upgrade guide.
For the complete client reference, see Go client reference.