openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 482 B
JavaScript
import{u as e}from"./transcript-sqlite-post-commit-B_pko32i.mjs";import{p as t}from"./transcript-kysely-sync-CAP5xe3V.mjs";function engineTextByteSliceSql(n,r,i,a){return e(n)?t`substring(convert_to(${r}, 'UTF8') FROM ${i} FOR ${a})`:t`coalesce(substr(CAST(${r} AS BLOB), ${i}, ${a}), CAST('' AS BLOB))`}function engineTextHexSql(n,r){return e(n)?t`upper(encode(convert_to(${r}, 'UTF8'), 'hex'))`:t`hex(cast(${r} as blob))`}export{engineTextHexSql as n,engineTextByteSliceSql as t};