Documentation ¶
Index ¶
- func GetCADataSource(dbtype, datasource string, cacount int) string
- func MaskDBCred(str string) string
- func NewUserRegistryMySQL(datasource string, clientTLSConfig *tls.ClientTLSConfig, csp bccsp.BCCSP) (*sqlx.DB, error)
- func NewUserRegistryPostgres(datasource string, clientTLSConfig *tls.ClientTLSConfig) (*sqlx.DB, error)
- func NewUserRegistrySQLLite3(datasource string) (*sqlx.DB, error)
- func UpdateDBLevel(db *sqlx.DB, levels *Levels) error
- func UpdateSchema(db *sqlx.DB, levels *Levels) error
- type Levels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCADataSource ¶ added in v1.1.0
GetCADataSource returns a datasource with a unqiue database name
func MaskDBCred ¶ added in v1.0.5
MaskDBCred hides DB credentials in connection string
func NewUserRegistryMySQL ¶
func NewUserRegistryMySQL(datasource string, clientTLSConfig *tls.ClientTLSConfig, csp bccsp.BCCSP) (*sqlx.DB, error)
NewUserRegistryMySQL opens a connection to a postgres database
func NewUserRegistryPostgres ¶
func NewUserRegistryPostgres(datasource string, clientTLSConfig *tls.ClientTLSConfig) (*sqlx.DB, error)
NewUserRegistryPostgres opens a connection to a postgres database
func NewUserRegistrySQLLite3 ¶
NewUserRegistrySQLLite3 returns a pointer to a sqlite database
func UpdateDBLevel ¶ added in v1.1.0
UpdateDBLevel updates the levels for the tables in the database
Types ¶
Click to show internal directories.
Click to hide internal directories.