-
Notifications
You must be signed in to change notification settings - Fork 749
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
Support MySql driver #2356
Merged
Merged
Support MySql driver #2356
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
4192762
Add support of MySql database driver
victorshevtsov db51dcf
Merge branch 'prebid:master' into master
victorshevtsov 6343c15
Fix params for fetchDelta query for MySql driver
victorshevtsov 578c709
Fixed DatabaseUpdatePolling.validate method
victorshevtsov 3a8c16f
Merge branch 'prebid:master' into master
victorshevtsov 71e91fb
Migrate Database Connection Config
victorshevtsov 2e5a7a8
Merge branch 'prebid:master' into master
victorshevtsov 71801ff
Refactor dbFetcher
victorshevtsov 257b172
fix typo - storedRequestsTests
victorshevtsov c2c68ff
Call v.GetString and v.GetInt instead of v.Get
victorshevtsov 81da8b3
Reduce noise on startup if no dbname in the config
victorshevtsov c35b29d
remove connStringMySql & connStringPostgres funcs
victorshevtsov ae396d2
Update query example with `$LAST_UPDATED`
victorshevtsov 1a2b592
Remove `occurrence` struct
victorshevtsov bc16ac3
consolidated `if err...` clause
victorshevtsov aa4c904
Fix typo LAST_UPDATE -> LAST_UPDATED
victorshevtsov 17b7068
Update migration
victorshevtsov 9f46445
Eliminate the need for `relfect`
victorshevtsov 0a2c686
Simplify func signatures of db providers
victorshevtsov bf836b6
Update comments & docs explaining query parameters
victorshevtsov 5afcc5e
Migrate query parameters
victorshevtsov 5351540
Merge branch 'master' into master
victorshevtsov 98758bc
Update check for wildcards in SQL query
victorshevtsov 42e2f5c
Update SQL queries migration
victorshevtsov 3a63b20
Delete unused constants
victorshevtsov a686ab8
Update doc/stored-requests.md
victorshevtsov a72deca
Shorten the test using the testify package
victorshevtsov 9b22905
Add check for a nil pointer
victorshevtsov 2f63fd7
Add migration for ID_LIST parameter of SQL queries
victorshevtsov f0de6a6
Test conn strings for MySql and Postgres providers
victorshevtsov 8fa2287
Merge branch 'prebid:master' into master
victorshevtsov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I'm wondering if this function should instead only choose
.database
or.postgres
instead of mixing the contents of the two if both are present. I think the behavior will be less confusing if someone has both set. Maybe something like:@VeronikaSolovei9 thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! Yes, "new" config should be used if it's specified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.