@@ -30,6 +30,8 @@ const organizations = {};
3030 * Dynamically resolves or caches a long-lived libSQL Database Client.
3131 * Supports standard local SQLite files ("file:local.db"), in-memory paths (":memory:"),
3232 * and remote Turso connections ("libsql://...") with cloud tokens.
33+ * @private
34+ * @environment server
3335 */
3436async function dbClient ( data ) {
3537 const storageUrl = data . storageConfig ?. databaseUrl || data . storageConfig ?. url ;
@@ -106,6 +108,8 @@ process.on("orgDeleted", (organization_id) => {
106108
107109/**
108110 * Safe transaction helper to update unstructured payloads with MongoDB behavior inside libSQL.
111+ * @private
112+ * @environment server
109113 */
110114async function executeUpdateTransaction ( db , arrayName , docId , rawUpdateInput , requestData ) {
111115 try {
@@ -166,6 +170,8 @@ async function executeUpdateTransaction(db, arrayName, docId, rawUpdateInput, re
166170
167171/**
168172 * Applies MongoDB update operators recursively to maintain unified schema manipulation behaviors.
173+ * @private
174+ * @environment server
169175 */
170176function applyMongoUpdate ( record , updatePayload ) {
171177 let target = { ...record } ;
@@ -256,6 +262,8 @@ function applyMongoUpdate(record, updatePayload) {
256262
257263/**
258264 * Translates standard MongoDB JSON filters into native SQLite query filters.
265+ * @private
266+ * @environment server
259267 */
260268function compileFilterToSQL ( filter , organizationId ) {
261269 let clauses = [ "organization_id = ?" ] ;
@@ -326,6 +334,8 @@ function compileFilterToSQL(filter, organizationId) {
326334
327335/**
328336 * Resolves SQLite columns and rows back into unified JSON format.
337+ * @private
338+ * @environment server
329339 */
330340function parseSqlRow ( row ) {
331341 if ( ! row ) return null ;
@@ -367,6 +377,8 @@ function deleteNestedValue(obj, path) {
367377
368378/**
369379 * Syncs the output response data arrays back cleanly.
380+ * @private
381+ * @environment server
370382 */
371383function createData ( data , array , type ) {
372384 if ( data [ type ] && data [ type ] [ 0 ] && data [ type ] [ 0 ] . isFilter === "isEmptyObjectFilter" ) {
0 commit comments