MCPcopy Create free account
hub / github.com/temporalio/temporal / Exec

Method Exec

common/persistence/sql/sqlplugin/postgresql/admin.go:51–58  ·  view source on GitHub ↗

Exec executes a sql statement

(stmt string, args ...any)

Source from the content-addressed store, hash-verified

49
50// Exec executes a sql statement
51func (pdb *db) Exec(stmt string, args ...any) error {
52 db, err := pdb.handle.DB()
53 if err != nil {
54 return err
55 }
56 _, err = db.Exec(stmt, args...)
57 return pdb.handle.ConvertError(err)
58}
59
60// CreateSchemaVersionTables sets up the schema version tables
61func (pdb *db) CreateSchemaVersionTables() error {

Callers 6

UpdateSchemaVersionMethod · 0.95
WriteSchemaUpdateLogMethod · 0.95
DropTableMethod · 0.95
CreateDatabaseMethod · 0.95
DropDatabaseMethod · 0.95

Calls 3

DBMethod · 0.80
ConvertErrorMethod · 0.80
ExecMethod · 0.65

Tested by

no test coverage detected