(ctx context.Context, conn DBPool)
| 173 | } |
| 174 | |
| 175 | func 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 | |
| 185 | func (c *Client) getPgType(ctx context.Context) (pgType, error) { |
| 186 | var version string |
no test coverage detected