pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Support for like operator in table schemas

Open djole90-dev opened this issue 1 year ago • 2 comments

The like operator is currently not supported. Not sure how complex this would be to implement :)

Example

create table _template_timestamps (
 created_at timestamptz not null default now(),
 updated_at timestamptz not null default now(),
 deleted_at timestamptz default null
)

create table users (
 id serial,
 like _template_timestamps including all
)

Expected result when running the plan command:

create table users (
 id serial,
 like _template_timestamps including all
)

Actual result:

create table users (
 id serial
)

The like _template_timestamps including all is not included

djole90-dev avatar Sep 08 '25 14:09 djole90-dev

Available in 1.0.3

tianzhou avatar Sep 11 '25 10:09 tianzhou

Cool, thank you :)

djole90-dev avatar Sep 11 '25 15:09 djole90-dev