Conversation
…ve, upsert, count, patch, incrementalPatch, incrementalRemove, close, and fix DocCache Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
…on set() method Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
src/plugins/flutter/index.ts
Outdated
| sendRxDBEvent(JSON.stringify(eventBulk)); | ||
| }); | ||
| (process as any).db = db; | ||
| (process as any).close = async () => { |
There was a problem hiding this comment.
What happens if we want more then one database? @copilot
There was a problem hiding this comment.
Databases are now stored in a process.databases map keyed by name instead of a single process.db. Each init call adds to the map, and close(databaseName) targets just that entry. The Dart side uses process.databases[dbName].db[collectionName] for all JS expressions via _jsDbRef/_jsCollRef helpers. Fixed in c57f820.
…nstead of single process.db Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
…rRxDatabaseConnector calls Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
|
Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Added both in e3bf409:
|
|
@copilot the CI for this fails, please inspect the logs and fix. |
…tabase.md Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
The CI failure was caused by a broken markdown link in |
|
@copilot do not commit anythong to the "/docs" folder, this is generated. |
|
@copilot continue |
…restore scripts/fix-types.mjs Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
process.databasesmapprocess.close(databaseName)for targeted cleanup💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.