import { escapeLikePattern } from "./escapeLikePattern.js";
const buildIlikeTerm = (value, mode = "contains") => {
  const escaped = escapeLikePattern(value);
  switch (mode) {
    case "startsWith":
      return `${escaped}%`;
    case "endsWith":
      return `%${escaped}`;
    case "contains":
    default:
      return `%${escaped}%`;
  }
};
export {
  buildIlikeTerm
};
//# sourceMappingURL=buildIlikeTerm.js.map
