import type { BUN_MARIADB_FieldSchemaType, SQLInsertGenValueType } from "../types"; type Return = { placeholder: string; value: SQLInsertGenValueType; }; /** * Map a JS value to a bound parameter + placeholder for INSERT / UPDATE. * * - `false` / `true` -> `0` / `1` * - number arrays (embeddings) -> `VEC_FromText(?)` with a JSON string * - `{ value, placeholder }` factories are called once * - `""` stays `""` for text columns and becomes `NULL` for everything else * (e.g. the `number | ""` typedefs for numeric columns) */ export default function sqlValuePlaceholder({ value, field, }: { value: any; field?: BUN_MARIADB_FieldSchemaType; }): Return; export {};