SmartTablesSDK Documentation
The SmartTablesSDK provides a comprehensive solution for managing structured data tables with advanced querying, filtering, sorting, and data manipulation capabilities. Build powerful data management applications with ease, featuring support for custom views, data import/export, and AI-powered data processing.Table of Contents
- Installation
- Quick Start
- Configuration
- Core Concepts
- Table Management
- Column Operations
- Data Operations
- Querying & Filtering
- Views & Customization
- Data Import/Export
- AI-Powered Features
- Error Handling
- Examples
- Best Practices
Installation
Quick Start
Configuration
SmartTablesSDKConfig Interface
Core Concepts
SmartTable
A SmartTable represents a structured data table with schema, metadata, and data management capabilities.SmartTableColumn
Defines the structure and properties of table columns.Filtering & Querying
Advanced filtering system with multiple operators and sorting options.Table Management
getAllTables()
Retrieve all tables in the project.
getTable(tableId)
Get a specific table by ID.
createTable(title, description, metadata?)
Create a new table.
updateTable(tableId, title, description?, metadata?)
Update table metadata.
deleteTable(tableId)
Delete a table and all its data permanently.
Column Operations
addColumn(tableId, column)
Add a new column to the table.
updateColumn(tableId, columnName, updates)
Update column properties.
deleteColumn(tableId, columnName)
Remove a column from the table.
Data Operations
addRow(tableId, data)
Add a new row to the table.
updateRow(tableId, rowId, columnName, newValue)
Update a specific cell in the table.
deleteRow(tableId, rowId)
Delete a row from the table.
Querying & Filtering
queryTable(tableId, options?)
Query table data with advanced filtering, sorting, and pagination.
Basic Query
Filtered Query
Sorted Query with Pagination
Data Import/Export
importTable(title, description, columnMappings, file)
Import data from CSV or Excel files.
AI-Powered Features
computeRowColumns(dataTypeId, rowId, columnNames?)
Trigger AI computation for specific row columns.
computeAllRows(dataTypeId)
Trigger AI computation for all rows in the table.
Error Handling
The SmartTablesSDK uses the same error handling as other SDK components:Examples
Complete Data Management Application
Best Practices
1. Efficient Querying
- Use pagination for large datasets
- Apply filters to reduce data transfer
- Combine multiple operations when possible
2. Schema Design
- Define appropriate column types
- Use constraints (notNull, unique) appropriately
- Provide meaningful descriptions
3. Error Handling and Validation
- Always handle errors gracefully
- Validate data before operations
- Use transactions for related operations
For more information about other SDK components, see:

