NewCovenantSQLStorage returns new covenantsql storage handler.
(mirrorServerAddr string)
| 29 | |
| 30 | // NewCovenantSQLStorage returns new covenantsql storage handler. |
| 31 | func NewCovenantSQLStorage(mirrorServerAddr string) (s *CovenantSQLStorage) { |
| 32 | s = &CovenantSQLStorage{mirrorServerAddr: mirrorServerAddr} |
| 33 | return |
| 34 | } |
| 35 | |
| 36 | // Create implements the Storage abstraction interface. |
| 37 | func (s *CovenantSQLStorage) Create(nodeCnt int) (dbID string, err error) { |