import { entityKind } from "../../entity.js";
import { MsSqlColumnBuilderWithIdentity, MsSqlColumnWithIdentity } from "./common.js";
class MsSqlBitBuilder extends MsSqlColumnBuilderWithIdentity {
  static [entityKind] = "MsSqlBitBuilder";
  constructor(name) {
    super(name, "boolean", "MsSqlBit");
  }
  /** @internal */
  build(table) {
    return new MsSqlBit(table, this.config);
  }
}
class MsSqlBit extends MsSqlColumnWithIdentity {
  static [entityKind] = "MsSqlBit";
  getSQLType() {
    return `bit`;
  }
  mapFromDriverValue = Boolean;
}
function bit(name) {
  return new MsSqlBitBuilder(name ?? "");
}
export {
  MsSqlBit,
  MsSqlBitBuilder,
  bit
};
//# sourceMappingURL=bit.js.map