import { entityKind } from "../entity.js";
function primaryKey(config) {
  return new PrimaryKeyBuilder(config.columns, config.name);
}
class PrimaryKeyBuilder {
  static [entityKind] = "MsSqlPrimaryKeyBuilder";
  /** @internal */
  columns;
  /** @internal */
  name;
  constructor(columns, name) {
    this.columns = columns;
    this.name = name;
  }
  /** @internal */
  build(table) {
    return new PrimaryKey(table, this.columns, this.name);
  }
}
class PrimaryKey {
  constructor(table, columns, name) {
    this.table = table;
    this.columns = columns;
    this.name = name;
  }
  static [entityKind] = "MsSqlPrimaryKey";
  columns;
  name;
  getName() {
    return this.name;
  }
}
export {
  PrimaryKey,
  PrimaryKeyBuilder,
  primaryKey
};
//# sourceMappingURL=primary-keys.js.map