Comparing version 0.0.80 to 0.0.81
@@ -215,2 +215,3 @@ "use strict"; | ||
} | ||
colDefine = `${col.jsName}${'required' === col.optional ? '' : '?'}: Date | string`; | ||
break; | ||
@@ -281,3 +282,3 @@ case 'int': | ||
? `$EnumFilter<${v.fieldType}, ${v.isNull}>` | ||
: `$${titleCase(v.fieldType)}Filter<${v.isNull}>`} | ${v.fieldType} ${v.isNull ? ' | null' : ''}`}`) | ||
: `$${v.fieldType === 'Date | string' ? 'Date' : titleCase(v.fieldType)}Filter<${v.isNull}>`} | ${v.fieldType} ${v.isNull ? ' | null' : ''}`}`) | ||
] | ||
@@ -492,2 +493,4 @@ .join('\n'); | ||
typeTbl = `$Enum['${typeTbl}']`; | ||
if (col.type === 'Date') | ||
typeTbl = `Date | string`; | ||
columns[col.jsName] = { | ||
@@ -494,0 +497,0 @@ fieldName: col.jsName, |
@@ -512,3 +512,3 @@ "use strict"; | ||
foreign(action, foreign, relTbl) { | ||
if (action === 'ADD') { | ||
if (action === 'ADD' && relTbl) { | ||
return `${keyword.stmt.constraintPre(table, action)}CONSTRAINT ${qName}FOREIGN_${table}_${foreign.keys.join('_')}${qName} FOREIGN KEY (${foreign.keys | ||
@@ -515,0 +515,0 @@ .map((v) => `${qName}${v}${qName}`) |
{ | ||
"name": "aca.ts", | ||
"version": "0.0.80", | ||
"version": "0.0.81", | ||
"description": "ACA.ts is a fullstack development toolkit, which can automatically synchronize database schema and generate database query APIs according to a typescript ORM document; Automatically generate the client access server APIs according to the server functions and database query APIs, so that the client code can be developed on the client.", | ||
"keywords": [ | ||
"aca", | ||
"knex" | ||
"orm", | ||
"knex", | ||
"fullstack", | ||
"route", | ||
"remote", | ||
"function", | ||
"pg", | ||
"postgresql", | ||
"mssql", | ||
"mysql", | ||
"sqlite", | ||
"prisma" | ||
], | ||
@@ -33,2 +44,2 @@ "author": { | ||
} | ||
} | ||
} |
@@ -64,3 +64,2 @@ | ||
in?: TNull extends true ? Array<string> | null : Array<string> | ||
notIn?: TNull extends true ? Array<string> | null : Array<string> | ||
not?: TNull extends true | ||
@@ -85,3 +84,2 @@ ? $StringFilter<TNull> | string | null | ||
in?: TNull extends true ? Array<T> | null : Array<T> | ||
notIn?: TNull extends true ? Array<T> | null : Array<T> | ||
not?: TNull extends true | ||
@@ -106,3 +104,2 @@ ? $EnumFilter<T, TNull> | T | null | ||
in?: TNull extends true ? Array<number> | null : Array<number> | ||
notIn?: TNull extends true ? Array<number> | null : Array<number> | ||
not?: TNull extends true | ||
@@ -122,14 +119,13 @@ ? $NumberFilter<TNull> | number | null | ||
type $DateFilter<TNull = true> = { | ||
eq?: TNull extends true ? Date | null : Date | ||
in?: TNull extends true ? Array<Date> | null : Array<Date> | ||
notIn?: TNull extends true ? Array<Date> | null : Array<Date> | ||
eq?: TNull extends true ? Date | string | null : Date | string | ||
in?: TNull extends true ? Array<Date|string> | null : Array<Date|string> | ||
not?: TNull extends true | ||
? $DateFilter<TNull> | Date | null | ||
: $DateFilter<TNull> | Date | ||
lt?: Date | ||
lte?: Date | ||
gt?: Date | ||
gte?: Date | ||
like?: Date | ||
between?: Array<Date> | ||
? $DateFilter<TNull> | Date| string | null | ||
: $DateFilter<TNull> | Date| string | ||
lt?: Date | string | ||
lte?: Date | string | ||
gt?: Date | string | ||
gte?: Date | string | ||
like?: Date | string | ||
between?: Array<Date | string> | ||
AND?: $Enumerable<$DateFilter<TNull>> | ||
@@ -136,0 +132,0 @@ OR?: $Enumerable<$DateFilter<TNull>> |
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
270722
4585