Skip to content

strict schema for ARRAY during CREATE TABLE possible? #494

@Lercher

Description

@Lercher

Version: require github.com/genjidb/genji v0.15.1

This is a question but probably also a feature request: Looking at the documentation, its syntax diagrams and the sqltests I found no way to provide a strict schema for the document- or primitive-type of an ARRAY. (How) can this be done?

The for me most natural way would be sth like this (think of a property list):

CREATE TABLE pl (
  name TEXT    PRIMARY KEY,
  contributors ARRAY [OF] TEXT,
  vals ARRAY [OF] (itemname TEXT, itemvalue INT)
)

Thanks,
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions