logd_sqlite 0.1.3
logd_sqlite: ^0.1.3 copied to clipboard
High-performance SQLite log sink for logd featuring WAL mode, prepared statements, atomic transaction batching, retention policies, and full-text search.
0.1.3 #
- Pub.dev Score & Lower-Bound Analysis Fixes:
- Updated
sqlite3lower bound constraint to^3.0.0to resolvePreparedStatement.close()lower-bound compatibility underdart pub downgradeanalysis. - Added explicit
platformssection inpubspec.yamlforandroid,ios,linux,macos, andwindowsnative OS targets.
- Updated
0.1.2 #
- ADR-006
{Target}HandlerAlignment:- Introduced
SqliteHandlerconvenience subclass extendingHandler(SqliteHandler(),SqliteHandler.inMemory(), andSqliteHandler.database()). - Added direct
sqliteSinkgetter onSqliteHandlerfor rich query engine access (queryLogs(),fetchLevelCounts(),fetchDistinctLoggerNames()). - Updated
logddependency constraint to^0.9.3.
- Introduced
sqlite33.x & Native Assets Modernization:- Updated
sqlite3version constraint to'>=2.4.0 <4.0.0', fully supportingsqlite33.x releases. - Leveraged Dart Native Assets build hooks, removing obsolete manual dynamic library overrides (
open.overrideFor). - Updated statement and database disposal lifecycle calls to
.close().
- Updated
0.1.1 #
- Pub.dev Maintenance & Score Fixes:
- Added library-level documentation comment to
logd_sqliteprimary export. - Added
example/example.dartstandard example entrypoint for pub.dev automated score discovery. - Updated
pubspec.yamlrepository and homepage URLs to valid HTTP 200 endpoints. - Updated
sqlite3dependency version constraint to'>=2.4.0 <4.0.0'supporting both 2.x and 3.x releases. - Updated
logddependency constraint to^0.9.2.
- Added library-level documentation comment to
0.1.0 #
- Initial release of
logd_sqlite, a dedicated satellite package providing production-grade SQLite persistence logging forlogd. SqliteSink: High-performanceLogSink<LogDocument>supporting:- Pre-compiled prepared statement reuse across all log writes.
- Write-Ahead Logging (
WALmode) and synchronous pragma optimizations. - Atomic transaction batching (
batchSize,flushInterval). - Full entry field fidelity (
timestamp,level,logger_name,origin,message,error,stack_trace,context_json). - Auto-pruning retention policies (
maxEntries,maxAge). - Rich query engine (
queryLogs) supporting level filtering, logger namespace matching, full-text search, and pagination. - Inspection helpers
fetchLevelCounts()andfetchDistinctLoggerNames(). - Database utilities
count(),clear(),vacuum(), andflush().
- Examples & Showcase:
example.dart: Standard usage entrypoint for log write, query engine, and level breakdown.sqlite_sink_showcase.dart: Top-to-bottom telemetry simulation and query engine proof-of-concept.sqlite_interactive_dashboard.dart: Interactive REPL CLI dashboard with level counts, discovered namespaces, and throughput benchmarking.