cyberark/secretless-broker

View on GitHub
bin/juxtaposer/tester/api/db_tester.go

Summary

Maintainability
A
0 mins
Test Coverage
package api

type DbTesterOptions struct {
    ConnectionType string
    DatabaseName   string
    Debug          bool
    Host           string
    Password       string
    Port           string
    SslMode        string
    Socket         string
    Username       string
}

type DbTester interface {
    Connect(DbTesterOptions) error
    GetQueryMarkers(length int) string
    Query(string, ...interface{}) error
    QueryRows(string, string, ...interface{}) ([]string, error)
    Shutdown() error
}