From e281a6acf8430e731ae2fd4368d9f30a7e4c757c Mon Sep 17 00:00:00 2001 From: docktermj Date: Mon, 4 Nov 2024 13:56:13 -0500 Subject: [PATCH] #131 Add query parameters --- makefiles/linux.mk | 3 ++- settings/settings.go | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/makefiles/linux.mk b/makefiles/linux.mk index ec6e262..58b795b 100644 --- a/makefiles/linux.mk +++ b/makefiles/linux.mk @@ -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 diff --git a/settings/settings.go b/settings/settings.go index 3108384..1d67f02 100644 --- a/settings/settings.go +++ b/settings/settings.go @@ -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)