typesql-cli
Advanced tools
Comparing version 0.5.17 to 0.5.18
import { RuleContext } from "antlr4ts"; | ||
import { ParseTree } from "antlr4ts/tree"; | ||
import { QuerySpecificationContext, SubqueryContext } from "ts-mysql-parser"; | ||
import { QuerySpecificationContext, TableReferenceContext, SubqueryContext } from "ts-mysql-parser"; | ||
import { ColumnSchema, ColumnDef, FieldName, TypeAndNullInfer } from "./types"; | ||
@@ -9,2 +9,3 @@ export declare function filterColumns(dbSchema: ColumnSchema[], withSchema: TypeAndNullInfer[], tableAlias: string | undefined, table: FieldName): ColumnDef[]; | ||
export declare function getColumnsFrom(ctx: QuerySpecificationContext, dbSchema: ColumnSchema[], withSchema: TypeAndNullInfer[]): ColumnDef[]; | ||
export declare function extractColumnsFromTableReferences(tablesReferences: TableReferenceContext[], dbSchema: ColumnSchema[], withSchema: TypeAndNullInfer[]): ColumnDef[]; | ||
export declare function analyzeSubQuery(subQuery: SubqueryContext, dbSchema: ColumnSchema[], withSchema: TypeAndNullInfer[], recursive?: boolean): import("./types").TypeAndNullInferResult; | ||
@@ -11,0 +12,0 @@ export declare function splitName(fieldName: string): FieldName; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSimpleExpressions = exports.findColumn2 = exports.findColumn = exports.splitName = exports.analyzeSubQuery = exports.getColumnsFrom = exports.getColumnNames = exports.selectAllColumns = exports.filterColumns = void 0; | ||
exports.getSimpleExpressions = exports.findColumn2 = exports.findColumn = exports.splitName = exports.analyzeSubQuery = exports.extractColumnsFromTableReferences = exports.getColumnsFrom = exports.getColumnNames = exports.selectAllColumns = exports.filterColumns = void 0; | ||
const antlr4ts_1 = require("antlr4ts"); | ||
@@ -141,2 +141,3 @@ const Interval_1 = require("antlr4ts/misc/Interval"); | ||
} | ||
exports.extractColumnsFromTableReferences = extractColumnsFromTableReferences; | ||
function extractFieldsFromUsingClause(joinedTableContext) { | ||
@@ -143,0 +144,0 @@ var _a; |
{ | ||
"name": "typesql-cli", | ||
"version": "0.5.17", | ||
"version": "0.5.18", | ||
"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 too big to display
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
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
359323
4655