Documentation ¶
Index ¶
- type Migrator
- func (m *Migrator) Commit() error
- func (m *Migrator) MigrateAffiliationsTable() error
- func (m *Migrator) MigrateCertificatesTable() error
- func (m *Migrator) MigrateCredentialsTable() error
- func (m *Migrator) MigrateNoncesTable() error
- func (m *Migrator) MigrateRAInfoTable() error
- func (m *Migrator) MigrateUsersTable() error
- func (m *Migrator) Rollback() error
- type Mysql
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
Migrator defines migrator
func NewMigrator ¶
func NewMigrator(tx db.FabricCATx, curLevels, srvLevels *util.Levels) *Migrator
NewMigrator returns a migrator instance
func (*Migrator) MigrateAffiliationsTable ¶
MigrateAffiliationsTable is responsible for migrating affiliations table
func (*Migrator) MigrateCertificatesTable ¶
MigrateCertificatesTable is responsible for migrating certificates table
func (*Migrator) MigrateCredentialsTable ¶
MigrateCredentialsTable is responsible for migrating credentials table
func (*Migrator) MigrateNoncesTable ¶
MigrateNoncesTable is responsible for migrating nonces table
func (*Migrator) MigrateRAInfoTable ¶
MigrateRAInfoTable is responsible for migrating rainfo table
func (*Migrator) MigrateUsersTable ¶
MigrateUsersTable is responsible for migrating users table
type Mysql ¶
type Mysql struct { SqlxDB db.FabricCADB TLS *tls.ClientTLSConfig CSP bccsp.BCCSP CAName string MetricsProvider metrics.Provider // contains filtered or unexported fields }
Mysql defines MySQL database
func NewDB ¶
func NewDB(datasource, caName string, clientTLSConfig *tls.ClientTLSConfig, csp bccsp.BCCSP, metricsProvider metrics.Provider) *Mysql
NewDB create a MySQL database
func (*Mysql) CreateDatabase ¶
CreateDatabase creates database
Click to show internal directories.
Click to hide internal directories.