Read Database Columns
read_database_columnsRetrieve schema metadata for an AFFiNE database block, including columns, select options, and view mappings, so you can inspect database structure before any rows exist.
Instructions
Read schema metadata for an AFFiNE database block, including columns, select options, and view column mappings. Useful for empty databases before any rows exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document ID containing the database | |
| workspaceId | No | Workspace ID (optional if default set) | |
| databaseBlockId | Yes | Block ID of the affine:database block |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| error | No | ||
| title | No | ||
| views | No | ||
| columns | No | ||
| details | No | ||
| rowCount | No | ||
| causeCode | No | ||
| retryable | No | ||
| columnCount | No | ||
| titleColumnId | No | ||
| databaseBlockId | No | ||
| recoveryGuidance | No |