mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
18 lines
207 B
Go
18 lines
207 B
Go
package storage
|
|
|
|
import (
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type Storage struct {
|
|
db *bun.DB
|
|
}
|
|
|
|
func NewStorage(db *bun.DB) *Storage {
|
|
return &Storage{db: db}
|
|
}
|
|
|
|
func (s *Storage) DB() *bun.DB {
|
|
return s.db
|
|
}
|