mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-06-14 13:58:37 -04:00
Don't leak non-interface type from database module
This removes the last place I used *db.DbStore instead of store.Store outside the 'db' package.
This commit is contained in:
@ -84,7 +84,7 @@ func (db *DbStore) Close() error {
|
||||
return err
|
||||
}
|
||||
|
||||
func GetStore(dbtype config.DbType, dsn string) (store *DbStore, err error) {
|
||||
func GetStore(dbtype config.DbType, dsn string) (store store.Store, err error) {
|
||||
dsn = getDSN(dbtype, dsn)
|
||||
database, err := sql.Open(dbtype.String(), dsn)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user