@databases/pg-config
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -33,2 +33,4 @@ "use strict"; | ||
schemaTypeName: 'DatabaseSchema', | ||
serializeValueFileName: 'index.ts', | ||
serializeValueTypeName: 'serializeValue', | ||
tableFileName: '{{ TABLE_NAME }}.ts', | ||
@@ -67,2 +69,4 @@ tableInsertParametersFileName: '{{ TABLE_NAME }}.ts', | ||
schemaTypeName: 'DatabaseSchema', | ||
serializeValueFileName: 'index.ts', | ||
serializeValueTypeName: 'serializeValue', | ||
tableFileName: '{{ TABLE_NAME }}.ts', | ||
@@ -99,2 +103,4 @@ tableInsertParametersFileName: '{{ TABLE_NAME }}.ts', | ||
schemaTypeName: 'DatabaseSchema', | ||
serializeValueFileName: 'index.ts', | ||
serializeValueTypeName: 'serializeValue', | ||
tableFileName: '{{ TABLE_NAME }}.ts', | ||
@@ -101,0 +107,0 @@ tableInsertParametersFileName: '{{ TABLE_NAME }}.ts', |
@@ -157,2 +157,14 @@ export interface TestConfig { | ||
/** | ||
* What should the generated "serializeValue" function be called | ||
* | ||
* @default "serializeValue" | ||
*/ | ||
serializeValueTypeName: string; | ||
/** | ||
* What filename do you want to use for the generated "serializeValue" function | ||
* | ||
* @default "index.ts" | ||
*/ | ||
serializeValueFileName: string; | ||
/** | ||
* Override column types for some columns. The name can be either: | ||
@@ -159,0 +171,0 @@ * |
@@ -140,2 +140,12 @@ import Ajv = require('ajv'); | ||
}; | ||
serializeValueFileName: { | ||
default: string; | ||
description: string; | ||
type: string; | ||
}; | ||
serializeValueTypeName: { | ||
default: string; | ||
description: string; | ||
type: string; | ||
}; | ||
tableFileName: { | ||
@@ -142,0 +152,0 @@ default: string; |
@@ -155,2 +155,12 @@ "use strict"; | ||
}, | ||
serializeValueFileName: { | ||
default: 'index.ts', | ||
description: 'What filename do you want to use for the generated "serializeValue" function', | ||
type: 'string' | ||
}, | ||
serializeValueTypeName: { | ||
default: 'serializeValue', | ||
description: 'What should the generated "serializeValue" function be called', | ||
type: 'string' | ||
}, | ||
tableFileName: { | ||
@@ -186,3 +196,3 @@ default: '{{ TABLE_NAME }}.ts', | ||
}, | ||
required: ['columnTypeOverrides', 'directory', 'domainFileName', 'domainTypeMode', 'domainTypeName', 'enumFileName', 'enumTypeMode', 'enumTypeName', 'primaryKeyFileName', 'primaryKeyTypeMode', 'primaryKeyTypeName', 'schemaFileName', 'schemaTypeName', 'tableFileName', 'tableInsertParametersFileName', 'tableInsertParametersTypeName', 'tableTypeName', 'typeOverrides'], | ||
required: ['columnTypeOverrides', 'directory', 'domainFileName', 'domainTypeMode', 'domainTypeName', 'enumFileName', 'enumTypeMode', 'enumTypeName', 'primaryKeyFileName', 'primaryKeyTypeMode', 'primaryKeyTypeName', 'schemaFileName', 'schemaTypeName', 'serializeValueFileName', 'serializeValueTypeName', 'tableFileName', 'tableInsertParametersFileName', 'tableInsertParametersTypeName', 'tableTypeName', 'typeOverrides'], | ||
type: 'object' | ||
@@ -189,0 +199,0 @@ } |
{ | ||
"name": "@databases/pg-config", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/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
36679
802