pgsql-ast-parser icon indicating copy to clipboard operation
pgsql-ast-parser copied to clipboard

Support for generated columns

Open chan32167 opened this issue 2 years ago • 0 comments

CREATE TABLE "tbl_point_of_expedition" ("id" SERIAL NOT NULL, "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "idSifen" character varying NOT NULL, "establishmentId" integer NOT NULL, "adminjsTitle" character varying GENERATED ALWAYS AS (id::text || ' - ' || "establishmentId"::text || ' - ' || "idSifen") STORED NOT NULL, CONSTRAINT "PK_276216ad156f80ea65a8ef111bd" PRIMARY KEY ("id"));

Is there any way the GENERATED ALWAYS AS (...) STORED can be supported?

chan32167 avatar Mar 20 '23 15:03 chan32167