k1LoW / tbls

tbls is a CI-Friendly tool for document a database, written in Go.
MIT License
3.32k stars 163 forks source link

Support the case where name in index_info is NULL. #579

Closed k1LoW closed 2 months ago

k1LoW commented 2 months ago

Fix https://github.com/k1LoW/tbls/issues/578 ( @tcanabrava Thank you!! ) ref: https://www.sqlite.org/pragma.html#pragma_index_info

  1. The name of the column being indexed. This columns is NULL if the column is the rowid or an expression.
github-actions[bot] commented 2 months ago

Code Metrics Report

main (c883454) #579 (730da2f) +/-
Coverage 54.2% 52.5% -1.6%
Code to Test Ratio 1:0.4 1:0.4 -0.0
Details ``` diff | | main (c883454) | #579 (730da2f) | +/- | |--------------------|----------------|----------------|-------| - | Coverage | 54.2% | 52.5% | -1.6% | | Files | 51 | 51 | 0 | | Lines | 4557 | 4558 | +1 | - | Covered | 2468 | 2394 | -74 | - | Code to Test Ratio | 1:0.4 | 1:0.4 | -0.0 | | Code | 9825 | 9827 | +2 | | Test | 4113 | 4113 | 0 | ```

Code coverage of files in pull request scope (89.5% → 89.5%)

Files Coverage +/-
drivers/sqlite/sqlite.go 89.5% +0.1%

Reported by octocov