Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

drizzle-orm-pg

Package Overview
Dependencies
Maintainers
3
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drizzle-orm-pg - npm Package Compare versions

Comparing version 0.14.3 to 0.15.0-5ce7d69

8

foreign-keys.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc