MCPcopy
hub / github.com/drizzle-team/drizzle-orm / toSql

Function toSql

drizzle-orm/src/sql/functions/vector.ts:5–7  ·  view source on GitHub ↗
(value: number[] | string[])

Source from the content-addressed store, hash-verified

3import { type SQL, sql, type SQLWrapper } from '../sql.ts';
4
5function toSql(value: number[] | string[]): string {
6 return JSON.stringify(value);
7}
8
9/**
10 * Used in sorting and in querying, if used in sorting,

Callers 6

l2DistanceFunction · 0.85
l1DistanceFunction · 0.85
innerProductFunction · 0.85
cosineDistanceFunction · 0.85
hammingDistanceFunction · 0.85
jaccardDistanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected