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 UpdateSchema(db *sqlx.DB) error
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 UpdateSchema ¶ added in v1.1.0
UpdateSchema updates the database tables to use the latest schema
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.