method

bun.SQL.Query.raw

raw(): Query<T>;

Returns rows as arrays of Buffer objects instead of objects.

PostgreSQL and MySQL: the bytes the server sent. On PostgreSQL a prepared query gets bool, int4, float4, float8, numeric, bytea, time, timestamp, timestamptz, int4[] and float4[] in binary and every other type as text; all types are text on the first run of a query without parameters, with .simple() and with prepare: false. On MySQL a prepared query is binary. SQLite: Uint8Array objects.

Call it before the query starts. After that, SQLite ignores it, and on PostgreSQL some types can arrive in the other format.