UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 868 B
import{M as e}from"./transcript-chat-message-content-Cx-VPFHv.mjs";function isPromiseLike(e){if(e===null||typeof e!=`object`&&typeof e!=`function`)return!1;try{return typeof e.then==`function`}catch{return!1}}var t=/* @__PURE__ */ e({assertSyncTransactionResult:()=>assertSyncTransactionResult,isPostgresSqlConnection:()=>isPostgresSqlConnection,sqlPublicationAnchor:()=>sqlPublicationAnchor});function assertSyncTransactionResult(e){if(isPromiseLike(e))throw Error(`SQLite write transactions must be synchronous; Promise returns are not supported.`)}const n=Symbol.for(`openclaw.postgres-sync-connection`);function isPostgresSqlConnection(e){return n in e&&e[n]===!0}function sqlPublicationAnchor(e){return isPostgresSqlConnection(e)?e.anchor:e}export{isPromiseLike as a,t as i,isPostgresSqlConnection as n,sqlPublicationAnchor as r,assertSyncTransactionResult as t};