Package mindsdb.services
Class Tables
java.lang.Object
mindsdb.services.Tables
Tables service class for handling tables.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a table from a queryCreate a table from a DataFramevoid
Drop a table by nameGet a table by namelist()
List all tables in the database
-
Constructor Details
-
Tables
Constructor for Tables- Parameters:
database
- Databaseapi
- RestAPI
-
-
Method Details
-
list
List all tables in the database- Returns:
- List of Table
-
get
Get a table by name- Parameters:
tableName
- Name of the table- Returns:
- Table
-
create
Create a table from a query- Parameters:
name
- Name of the tablequery
- Query to create the table fromreplace
- Replace the table if it already exists- Returns:
- Table
-
create
Create a table from a DataFrame- Parameters:
name
- Name of the tabledf
- DataFramereplace
- Replace the table if it already exists- Returns:
- Table
-
drop
Drop a table by name- Parameters:
tableName
- Name of the table
-