typesql-cli
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -12,3 +12,2 @@ import { ParserRuleContext, RuleContext } from "antlr4ts"; | ||
export declare function findColumnSchema(tableName: string, columnName: string, dbSchema: ColumnSchema[]): ColumnSchema | undefined; | ||
export declare function filterKeyColumn(tableName: string, dbSchema: ColumnSchema[]): ColumnSchema[]; | ||
export declare function findColumn(fieldName: FieldName, columns: ColumnDef[]): ColumnDef; | ||
@@ -15,0 +14,0 @@ export declare function extractOriginalSql(rule: ParserRuleContext): string | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSimpleExpressions = exports.extractOriginalSql = exports.findColumn = exports.filterKeyColumn = exports.findColumnSchema = exports.functionAlias = exports.splitName = exports.extractFieldsFromUsingClause = exports.getColumnName = exports.selectAllColumns = exports.filterColumns = void 0; | ||
exports.getSimpleExpressions = exports.extractOriginalSql = exports.findColumn = exports.findColumnSchema = exports.functionAlias = exports.splitName = exports.extractFieldsFromUsingClause = exports.getColumnName = exports.selectAllColumns = exports.filterColumns = void 0; | ||
const antlr4ts_1 = require("antlr4ts"); | ||
@@ -131,6 +131,2 @@ const Interval_1 = require("antlr4ts/misc/Interval"); | ||
exports.findColumnSchema = findColumnSchema; | ||
function filterKeyColumn(tableName, dbSchema) { | ||
return dbSchema.filter(col => col.table.toLowerCase() == tableName.toLowerCase() && col.columnKey == 'PRI'); | ||
} | ||
exports.filterKeyColumn = filterKeyColumn; | ||
function findColumn(fieldName, columns) { | ||
@@ -137,0 +133,0 @@ //TODO - Put tableAlias always '' |
{ | ||
"name": "typesql-cli", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
421893
5279