Skip to content

Uniform Resource Ingest Resource Path Rewrite Rule

Description

A regular expression can determine whether certain paths should be
rewritten before ur_ingest_resource_path_match_rule matches occur.

Table Definition
CREATE TABLE "ur_ingest_resource_path_rewrite_rule" (
"ur_ingest_resource_path_rewrite_rule_id" VARCHAR PRIMARY KEY NOT NULL,
"namespace" TEXT NOT NULL,
"regex" TEXT NOT NULL,
"replace" TEXT NOT NULL,
"priority" TEXT,
"description" TEXT,
"elaboration" TEXT CHECK(json_valid(elaboration) OR elaboration IS NULL),
"created_at" TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
"created_by" TEXT DEFAULT 'UNKNOWN',
"updated_at" TIMESTAMPTZ,
"updated_by" TEXT,
"deleted_at" TIMESTAMPTZ,
"deleted_by" TEXT,
"activity_log" TEXT,
UNIQUE("namespace", "regex", "replace")
)

Columns

NameTypeDefaultNullableComment
ur_ingest_resource_path_rewrite_rule_idVARCHARfalse{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
namespaceTEXTfalse
regexTEXTfalse
replaceTEXTfalse
priorityTEXTtrue
descriptionTEXTtrue
elaborationTEXTtrue{“isSqlDomainZodDescrMeta”:true,“isJsonText”:true}
created_atTIMESTAMPTZCURRENT_TIMESTAMPtrue
created_byTEXT’UNKNOWN’true
updated_atTIMESTAMPTZtrue
updated_byTEXTtrue
deleted_atTIMESTAMPTZtrue
deleted_byTEXTtrue
activity_logTEXTtrue{“isSqlDomainZodDescrMeta”:true,“isJsonSqlDomain”:true}

Constraints

NameTypeDefinition
ur_ingest_resource_path_rewrite_rule_idPRIMARY KEYPRIMARY KEY (ur_ingest_resource_path_rewrite_rule_id)
sqlite_autoindex_ur_ingest_resource_path_rewrite_rule_2UNIQUEUNIQUE (namespace, regex, replace)
sqlite_autoindex_ur_ingest_resource_path_rewrite_rule_1PRIMARY KEYPRIMARY KEY (ur_ingest_resource_path_rewrite_rule_id)
-CHECKCHECK(json_valid(elaboration) OR elaboration IS NULL)

Indexes

NameDefinition
sqlite_autoindex_ur_ingest_resource_path_rewrite_rule_2UNIQUE (namespace, regex, replace)
sqlite_autoindex_ur_ingest_resource_path_rewrite_rule_1PRIMARY KEY (ur_ingest_resource_path_rewrite_rule_id)

Relations

er