Skip to content

test: logger and printers, fix nested transaction comment - #25

Merged
necessarylion merged 1 commit into
mainfrom
todo/orm-batch5
Nov 1, 2026
Merged

necessarylion merged 1 commit into
mainfrom
todo/orm-batch5

Conversation

@necessarylion

Copy link
Copy Markdown
Member

No behaviour change. Only tests and comments.

  • The doc comment on QueryBuilder.transaction said a nested call joins the outer transaction. That is wrong. A nested call makes a savepoint, and a failure inside rolls back to that savepoint. The comment now says this.
  • Logger and the three printers had coverage:ignore-file. Some tests already existed from fix: ORM log safety, @name in strings, TLS warning #24 (value order, logRedact, FileQueryPrinter sync and buffered, Logger.warn). I added only what was missing:
    • ConsoleQueryPrinter: json line, and filter
    • FileQueryPrinter: filter, and a failed buffered write does not throw
    • PrettyQueryPrinter: query and params output
    • Logger.info, success, danger colours
  • Removed coverage:ignore-file from all four files. Every branch in them is now run by a test.

Checked: dart format, dart analyze --fatal-infos packages, SQLite tests pass.

@necessarylion
necessarylion merged commit 8f142a4 into main Nov 1, 2026
2 checks passed
@necessarylion
necessarylion deleted the todo/orm-batch5 branch November 1, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant