UNPKG

ts-mysql-analyzer

Version:

A MySQL query analyzer.

11 lines 436 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ts_mysql_schema_1 = require("ts-mysql-schema"); function missingIndex(schemaColumn, valueRef) { if (schemaColumn.sqlType === ts_mysql_schema_1.SqlDataType.JSON) { return false; } return valueRef.context === 'whereClause' && schemaColumn.index === null; } exports.missingIndex = missingIndex; //# sourceMappingURL=missing-index.js.map