@mrnafisia/type-query
Advanced tools
Comparing version 1.0.51 to 1.0.52
@@ -0,6 +1,7 @@ | ||
import { PoolConfig } from 'pg'; | ||
import type { AddHook, Pool, RemoveHook } from './types/pool'; | ||
declare const addHook: AddHook; | ||
declare const removeHook: RemoveHook; | ||
declare const createPool: (connectionString: string) => Pool; | ||
declare const createPool: (config: PoolConfig) => Pool; | ||
export { createPool, addHook, removeHook }; | ||
//# sourceMappingURL=pool.d.ts.map |
@@ -40,4 +40,4 @@ "use strict"; | ||
exports.removeHook = exports.addHook = exports.createPool = void 0; | ||
var dictionary_1 = require("./dictionary"); | ||
var pg_1 = require("pg"); | ||
var dictionary_1 = require("./dictionary"); | ||
var submit = pg_1.Query.prototype.submit; | ||
@@ -68,4 +68,4 @@ pg_1.Query.prototype.submit = function () { | ||
exports.removeHook = removeHook; | ||
var createPool = function (connectionString) { | ||
var pool = new pg_1.Pool({ connectionString: connectionString }); | ||
var createPool = function (config) { | ||
var pool = new pg_1.Pool(config); | ||
return { | ||
@@ -72,0 +72,0 @@ $: pool, |
{ | ||
"name": "@mrnafisia/type-query", | ||
"version": "1.0.51", | ||
"version": "1.0.52", | ||
"description": "mini-orm with full type support for postgres.", | ||
@@ -5,0 +5,0 @@ "main": "dist/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
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
593668
9257