8000 Squashed commit of "Add Column Metadata #152" by ephemeralowl · Pull Request #187 · DATA-DOG/go-sqlmock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Squashed commit of "Add Column Metadata #152" #187

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

Closed
wants to merge 1 commit into from

Conversation

ephemeralowl
Copy link

Work done by MarcelHillmann@ to add column metadata, but that pull request hasn't seen activity in some time.

Work done by MarcelHillmann@ but hasn't seen activity in some time.
@codecov-io
Copy link
codecov-io commented Aug 28, 2019

Codecov Report

Merging #187 into master will increase coverage by 0.31%.
The diff coverage is 97.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
+ Coverage   90.87%   91.18%   +0.31%     
==========================================
  Files          15       15              
  Lines         745      783      +38     
==========================================
+ Hits          677      714      +37     
- Misses         49       50       +1     
  Partials       19       19
Impacted Files Coverage Δ
sqlmock.go 93.94% <100%> (+0.11%) ⬆️
rows.go 91.12% <96.87%> (+1.99%) ⬆️

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 e98392b...6d00cbc. Read the comment docs.

@l3pp4rd
Copy link
Member
l3pp4rd commented Sep 27, 2019

hi, sorry, very busy these months, but I need to find time to closely review it

@jopicornell
Copy link

Hi there!

I'm using go-jet to build my SQL for a little project, and the issue that tries to fix this PR stops me to write tests for my project. Seems like go-jet is taking the ColumnTypes of rows, but databaseType is an empty string and it's taking all as string, failing to use their qrm as a struct scanner.

I'm pointing this out here so that everyone who wants to use go-jet's qrm (it's like an orm, but for building quieries) and use this library, this issue will stop them to write tests.

If you need anything in this PR I'll help you with anything I can.

@@ -115,24 +151,63 @@ func (rs *rowSets) invalidateRaw() {
rs.raw = nil
}

// Column is a mocked column Metadata for rows.ColumnTypes()
type Column struct {
name, dbTyp string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make all these fields exported, removing NewColumn and NewColumnSimple functions. and move everything related to Column in column.go file

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jopicornell these are the only changes I would like to be made here

@alespour alespour mentioned this pull request Jun 22, 2020
@l3pp4rd l3pp4rd closed this Jun 28, 2020
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.

4 participants
0