A layout builder for the IKeyValueDatabase.

Implements

  • ILayoutBuilder

Methods

  • Gets the layout.

    Returns IDatabaseLayout

    The layout: IDatabaseLayout.

  • Adds a table to the layout.

    Parameters

    • name: string

      The name of the table.

    Returns TableBuilder

    A table builder.

  • Creates a layout builder.

    Parameters

    • version: number

      The version of the layout.

    Returns LayoutBuilder

    A layout builder.

  • Validates a layout.

    Parameters

    • layout: IDatabaseLayout

      The layout to validate.

    Returns [boolean, string]

    Whether the layout is valid, and a descriptive message.