drizzle-orm-pg
Advanced tools
Comparing version 0.12.0-beta.5 to 0.12.0-beta.6
import { ColumnData, ColumnDriverParam, ColumnHasDefault, ColumnNotNull, TableName } from 'drizzle-orm/branded-types'; | ||
import { AnyPgTable } from '../table'; | ||
import { PgColumnBuilder, PgColumnWithMapper } from './common'; | ||
export declare class PgTextBuilder<TData extends string = string, TNotNull extends ColumnNotNull = ColumnNotNull<false>, THasDefault extends ColumnHasDefault = ColumnHasDefault<false>> extends PgColumnBuilder<ColumnData<TData>, ColumnDriverParam<string>, TNotNull, THasDefault> { | ||
export declare class PgTextBuilder<TData extends ColumnData<string> = ColumnData<string>, TNotNull extends ColumnNotNull = ColumnNotNull<false>, THasDefault extends ColumnHasDefault = ColumnHasDefault<false>> extends PgColumnBuilder<TData, ColumnDriverParam<string>, TNotNull, THasDefault> { | ||
} | ||
export declare class PgText<TTableName extends TableName, TNotNull extends ColumnNotNull, THasDefault extends ColumnHasDefault, TData extends string> extends PgColumnWithMapper<TTableName, ColumnData<TData>, ColumnDriverParam<string>, TNotNull, THasDefault> { | ||
export declare class PgText<TTableName extends TableName, TNotNull extends ColumnNotNull, THasDefault extends ColumnHasDefault, TData extends ColumnData<string>> extends PgColumnWithMapper<TTableName, TData, ColumnDriverParam<string>, TNotNull, THasDefault> { | ||
protected brand: 'PgText'; | ||
@@ -11,2 +11,3 @@ constructor(table: AnyPgTable<TTableName>, builder: PgTextBuilder<TData, TNotNull, THasDefault>); | ||
} | ||
export declare function text<T extends string = string>(name: string): PgTextBuilder<T, ColumnNotNull<false>, ColumnHasDefault<false>>; | ||
export declare function text(name: string): PgTextBuilder; | ||
export declare function text<T extends string = string>(name: string): PgTextBuilder<ColumnData<T>>; |
import { ColumnData, ColumnDriverParam, ColumnHasDefault, ColumnNotNull, TableName } from 'drizzle-orm/branded-types'; | ||
import { AnyPgTable } from '../table'; | ||
import { PgColumnBuilder, PgColumnWithMapper } from './common'; | ||
export declare class PgVarcharBuilder<TData extends ColumnData<string> = ColumnData<string>, TNotNull extends ColumnNotNull = ColumnNotNull<false>, THasDefault extends ColumnHasDefault = ColumnHasDefault<false>> extends PgColumnBuilder<ColumnData<TData>, ColumnDriverParam<string>, TNotNull, THasDefault> { | ||
export declare class PgVarcharBuilder<TData extends ColumnData<string> = ColumnData<string>, TNotNull extends ColumnNotNull = ColumnNotNull<false>, THasDefault extends ColumnHasDefault = ColumnHasDefault<false>> extends PgColumnBuilder<TData, ColumnDriverParam<string>, TNotNull, THasDefault> { | ||
constructor(name: string, length?: number); | ||
} | ||
export declare class PgVarchar<TTableName extends TableName, TData extends ColumnData<string>, TNotNull extends ColumnNotNull, THasDefault extends ColumnHasDefault> extends PgColumnWithMapper<TTableName, ColumnData<TData>, ColumnDriverParam<string>, TNotNull, THasDefault> { | ||
export declare class PgVarchar<TTableName extends TableName, TData extends ColumnData<string>, TNotNull extends ColumnNotNull, THasDefault extends ColumnHasDefault> extends PgColumnWithMapper<TTableName, TData, ColumnDriverParam<string>, TNotNull, THasDefault> { | ||
protected brand: 'PgVarchar'; | ||
@@ -13,2 +13,3 @@ length: number | undefined; | ||
} | ||
export declare function varchar<T extends string = string>(name: string, length?: number): PgVarcharBuilder<ColumnData<T>, ColumnNotNull<false>, ColumnHasDefault<false>>; | ||
export declare function varchar(name: string, length?: number): PgVarcharBuilder; | ||
export declare function varchar<T extends string = string>(name: string, length?: number): PgVarcharBuilder<ColumnData<T>>; |
{ | ||
"name": "drizzle-orm-pg", | ||
"version": "0.12.0-beta.5", | ||
"version": "0.12.0-beta.6", | ||
"description": "Drizzle ORM package for PostgreSQL database", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
203645
139
2990
1