Documentation
¶
Index ¶
Constants ¶
View Source
const DBFilename = "traderepublic.db"
Variables ¶
This section is empty.
Functions ¶
func NewSQLiteInMemory ¶
func NewSQLiteOnFS ¶
Types ¶
type Repository ¶
type Repository[M comparable] struct { // contains filtered or unexported fields }
func NewRepository ¶
func NewRepository[M comparable](database *gorm.DB, logger *log.Logger) (*Repository[M], error)
func (*Repository[M]) Create ¶
func (r *Repository[M]) Create(model M) error
type RepositoryInterface ¶
type RepositoryInterface[M comparable] interface { Create(model M) error }
Click to show internal directories.
Click to hide internal directories.