Repository navigation
Fix: Make SQL connection string parsing more sensible #22260
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
Merged
Merged
Changes from all commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
5a1f894
refactor: Fix Bun.SQL options parsing to separate adapter detection a…
666aea0
fix: Correct MYSQL_URL protocol detection in adapter inference
6f75091
test: Add comprehensive MySQL port defaulting tests
669e022
fix: Infer adapter from environment variable names when protocol is m…
7dba454
refactor: Simplify adapter inference to prioritize environment variab…
c19c865
[autofix.ci] apply automated fixes
autofix-ci[bot] 0906de4
feat: Add comprehensive MySQL environment variable support
bb89714
[autofix.ci] apply automated fixes
autofix-ci[bot] 952300f
test: Add SSL mode verification for TLS environment variable tests
5128275
feat: Add comprehensive adapter-protocol validation with conflict det…
cdeefff
Complete SQL options parsing refactor
0bc8e6b
Fix SQL options precedence: explicit options override URL parameters
251268f
[autofix.ci] apply automated fixes
autofix-ci[bot] 79996d1
fix linter
cirospaciari f0174a7
fix parseurlForAdapter
cirospaciari 0009922
fix coderabbit issues
cirospaciari d4a15c4
fix error
cirospaciari f456566
fix more
cirospaciari 98399e1
dont discard tls
cirospaciari a98c72e
revert shared for now
alii c99dfab
fix: redo connection parsing logic
alii 562732d
normalize url protocol for parsing
alii b6a923f
missing TLS_MYSQL_DATABASE_URL when no adapter is specified in options
alii 50b3b6e
enhance connection details parsing to include adapter detection and i…
alii ab3d771
refactor getConnectionDetailsFromEnvironment to streamline adapter de…
alii 747576d
fix tests
alii a02583c
get more tests to pass
alii 72fd476
cleanup
alii 40b41c2
enhance SQL connection handling by introducing OptionsWithDefinedAdap…
alii 1e7a3a7
fix: all tests passing
alii 9203d57
refactor parseConnectionDetailsFromOptionsOrEnvironment to improve SQ…
alii 75f139e
expect :memory: for blank path
alii a4a58ed
significant cleanup work
alii 5d90887
satisfy typescript
alii 5cb76d4
tidier
alii cf3f0c7
mariadb should have its own case
alii 32943dd
default to sslMode.disable
alii 9c5bd46
undo meaningless changes
alii ed8ce4f
test should have a timeout
alii 8289b1b
this should not have been reverted
alii b8ec02e
tests are passing but could do with a cleanup
alii 36fc3dc
[autofix.ci] apply automated fixes
autofix-ci[bot] d9522d2
refactor SQLite URL handling and connection options parsing for clari…
alii a2fc0d5
Merge branch 'ali/fix-sql-connection-string-parsing' of github.com:ov…
alii 6fae93d
change
alii ba96b16
smaller
alii 3052718
tidier
alii 421a6b8
make sqlite special case easier to understand
alii f756a3e
fix connection string parsing url when adapter is not sqlite, but a n…
alii 5d66a20
skip unix socket tests on windows
alii c2180b7
Empty filename should default to :memory:
alii 3d9de4d
mariadb case
alii bfe6166
[autofix.ci] apply automated fixes
autofix-ci[bot] 0588916
Revert launch.json
alii 5d92536
fix: Make passing tests actually pass with better env resetting
alii 6ac21ca
make sql errors much less noisy (omit undefined properties by default)
alii c6e735c
fix: Satisfy oxlint declaration merging
alii 36fa997
Merge branch 'main' into ali/fix-sql-connection-string-parsing
alii 6b149c4
fallback tls value
alii 520a9b5
use `await using` in a test
alii 2d1817d
try ci
alii 677eefe
revert tls changes and try ci
alii 6cd8d93
see if changes are related
alii e382508
debug
alii b04a3f9
dont listen on mysql.sock in precedence test
alii e0714d9
Fix Unix domain socket cleanup on listener.stop()
382f687
fix: should work with unix requires the path to exist
alii 884f2f3
Merge branch 'main' into ali/fix-sql-connection-string-parsing
alii 4a52927
[autofix.ci] apply automated fixes
autofix-ci[bot] e292748
fix: deprecate .ssl in the options since it's an alias of tls
alii d03b861
update docs & dont use regex for checking protocol
alii ba1e261
Merge branch 'main' into ali/fix-sql-connection-string-parsing
alii 4ca6dcc
Merge branch 'main' into ali/fix-sql-connection-string-parsing
alii 6ed13e9
ci: try run this on windows
alii 4372d30
cleanup test
alii cefe202
remove Bun.listen changes for now
alii c3129d3
Merge branch 'main' into ali/fix-sql-connection-string-parsing
alii 32a6a90
changes + unlink
alii 34648f2
small cleaning in harness
alii ff91fc1
Merge branch 'main' into ali/fix-sql-connection-string-parsing
alii db15759
changes to types
alii c691df7
skip tls-sql.test.ts when no connection string secrets locally
alii 2c85900
Merge branch 'main' into ali/fix-sql-connection-string-parsing
alii 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.