This feature is provided by the module-data-source plugin.
SQL collection extracts data through SQL statements and, after configuring field metadata, enables users to apply it to tables, charts, workflows, and other scenarios just like using regular tables, suitable for relational queries, statistical analysis, and other needs.






When the SQL statement changes, you can click the "Edit" button to directly edit the SQL statement and reconfigure fields.
If you need to modify field metadata, you can do so through "Configure fields", similar to field configuration for regular tables.

| Data Table Type | Use Case | Implementation Principle | Add/Delete/Modify Support |
|---|---|---|---|
| SQL Data Table | Model is relatively simple and suitable for lightweight scenarios; inconvenient to operate database; don't want to maintain; view wishes to be fully operated through user interface (UI) | SQL subquery | Not supported |
| Database View | Database needs to be relatively good and stable; has database interaction needs; data modification needs; model is relatively complex | Database view | Partially supported |
When using SQL tables, please select data tables manageable in Tachybase. If you select other tables in the same database that are not connected to Tachybase, it may cause SQL statement parsing to be inaccurate. If you have this need, you can consider creating a view and connecting it.