nitrite_bridge 3.3.0 copy "nitrite_bridge: ^3.3.0" to clipboard
nitrite_bridge: ^3.3.0 copied to clipboard

Inspect a running application's Nitrite database from a desktop client, over a paired, loopback-by-default connection.

3.3.0 #

  • Rebuilt against nitrite 3.3.0. No functional change in this package.

3.2.0 #

  • First release. Versioned with the rest of the nitrite-flutter packages rather than from 0.1.0, so a reader does not have to work out which nitrite a given nitrite_bridge pairs with. Requires nitrite 3.2.0, for Transaction.viewOf. NitriteAdapter for dbinspect_bridge: collections and handed-in repositories as stores, schema inferred from a document sample and always flagged as inferred, paging over FindOptions skip/limit/orderBy, the JSON filter DSL, and watch over Nitrite's collection subscription.
  • capabilities.filterOps reports eq, ne, gt, gte, lt, lte, in, notIn, exists and text. exists needs nitrite 3.0.0: the operator was reported unsupported for as long as the fluent API had nothing that tested for a field's presence.
  • Transactions (docs/PROTOCOL.md §3.1). beginTransaction() returns an AdapterTransaction whose adapter is a transactional twin over the same database — a second adapter rather than a mode on the first, so one connection's uncommitted documents can never reach another connection's reads. Nitrite's transaction lives above the storage engine, so this works identically on Hive and in memory.
  • capabilities.transactions follows allowWrite: that flag is the permission, this reports what the engine can undo. The transactional twin reports it false, because Nitrite does not nest one. listStores counts through the transaction, since a total that left out the rows the person just staged is not read-your-own-writes.
  • regex is off unless allowRegex is set, and refused with a length cap and a nested-quantifier check when it is on. Dart's RegExp backtracks and a match cannot be interrupted, so the default is the mitigation that matters.
  • Row editing behind allowWrite: insertRow, updateRow and deleteRow, addressed by _id. An update is partial, changes: 0 means the row was not there, and _id inside an update's values is refused — Nitrite merges an update document, so it would rewrite the identity of the row it just matched.
  • Every client-supplied store name is resolved against the set the adapter reported: Nitrite.getCollection creates a collection that does not exist, and a write goes through the same allow-list.
  • Sorting by a field no sampled document carries is refused rather than silently producing an arbitrary order.
0
likes
150
points
134
downloads

Documentation

API reference

Publisher

verified publisherdizitart.com

Weekly Downloads

Inspect a running application's Nitrite database from a desktop client, over a paired, loopback-by-default connection.

Homepage
Repository (GitHub)
View/report issues
Contributing

Funding

Consider supporting this project:

github.com

License

Apache-2.0 (license)

Dependencies

dbinspect_bridge, nitrite

More

Packages that depend on nitrite_bridge