Skip to content

Commit

Permalink
#131 Add query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Nov 4, 2024
1 parent cf32cd9 commit e281a6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion makefiles/linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# Variables
# -----------------------------------------------------------------------------

SENZING_TOOLS_DATABASE_URL ?= sqlite3://na:na@nowhere/tmp/sqlite/G2C.db
# SENZING_TOOLS_DATABASE_URL ?= sqlite3://na:na@nowhere/tmp/sqlite/G2C.db
SENZING_TOOLS_DATABASE_URL ?= sqlite3://na:na@nowhere/tmp/sqlite/G2C.db?mode=memory&cache=shared

# -----------------------------------------------------------------------------
# OS specific targets
Expand Down
3 changes: 3 additions & 0 deletions settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ func buildSpecificDatabaseURL(databaseURL string) (string, error) {
parsedURL.Host,
string(parsedURL.Path[1:]),
)
if len(parsedURL.RawQuery) > 0 {
result = fmt.Sprintf("%s?%s", result, parsedURL.RawQuery)
}
default:
result = ""
err = fmt.Errorf("unknown database schema: %s in %s", parsedURL.Scheme, databaseURL)
Expand Down

0 comments on commit e281a6a

Please sign in to comment.