add Store Close method (#1500)
* add Store Close method * Update sync store build failure
This commit is contained in:
@@ -36,6 +36,13 @@ type sqlStore struct {
|
||||
options store.Options
|
||||
}
|
||||
|
||||
func (s *sqlStore) Close() error {
|
||||
if s.db != nil {
|
||||
return s.db.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *sqlStore) Init(opts ...store.Option) error {
|
||||
for _, o := range opts {
|
||||
o(&s.options)
|
||||
|
Reference in New Issue
Block a user