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

Method isShowOrDescribeQuery

src/dialects/db2/query.js:447–455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

445 }
446
447 isShowOrDescribeQuery() {
448 let result = false;
449
450 result = result || this.sql.toLowerCase().startsWith("select c.column_name as 'name', c.data_type as 'type', c.is_nullable as 'isnull'");
451 result = result || this.sql.toLowerCase().startsWith('select tablename = t.name, name = ind.name,');
452 result = result || this.sql.toLowerCase().startsWith('exec sys.sp_helpindex @objname');
453
454 return result;
455 }
456 isShowIndexesQuery() {
457 let result = false;
458

Callers 2

runMethod · 0.95
_handleQueryResponseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected