import {Sql} from "https://deno.land/x/[email protected]/mod.ts"
- constructor
- 2 properties: estimatedByteLength, sqlSettings
- 5 methods: concat, append, encode, toString, toSqlBytesWithParamsBackslashAndBuffer
- 2 protected properties: strings, params
🔧 constructor
(sqlSettings: SqlSettings, onArrow?: OnArrow, strings?: string
[], params?: unknown
[])
📄 sqlSettings: SqlSettings
⚙ append(other: Sql): this
⚙ encode(putParamsTo?: unknown
[], mysqlNoBackslashEscapes: boolean
=false, useBuffer?: Uint8Array, useBufferFromPos: number
=0, defaultParentName?: Uint8Array): Uint8Array
If
useBuffer
is provided, and it has enough size, will encode to it, and return auseBuffer.subarray(0, N)
. Else, will return a subarray of a new Uint8Array. IfuseBufferFromPos
is provided, will append to theuseBuffer
after this position.