MCPcopy Create free account
hub / github.com/featureform/featureform / transformationUpdate

Method transformationUpdate

provider/sql.go:1641–1649  ·  view source on GitHub ↗
(db *sql.DB, tableName string, query string)

Source from the content-addressed store, hash-verified

1639}
1640
1641func (q defaultOfflineSQLQueries) transformationUpdate(db *sql.DB, tableName string, query string) error {
1642 tempName := sanitize(fmt.Sprintf("tmp_%s", tableName))
1643 fullQuery := fmt.Sprintf("CREATE TABLE %s AS SELECT * FROM ( %s )", tempName, query)
1644 err := q.atomicUpdate(db, tableName, tempName, fullQuery)
1645 if err != nil {
1646 return err
1647 }
1648 return nil
1649}
1650
1651func (q defaultOfflineSQLQueries) transformationExists() string {
1652 bind := q.newVariableBindingIterator()

Callers

nothing calls this directly

Calls 2

atomicUpdateMethod · 0.95
sanitizeFunction · 0.70

Tested by

no test coverage detected