MCPcopy Create free account
hub / github.com/apecloud/myduckserver / CreateView

Method CreateView

catalog/database.go:399–408  ·  view source on GitHub ↗

CreateView implements sql.ViewDatabase.

(ctx *sql.Context, name string, selectStatement string, createViewStmt string)

Source from the content-addressed store, hash-verified

397 // Skip system views directly
398 if IsSystemView(name) {
399 continue
400 }
401
402 views = append(views, viewDefinitionFromMetadata(name, schemaName, createViewStmt, comment.String))
403 }
404 if err := rows.Err(); err != nil {
405 return nil, ErrDuckDB.New(err)
406 }
407 return views, nil
408}
409
410func viewDefinitionFromMetadata(name, schemaName, createViewStmt, encodedComment string) sql.ViewDefinition {
411 view := sql.ViewDefinition{

Callers

nothing calls this directly

Calls 2

ExecFunction · 0.92
FullSchemaNameFunction · 0.85

Tested by

no test coverage detected