...
This can be done by creating a primary key metadata table and populating it with a row for each table that will be exposed to Weave and then setting the {{primarykeymetadatatable
}} attribute for the spatial engine.
Code Block | ||||
---|---|---|---|---|
| ||||
CREATE TABLE GT_PK_METADATA ( TABLE_SCHEMA varchar(255) NOT NULL, TABLE_NAME varchar(255) NOT NULL, PK_COLUMN varchar(255) NOT NULL, PK_COLUMN_IDX int NOT NULL, PK_POLICY varchar(255) NOT NULL, PK_SEQUENCE varchar(255), UNIQUE(TABLE_SCHEMA, TABLE_NAME, PK_COLUMN), CHECK(PK_POLICY IN ('ASSIGNED','SEQUENCE', 'AUTOGENERATED') ) ) |
...