import { entityKind } from "../../entity.js";
import { getColumnNameAndConfig } from "../../utils.js";
import { CockroachColumn, CockroachColumnWithArrayBuilder } from "./common.js";
class CockroachBinaryVectorBuilder extends CockroachColumnWithArrayBuilder {
  static [entityKind] = "CockroachBinaryVectorBuilder";
  constructor(name, config) {
    super(name, "string", "CockroachBinaryVector");
    this.config.dimensions = config.dimensions;
  }
  /** @internal */
  build(table) {
    return new CockroachBinaryVector(
      table,
      this.config
    );
  }
}
class CockroachBinaryVector extends CockroachColumn {
  static [entityKind] = "CockroachBinaryVector";
  dimensions = this.config.dimensions;
  getSQLType() {
    return `bit(${this.dimensions})`;
  }
}
function bit(a, b) {
  const { name, config } = getColumnNameAndConfig(a, b);
  return new CockroachBinaryVectorBuilder(name, config);
}
export {
  CockroachBinaryVector,
  CockroachBinaryVectorBuilder,
  bit
};
//# sourceMappingURL=bit.js.map