diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-10 15:54:35 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-10 15:54:35 -0400 |
| commit | 57689dfd7dfe2e3c6efea53b67ad57820683b3b9 (patch) | |
| tree | 3e008fc4c0a0baa5d1c44ced357110be223de82a /internal/storage/adapter.go | |
| parent | Update readme (diff) | |
| download | cli-57689dfd7dfe2e3c6efea53b67ad57820683b3b9.zip | |
Add adapters and remove upperdb
Diffstat (limited to 'internal/storage/adapter.go')
| -rw-r--r-- | internal/storage/adapter.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/storage/adapter.go b/internal/storage/adapter.go new file mode 100644 index 0000000..ce01989 --- /dev/null +++ b/internal/storage/adapter.go @@ -0,0 +1,10 @@ +package storage + +import "github.com/eugenetriguba/bolt/internal/configloader" + +type DBAdapter interface { + ConvertGenericPlaceholders(query string, argsCount int) string + TableExists(executor sqlExecutor, tableName string) (bool, error) + DatabaseName(executor sqlExecutor) (string, error) + CreateDSN(cfg configloader.ConnectionConfig) string +} |