Skip to content

Conversation

@vearutop
Copy link
Member

@vearutop vearutop commented Aug 7, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 8 (+1) 1907 (+134) 1359 (+129) 168 (+3) 380 (+2) 328 41.9K (+2.1K)
Go (test) 11 (+1) 2183 (+36) 1654 (+30) 96 433 (+6) 60 52.4K (+790B)

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

Go API Changes

# github.com/bool64/sqluct
## compatible changes
SplitStatements: added

# summary
Inferred base version: v0.2.7
Suggested version: v0.3.0

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

Unit Test Coverage

total: (statements) 73.5%
changed lines: (statements) 100.0%

Coverage of changed lines
File Function Coverage
Total 100.0%
statement.go 100.0%
statement.go:8 SplitStatements 100.0%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 70.8% 73.5% (+2.7%)
statement.go SplitStatements no function 100.0%

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

Benchmark Result

Benchmark diff with base branch
name                                 old time/op    new time/op    delta
Mapper_Insert_single-4                 5.18µs ± 0%    5.19µs ± 0%    ~     (p=0.595 n=5+5)
Mapper_Insert_singleOmitempty-4        4.71µs ± 2%    4.75µs ± 4%    ~     (p=0.151 n=5+5)
Mapper_Insert_slice_heterogeneous-4    10.6µs ± 0%    10.6µs ± 0%    ~     (p=0.738 n=5+5)
Mapper_Insert_slice_homogeneous-4      7.89µs ± 1%    7.88µs ± 0%    ~     (p=1.000 n=5+5)
Mapper_Select_struct-4                 4.10µs ± 1%    4.07µs ± 0%  -0.71%  (p=0.032 n=5+5)
Mapper_Select_ref-4                    8.33µs ± 0%    8.32µs ± 0%    ~     (p=0.587 n=5+5)
Referencer_Fmt_full-4                  19.4µs ± 2%    19.5µs ± 3%    ~     (p=0.841 n=5+5)
Referencer_Fmt_lite-4                  7.09µs ± 0%    7.13µs ± 2%    ~     (p=1.000 n=5+5)
Referencer_Fmt_raw-4                   5.33µs ± 0%    5.32µs ± 0%    ~     (p=0.381 n=5+5)

name                                 old alloc/op   new alloc/op   delta
Mapper_Insert_single-4                 3.08kB ± 0%    3.08kB ± 0%    ~     (all equal)
Mapper_Insert_singleOmitempty-4        2.70kB ± 0%    2.70kB ± 0%    ~     (all equal)
Mapper_Insert_slice_heterogeneous-4    6.22kB ± 0%    6.22kB ± 0%    ~     (all equal)
Mapper_Insert_slice_homogeneous-4      4.56kB ± 0%    4.56kB ± 0%    ~     (all equal)
Mapper_Select_struct-4                 2.80kB ± 0%    2.80kB ± 0%    ~     (all equal)
Mapper_Select_ref-4                    5.00kB ± 0%    5.00kB ± 0%    ~     (all equal)
Referencer_Fmt_full-4                  10.1kB ± 1%    10.2kB ± 1%    ~     (p=0.548 n=5+5)
Referencer_Fmt_lite-4                  4.42kB ± 0%    4.42kB ± 0%    ~     (all equal)
Referencer_Fmt_raw-4                   4.16kB ± 0%    4.16kB ± 0%    ~     (all equal)

name                                 old allocs/op  new allocs/op  delta
Mapper_Insert_single-4                   64.0 ± 0%      64.0 ± 0%    ~     (all equal)
Mapper_Insert_singleOmitempty-4          57.0 ± 0%      57.0 ± 0%    ~     (all equal)
Mapper_Insert_slice_heterogeneous-4       134 ± 0%       134 ± 0%    ~     (all equal)
Mapper_Insert_slice_homogeneous-4        97.0 ± 0%      97.0 ± 0%    ~     (all equal)
Mapper_Select_struct-4                   47.0 ± 0%      47.0 ± 0%    ~     (all equal)
Mapper_Select_ref-4                       105 ± 0%       105 ± 0%    ~     (all equal)
Referencer_Fmt_full-4                     126 ± 0%       126 ± 0%    ~     (all equal)
Referencer_Fmt_lite-4                    87.0 ± 0%      87.0 ± 0%    ~     (all equal)
Referencer_Fmt_raw-4                     61.0 ± 0%      61.0 ± 0%    ~     (all equal)
Benchmark result
name                                 time/op
Mapper_Insert_single-4               5.19µs ± 0%
Mapper_Insert_singleOmitempty-4      4.75µs ± 4%
Mapper_Insert_slice_heterogeneous-4  10.6µs ± 0%
Mapper_Insert_slice_homogeneous-4    7.88µs ± 0%
Mapper_Select_struct-4               4.07µs ± 0%
Mapper_Select_ref-4                  8.32µs ± 0%
Referencer_Fmt_full-4                19.5µs ± 3%
Referencer_Fmt_lite-4                7.13µs ± 2%
Referencer_Fmt_raw-4                 5.32µs ± 0%

name                                 alloc/op
Mapper_Insert_single-4               3.08kB ± 0%
Mapper_Insert_singleOmitempty-4      2.70kB ± 0%
Mapper_Insert_slice_heterogeneous-4  6.22kB ± 0%
Mapper_Insert_slice_homogeneous-4    4.56kB ± 0%
Mapper_Select_struct-4               2.80kB ± 0%
Mapper_Select_ref-4                  5.00kB ± 0%
Referencer_Fmt_full-4                10.2kB ± 1%
Referencer_Fmt_lite-4                4.42kB ± 0%
Referencer_Fmt_raw-4                 4.16kB ± 0%

name                                 allocs/op
Mapper_Insert_single-4                 64.0 ± 0%
Mapper_Insert_singleOmitempty-4        57.0 ± 0%
Mapper_Insert_slice_heterogeneous-4     134 ± 0%
Mapper_Insert_slice_homogeneous-4      97.0 ± 0%
Mapper_Select_struct-4                 47.0 ± 0%
Mapper_Select_ref-4                     105 ± 0%
Referencer_Fmt_full-4                   126 ± 0%
Referencer_Fmt_lite-4                  87.0 ± 0%
Referencer_Fmt_raw-4                   61.0 ± 0%

@vearutop vearutop merged commit 15650b1 into master Aug 7, 2025
7 checks passed
@vearutop vearutop deleted the split-statements branch August 7, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants