Kindly note
When creating a table or performing CRUD operations on an existing table, “TableClient” must be created first so that users can proceed with the following operations.
There are two methods to get “TableClient”:
For the table to be created:
In current session, users create a table via “create_table” API. This operation will return a “TableClient”, and with this, users can perform CRUD operations on this newly created table.
For an existing table:
In a new session, users can get table information via “get_table” API, which will also return a “TableClient”. With this, users can continue to perform CRUN operations on this existing table.
table = hc.get_table("table_name", "database_name")
Result:
This method will return a HippoTable object containing information about the specified table. If no information is found, None will be returned.
Parameter description:
Parameters | Description | Required |
---|---|---|
table_name (str) | Table to be obtained | Yes |
database_name (str) | Database where the table is created | No, defaults to "default" database |