MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / currentSchema

Function currentSchema

plugins/destination/postgresql/client/client.go:175–183  ·  view source on GitHub ↗
(ctx context.Context, conn DBPool)

Source from the content-addressed store, hash-verified

173}
174
175func currentSchema(ctx context.Context, conn DBPool) (string, error) {
176 var schema string
177 err := conn.QueryRow(ctx, "select current_schema()").Scan(&schema)
178 if err != nil {
179 return "", err
180 }
181
182 return schema, nil
183}
184
185func (c *Client) getPgType(ctx context.Context) (pgType, error) {
186 var version string

Callers 2

NewFunction · 0.85
ConnectionTesterFunction · 0.85

Calls 2

ScanMethod · 0.80
QueryRowMethod · 0.65

Tested by

no test coverage detected