@db-auto/environments
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -9,1 +9,3 @@ import { NameAnd, NameAndValidator } from "@db-auto/utils"; | ||
export declare const environmentValidator: NameAndValidator<Environment>; | ||
export declare function sqlDialect(type: string): import("@db-auto/dal").DalDialect; | ||
export declare function dalFor(env: Environment): import("@db-auto/dal").Dal; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.environmentValidator = exports.cleanEnvironment = void 0; | ||
exports.dalFor = exports.sqlDialect = exports.environmentValidator = exports.cleanEnvironment = void 0; | ||
const utils_1 = require("@db-auto/utils"); | ||
@@ -26,1 +26,13 @@ const postgres_1 = require("@db-auto/postgres"); | ||
exports.environmentValidator = environmentValidator; | ||
function sqlDialect(type) { | ||
if (type === 'postgres') | ||
return postgres_1.postgresDalDialect; | ||
throw new Error(`Unknown environment type ${type}. Currently on postgres is supported. ${JSON.stringify(type)}`); | ||
} | ||
exports.sqlDialect = sqlDialect; | ||
function dalFor(env) { | ||
if (env.type === 'postgres') | ||
return (0, postgres_1.postgresDal)(env); | ||
throw new Error(`Unknown environment type ${env.type}. Currently on postgres is supported. ${JSON.stringify(env)}`); | ||
} | ||
exports.dalFor = dalFor; |
{ | ||
"name": "@db-auto/environments", | ||
"description": "", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"main": "dist/index", | ||
@@ -20,6 +20,6 @@ "types": "dist/index", | ||
"dependencies": { | ||
"@db-auto/utils": "0.0.25", | ||
"@db-auto/postgres": "0.0.25", | ||
"@db-auto/mysql": "0.0.25", | ||
"@db-auto/oracle": "0.0.25" | ||
"@db-auto/utils": "0.0.26", | ||
"@db-auto/postgres": "0.0.26", | ||
"@db-auto/mysql": "0.0.26", | ||
"@db-auto/oracle": "0.0.26" | ||
}, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
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
9584
147
+ Added@db-auto/dal@0.0.26(transitive)
+ Added@db-auto/mysql@0.0.26(transitive)
+ Added@db-auto/oracle@0.0.26(transitive)
+ Added@db-auto/postgres@0.0.26(transitive)
+ Added@db-auto/utils@0.0.26(transitive)
- Removed@db-auto/dal@0.0.25(transitive)
- Removed@db-auto/mysql@0.0.25(transitive)
- Removed@db-auto/oracle@0.0.25(transitive)
- Removed@db-auto/postgres@0.0.25(transitive)
- Removed@db-auto/utils@0.0.25(transitive)
Updated@db-auto/mysql@0.0.26
Updated@db-auto/oracle@0.0.26
Updated@db-auto/postgres@0.0.26
Updated@db-auto/utils@0.0.26