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

TODO: #17

Open
pjebs opened this issue Jun 28, 2020 · 10 comments
Open

TODO: #17

pjebs opened this issue Jun 28, 2020 · 10 comments

Comments

@pjebs
Copy link
Collaborator

pjebs commented Jun 28, 2020

For JSON columns, give option to unmarshal to map[string]interface{} or custom object.

v3 Relations

  1. If struct contains field which is struct (pointer or concrete), then fetch.
  2. If struct contains field which is slice of struct, then fetch from join table
  3. Ability to escape sql injection protection: "Dangerous"
@pjebs
Copy link
Collaborator Author

pjebs commented Aug 13, 2020

For flattening slices, pre allocate memory

@pjebs
Copy link
Collaborator Author

pjebs commented Oct 29, 2020

Add some more helper functions from #18

@pjebs
Copy link
Collaborator Author

pjebs commented Nov 7, 2020

Unsafe package

@pjebs
Copy link
Collaborator Author

pjebs commented Dec 8, 2020

Update docs so ScanFaster explains it is related to "SELECT x,y,z ..."

@ipfans
Copy link

ipfans commented Feb 1, 2021

Please add gorm.io/gorm to benchmark.

@pjebs
Copy link
Collaborator Author

pjebs commented Feb 1, 2021

@pjebs
Copy link
Collaborator Author

pjebs commented Sep 17, 2021

dbq.Tx(ctx, pool, func(tx interface{}, Q dbq.QFn, E dbq.EFn, txCommit dbq.TxCommit) {

For v3, make signature: dbq.Tx(ctx, pool, func(ctx context.Context, txCommit dbq.TxCommit, _ interface{}, ) {

and pass pool through closure's ctx.

@pjebs
Copy link
Collaborator Author

pjebs commented Sep 17, 2021

Make SingleResult into a function adapter instead of an option.

@pjebs
Copy link
Collaborator Author

pjebs commented Nov 1, 2021

ScratchPad for PostUnmarshaler

@pjebs
Copy link
Collaborator Author

pjebs commented Jun 24, 2022

Global setting to set database type

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

No branches or pull requests

2 participants