import { entityKind } from "../../entity.js";
import { CockroachColumnWithArrayBuilder } from "./common.js";
class CockroachIntColumnBaseBuilder extends CockroachColumnWithArrayBuilder {
  static [entityKind] = "CockroachIntColumnBaseBuilder";
  generatedAlwaysAsIdentity(sequence) {
    this.config.generatedIdentity = sequence ? {
      type: "always",
      sequenceOptions: sequence
    } : {
      type: "always"
    };
    this.config.hasDefault = true;
    this.config.notNull = true;
    return this;
  }
  generatedByDefaultAsIdentity(sequence) {
    this.config.generatedIdentity = sequence ? {
      type: "byDefault",
      sequenceOptions: sequence
    } : {
      type: "byDefault"
    };
    this.config.hasDefault = true;
    this.config.notNull = true;
    return this;
  }
}
export {
  CockroachIntColumnBaseBuilder
};
//# sourceMappingURL=int.common.js.map