MCPcopy
hub / github.com/sequelize/sequelize / isForeignKeysQuery

Method isForeignKeysQuery

src/dialects/postgres/query.js:415–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413 }
414
415 isForeignKeysQuery() {
416 return /SELECT conname as constraint_name, pg_catalog\.pg_get_constraintdef\(r\.oid, true\) as condef FROM pg_catalog\.pg_constraint r WHERE r\.conrelid = \(SELECT oid FROM pg_class WHERE relname = '.*' LIMIT 1\) AND r\.contype = 'f' ORDER BY 1;/.test(this.sql);
417 }
418
419 getInsertIdField() {
420 return 'id';

Callers 7

runMethod · 0.95
formatResultsMethod · 0.95
formatResultsMethod · 0.95
formatResultsMethod · 0.95
formatResultsMethod · 0.95
formatResultsMethod · 0.95
formatResultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected