#include <tables.h>
◆ get_table() [1/2]
Gets a table by name if it was created before.
- Parameters
-
| name | Qualified name of the table. |
- Returns
- An instance of the table with the corresponding name or
std::nullopt if the table does not exist.
- Exceptions
-
| ignite_error | In case of error while trying to send a request. |
◆ get_table() [2/2]
| std::optional< table > ignite::tables::get_table |
( |
std::string_view | name | ) |
|
Gets a table by name if it was created before.
- Parameters
-
| name | Canonical name of the table ([schema_name].[table_name]) with SQL-parser style quotation, e.g. "public.tbl0" - the table "PUBLIC.TBL0" will be looked up, "PUBLIC.\"Tbl0\"" - "PUBLIC.Tbl0", "\"MySchema\".\"Tbl0\"" - "MySchema.Tbl0", etc. |
- Returns
- An instance of the table with the corresponding name or
std::nullopt if the table does not exist.
- Exceptions
-
| ignite_error | In case of error while trying to send a request. |
◆ get_table_async() [1/2]
| void ignite::tables::get_table_async |
( |
const qualified_name & | name, |
|
|
ignite_callback< std::optional< table > > | callback ) |
Gets a table by name if it was created before asynchronously.
- Parameters
-
| name | Qualified name of the table. |
| callback | Callback to be called once the operation is complete. On success, the callback is invoked with an instance of the table with the corresponding name or std::nullopt if the table does not exist. |
- Exceptions
-
| ignite_error | In case of error while trying to send a request. |
◆ get_table_async() [2/2]
| void ignite::tables::get_table_async |
( |
std::string_view | name, |
|
|
ignite_callback< std::optional< table > > | callback ) |
Gets a table by name if it was created before asynchronously.
- Parameters
-
| name | Canonical name of the table ([schema_name].[table_name]) with SQL-parser style quotation, e.g. "public.tbl0" - the table "PUBLIC.TBL0" will be looked up, "PUBLIC.\"Tbl0\"" - "PUBLIC.Tbl0", "\"MySchema\".\"Tbl0\"" - "MySchema.Tbl0", etc. |
| callback | Callback to be called once the operation is complete. On success, the callback is invoked with an instance of the table with the corresponding name or std::nullopt if the table does not exist. |
- Exceptions
-
| ignite_error | In case of error while trying to send a request. |
◆ get_tables()
| std::vector< table > ignite::tables::get_tables |
( |
| ) |
|
Gets all tables.
- Returns
- A vector of all tables.
- Exceptions
-
| ignite_error | In case of error while trying to send a request. |
◆ get_tables_async()
| void ignite::tables::get_tables_async |
( |
ignite_callback< std::vector< table > > | callback | ) |
|
Gets all tables asynchronously.
- Parameters
-
| callback | Callback to be called once the operation is complete. On success, the callback is invoked with a vector of all tables. |
- Exceptions
-
| ignite_error | In case of error while trying to send a request. |
The documentation for this class was generated from the following files:
- ignite/client/table/tables.h
- ignite/client/table/tables.cpp