MCPcopy Create free account
hub / github.com/bytebase/bytebase / constructTriggerBody

Function constructTriggerBody

backend/plugin/db/oracle/sync.go:278–284  ·  view source on GitHub ↗
(description, triggerBody string)

Source from the content-addressed store, hash-verified

276}
277
278func constructTriggerBody(description, triggerBody string) string {
279 var buf strings.Builder
280 _, _ = buf.WriteString("CREATE OR REPLACE TRIGGER ")
281 _, _ = buf.WriteString(description)
282 _, _ = buf.WriteString(triggerBody)
283 return buf.String()
284}
285
286// getTables gets all tables of a database.
287func getTables(txn *sql.Tx, schemaName string, columnMap map[db.TableKey][]*storepb.ColumnMetadata, triggerMap map[db.TableKey][]*storepb.TriggerMetadata) (map[string][]*storepb.TableMetadata, error) {

Callers 1

getTriggersFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected