import { entityKind } from "../entity.js";
class CockroachPolicy {
  constructor(name, config) {
    this.name = name;
    if (config) {
      this.as = config.as;
      this.for = config.for;
      this.to = config.to;
      this.using = config.using;
      this.withCheck = config.withCheck;
    }
  }
  static [entityKind] = "CockroachPolicy";
  as;
  for;
  to;
  using;
  withCheck;
  /** @internal */
  _linkedTable;
  link(table) {
    this._linkedTable = table;
    return this;
  }
}
function cockroachPolicy(name, config) {
  return new CockroachPolicy(name, config);
}
export {
  CockroachPolicy,
  cockroachPolicy
};
//# sourceMappingURL=policies.js.map