drizzle-orm-pg
Advanced tools
Comparing version 0.12.0-beta.6 to 0.12.0-beta.7
@@ -17,6 +17,7 @@ import { ColumnData, ColumnDriverParam, ColumnHasDefault, ColumnNotNull, TableName } from 'drizzle-orm/branded-types'; | ||
} | ||
interface PgBigIntConfig { | ||
mode: 'number' | 'bigint'; | ||
interface PgBigIntConfig<T extends 'number' | 'bigint'> { | ||
mode: T; | ||
} | ||
export declare function bigint(name: string, config: PgBigIntConfig): PgBigInt53Builder<ColumnNotNull<false>, ColumnHasDefault<false>> | PgBigInt64Builder<ColumnNotNull<false>, ColumnHasDefault<false>>; | ||
export declare function bigint(name: string, mode: PgBigIntConfig<'number'>): PgBigInt53Builder; | ||
export declare function bigint(name: string, mode: PgBigIntConfig<'bigint'>): PgBigInt64Builder; | ||
export {}; |
@@ -46,4 +46,4 @@ "use strict"; | ||
exports.PgBigInt64 = PgBigInt64; | ||
function bigint(name, config) { | ||
if (config.mode === 'number') { | ||
function bigint(name, mode) { | ||
if (mode === 'number') { | ||
return new PgBigInt53Builder(name); | ||
@@ -50,0 +50,0 @@ } |
{ | ||
"name": "drizzle-orm-pg", | ||
"version": "0.12.0-beta.6", | ||
"version": "0.12.0-beta.7", | ||
"description": "Drizzle ORM package for PostgreSQL database", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
2991
0
203629