blob: 18fd45fee192d6b14201a95bf468e659d01132ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package storage
type DBAdapter interface {
// ConvertGenericPlaceholders replaces any generic `?` placeholders
// in `query` for the database driver specific placeholders and returns
// the updated query.
ConvertGenericPlaceholders(query string, argsCount int) string
// TableExists checks if the tableName exists within the
// database currently connected to.
TableExists(executor sqlExecutor, tableName string) (bool, error)
// DatabaseName retrieves the currently selected database name.
DatabaseName(executor sqlExecutor) (string, error)
}
|