MCPcopy
hub / github.com/sequelize/sequelize / isShowOrDescribeQuery

Method isShowOrDescribeQuery

lib/dialects/db2/query.js:433–441  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 }
432
433 isShowOrDescribeQuery() {
434 let result = false;
435
436 result = result || this.sql.toLowerCase().startsWith("select c.column_name as 'name', c.data_type as 'type', c.is_nullable as 'isnull'");
437 result = result || this.sql.toLowerCase().startsWith('select tablename = t.name, name = ind.name,');
438 result = result || this.sql.toLowerCase().startsWith('exec sys.sp_helpindex @objname');
439
440 return result;
441 }
442 isShowIndexesQuery() {
443 let result = false;
444

Callers 2

runMethod · 0.95
_handleQueryResponseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected