SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Database → Create

AI-generated

Summary

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.

Links

Discussion