Depreciated table
Hi everyone, pgTable is marked here as depreciated but I can't understand why :
7 Replies
the issue seems to be probably related to because deleting it removes the depreciation warning
Do you have the full error message?
const createTable: PgTableFn
<"clinicsSessions", {
id: IsPrimaryKey<NotNull<PgUUIDBuilderInitial<"">>>;
year: NotNull<PgIntegerBuilderInitial<"">>;
month: NotNull<...>;
}>(name: "clinicsSessions", columns: {
...;
}, extraConfig: (self: {
...;
}) => PgTableExtraConfig) => PgTableWithColumns<...> (+3 overloads)
@deprecated — This overload is deprecated. Use the other method overload instead.
New version uses an array now, see docs
Drizzle ORM - Indexes & Constraints
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
it doesn't not use arrays here
for example
GitHub
Release 0.36.0 · drizzle-team/drizzle-orm
This version of drizzle-orm requires [email protected] to enable all new features
New Features
The third parameter in Drizzle ORM becomes an array
The object API is still available but deprecate...