/**
 * Updates the file data cache with materialized file content.
 * Used for write-through caching after file insert/update operations.
 *
 * @example
 * updateFileDataCache({
 *   engine: lix.engine!,
 *   fileId: "file_123",
 *   versionId: "version_456",
 *   data: new Uint8Array([...])
 * });
 */
export function updateFileDataCache(args) {
    // Use INSERT OR REPLACE for write-through caching
    args.engine.sqlite.exec({
        sql: `
      INSERT OR REPLACE INTO lix_internal_file_data_cache 
      (file_id, version_id, data)
      VALUES (?, ?, ?)
    `,
        bind: [args.fileId, args.versionId, args.data],
        returnValue: "resultRows",
    });
}
//# sourceMappingURL=update-file-data-cache.js.map