-
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
When you have an array type column like the following:
CREATE TABLE foo (
things integer[] NOT NULL
);Postgres still allows elements of this array to be NULL (non-nullability could only be enforced through an additional check constraint).
Yet the derived types e.g. for Insertable do not reflect nullability:
things: number[] | db.Parameter<number[]> | db.DefaultType | db.SQLFragment | db.SQLFragment<any, number[] | db.Parameter<number[]> | db.DefaultType | db.SQLFragment>;This makes types incompatible to "properly" typed domain logic types, which would look something like this:
interface Foo {
things: Array<number | null>
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels