Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(opt *ConnectionOption, timezone *time.Location) repository.Repository
Types ¶
type ConnectionOption ¶
type ConnectionOption struct {
Path string
}
type RepositorySqlite ¶
type RepositorySqlite struct {
// contains filtered or unexported fields
}
func (*RepositorySqlite) Close ¶
func (sq *RepositorySqlite) Close() error
func (*RepositorySqlite) GetDB ¶
func (sq *RepositorySqlite) GetDB() *gorm.DB
func (*RepositorySqlite) Migrate ¶
func (sq *RepositorySqlite) Migrate() error
Click to show internal directories.
Click to hide internal directories.