Actions71
- Asset Actions
- Attribute Actions
- Block Actions
- Database Actions
- Document Actions
- Markdown Table Actions
- Notebook Actions
- Search Actions
- System Actions
- Tag Actions
Database → Create
AI-generatedSummary
Create a new empty database (AttributeView) block and append it as a child to a specified parent block within SiYuan.
Inputs
- Parent Block ID (required) — The ID of the parent block (typically a document) to append the new database to
Output shape
a single database descriptor object
Returns an object containing the new database's block ID, AttributeView ID, root ID, parent ID, and database name.
Examples
Example 1: Create a Database Block from a Document
Set the Parent Block ID to the document or container block where the database should be appended.