Benign dart Download

sqlite_plus_reactive 0.0.1-dev.1

“Opt-in shared reactive query snapshots for sqlite_plus and its ORM.”

Basename is uppercase README.mdWhile loop contains a try block
SHA-256363389f317a57d5db82bca8274fd1de22c38078be10cfbc88b2e0fc6c67cec82

Evidence

At least four Markdown-style heading lines README.md · lines 12–22
12:6… ite_plus_orm: ^0.1.12
13 sqlite_plus_reactive: ^0.0.1-dev.1
14```
15
16## ORM integration
17
18Import `sqlite_plus_orm`; its normal typed query builder exposes:
⋯4 lines
SQL INSERT syntax reference main.dart · lines 1–48
⋯26 lines
27 await reactive.flush();
28 await changes.transaction((tx) =>
29 tx.execute("INSERT INTO products VALUES(1,'حليب',10),(2,'شاي',30)"));
30 await reactive.flush();
31 if (results.length != 2 ||
32 results.last.items.single['name'] != 'حليب' ||
33 results.last.changes.single.kind != ReactiveChangeKind.added) {
34 throw StateError('Initial/filter/change assertions failed');
35 }
36 await changes.transaction(
37 (tx) => tx.execute('UPDATE products SET price=5 WHERE id=2'));
38 await reactive.flush();
39 if (results.last.items.first['name'] != 'شاي') {
⋯9 lines
Assigns or defaults bound to 1000-1024 changes_source.dart · lines 7–14
7:51… iveInvalidationSource {
8 ChangesReactiveSource(this.changes,
9 {this.maxTransactions = 1000,
10 this.maxEvents = 100000,
11 this.maxPages = 16}) {
12 if (maxTransactions < 1 ||
13 maxTransactions > 1000 ||
14 …
Builds characters with String.fromCharCode registry.dart · lines 1–9
1import 'dart:async';
2import 'dart:convert';
3import 'dart:typed_data';
4import 'package:sqlite_plus/sqlite_plus.dart';
5
6String _name(String name) => String.fromCharCodes(
7 name.codeUnits.map((c) => c >= 65 && c <= 90 ? c + 32 : c));
8Object? _copy(Object? value) =>
9 value is Uint8List ? Uint8 …
Constructs a JavaScript function dynamically registry.dart · lines 125–129
125:27… Set<String>?> dependencies,
126 required Future<QueryResult> Function() evaluate,
127 required T Function(Map<String, Object?> row) decode,
128 List<String> keyColumns = const [],
129 Object? …

Showing the top 5 files — 1 more file (20 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.