aboutsummaryrefslogtreecommitdiffstats
path: root/internal/storage/adapter.go
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-07-23 21:39:11 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-07-23 21:39:11 -0400
commit5264264333f211c9d40108955e167d28fa73f77d (patch)
tree6801a3d0460360bff5bc0b76ac482fa774e97043 /internal/storage/adapter.go
parentFix contributing link (diff)
downloadcli-5264264333f211c9d40108955e167d28fa73f77d.zip
Use DSN for handling connection parameters
Diffstat (limited to 'internal/storage/adapter.go')
-rw-r--r--internal/storage/adapter.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/storage/adapter.go b/internal/storage/adapter.go
index d4573f0..18fd45f 100644
--- a/internal/storage/adapter.go
+++ b/internal/storage/adapter.go
@@ -1,7 +1,5 @@
package storage
-import "github.com/eugenetriguba/bolt/internal/configloader"
-
type DBAdapter interface {
// ConvertGenericPlaceholders replaces any generic `?` placeholders
// in `query` for the database driver specific placeholders and returns
@@ -12,7 +10,4 @@ type DBAdapter interface {
TableExists(executor sqlExecutor, tableName string) (bool, error)
// DatabaseName retrieves the currently selected database name.
DatabaseName(executor sqlExecutor) (string, error)
- // CreateDSN creates a DSN to be used with sql.Open in the database
- // driver specific format.
- CreateDSN(cfg configloader.ConnectionConfig) string
}