drizzle-orm-pg
Advanced tools
Comparing version 0.14.3 to 0.15.0-5ce7d69
@@ -7,2 +7,6 @@ "use strict"; | ||
constructor(config, actions) { | ||
/** @internal */ | ||
this._onUpdate = 'no action'; | ||
/** @internal */ | ||
this._onDelete = 'no action'; | ||
this.reference = () => { | ||
@@ -18,7 +22,7 @@ const { columns, foreignColumns } = config(); | ||
onUpdate(action) { | ||
this._onUpdate = action; | ||
this._onUpdate = typeof action === 'undefined' ? 'no action' : action; | ||
return this; | ||
} | ||
onDelete(action) { | ||
this._onDelete = action; | ||
this._onDelete = typeof action === 'undefined' ? 'no action' : action; | ||
return this; | ||
@@ -25,0 +29,0 @@ } |
{ | ||
"name": "drizzle-orm-pg", | ||
"version": "0.14.3", | ||
"version": "0.15.0-5ce7d69", | ||
"description": "Drizzle ORM package for PostgreSQL database", | ||
@@ -31,3 +31,3 @@ "main": "index.js", | ||
"@types/pg": ">=8 <9", | ||
"drizzle-orm": ">=0.14 <0.15", | ||
"drizzle-orm": ">=0.15 <0.16", | ||
"pg": ">=8 <9" | ||
@@ -34,0 +34,0 @@ }, |
@@ -9,3 +9,4 @@ import { SelectFields, SelectFieldsOrdered } from './operations'; | ||
export declare function getTableChecks<TTable extends AnyPgTable>(table: TTable): import("./checks").Check[]; | ||
export declare const apiVersion: number; | ||
export declare type Assume<T, U> = T extends U ? T : U; | ||
export declare function orderSelectedFields(fields: SelectFields, pathPrefix?: string[]): SelectFieldsOrdered; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.orderSelectedFields = exports.mapUpdateSet = exports.getTableChecks = exports.getTableForeignKeys = exports.getTableIndexes = exports.getTableColumns = void 0; | ||
exports.orderSelectedFields = exports.mapUpdateSet = exports.apiVersion = exports.getTableChecks = exports.getTableForeignKeys = exports.getTableIndexes = exports.getTableColumns = void 0; | ||
const drizzle_orm_1 = require("drizzle-orm"); | ||
@@ -32,2 +32,3 @@ const sql_1 = require("drizzle-orm/sql"); | ||
exports.getTableChecks = getTableChecks; | ||
exports.apiVersion = 1; | ||
/** @internal */ | ||
@@ -34,0 +35,0 @@ function mapUpdateSet(table, values) { |
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
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
223566
3362