Skip to content

BlockSuite API Documentation / @blocksuite/blocks / DatabaseBlockSchema

Variable: DatabaseBlockSchema

const DatabaseBlockSchema: Object

Type declaration

model

model: Object & Object

Type declaration

flavour

flavour: "affine:database"

props

props: PropsGetter<DatabaseBlockProps>

role

role: "root" | "hub" | "content"

Type declaration

children

children: string[]

parent

parent: string[]

role

role: "hub" = 'hub'

version

version: number = 3

onUpgrade?

onUpgrade?: (data, previousVersion, latestVersion) => void

Parameters

data: DatabaseBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer?

transformer?: () => BaseBlockTransformer<DatabaseBlockProps>

Returns

BaseBlockTransformer<DatabaseBlockProps>

version

version: number

Source

packages/blocks/src/database-block/database-model.ts:296


Generated using TypeDoc and typedoc-plugin-markdown.