Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add SetDefaultPrepared which controls query value interpolation #288

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

Deiz
Copy link
Contributor

@Deiz Deiz commented Jul 30, 2021

This switches the datasets' internal isPrepared bools into a custom type
that resolves back into a bool when passed into the SQL builder. This
could have also been a *bool but I wanted to avoid nil checks and
potential sources of confusion if e.g. a child dataset happened to
dereference and mutate the pointer's value.

Per #266

@codecov
Copy link

codecov bot commented Jul 30, 2021

Codecov Report

Merging #288 (c689876) into master (6c631e9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #288   +/-   ##
=======================================
  Coverage   96.79%   96.80%           
=======================================
  Files          60       61    +1     
  Lines        3341     3350    +9     
=======================================
+ Hits         3234     3243    +9     
  Misses         91       91           
  Partials       16       16           
Flag Coverage Δ
unittests 96.80% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
delete_dataset.go 100.00% <100.00%> (ø)
insert_dataset.go 100.00% <100.00%> (ø)
prepared.go 100.00% <100.00%> (ø)
select_dataset.go 100.00% <100.00%> (ø)
truncate_dataset.go 100.00% <100.00%> (ø)
update_dataset.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c631e9...c689876. Read the comment docs.

This switches the datasets' internal isPrepared bools into a custom type
that resolves back into a bool when passed into the SQL builder. This
could have also been a *bool but I wanted to avoid nil checks and
potential sources of confusion if e.g. a child dataset happened to
dereference and mutate the pointer's value.
@doug-martin doug-martin merged commit 51bcb84 into doug-martin:master Aug 3, 2021
@doug-martin
Copy link
Owner

@Deiz thanks for the new feature! Just released v9.15.0

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