(ctx context.Context, conn DBPool)
| 164 | } |
| 165 | |
| 166 | func currentDatabase(ctx context.Context, conn DBPool) (string, error) { |
| 167 | var db string |
| 168 | err := conn.QueryRow(ctx, "select current_database()").Scan(&db) |
| 169 | if err != nil { |
| 170 | return "", err |
| 171 | } |
| 172 | return db, nil |
| 173 | } |
| 174 | |
| 175 | func currentSchema(ctx context.Context, conn DBPool) (string, error) { |
| 176 | var schema string |
no test coverage detected