Documentation
¶
Index ¶
- type Holding
- type Repository
- type SQLiteRepository
- func (r *SQLiteRepository) AllHoldings() ([]Holding, error)
- func (r *SQLiteRepository) DeleteHolding(id int64) error
- func (r *SQLiteRepository) GetHoldingByID(id int) (*Holding, error)
- func (r *SQLiteRepository) InsertHolding(h Holding) (*Holding, error)
- func (r *SQLiteRepository) Migrate() error
- func (r *SQLiteRepository) UpdateHolding(id int64, updated Holding) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type SQLiteRepository ¶
type SQLiteRepository struct {
Repository
Conn *sql.DB
}
func NewSQLiteRespository ¶
func NewSQLiteRespository(db *sql.DB) *SQLiteRepository
func (*SQLiteRepository) AllHoldings ¶
func (r *SQLiteRepository) AllHoldings() ([]Holding, error)
func (*SQLiteRepository) DeleteHolding ¶
func (r *SQLiteRepository) DeleteHolding(id int64) error
func (*SQLiteRepository) GetHoldingByID ¶
func (r *SQLiteRepository) GetHoldingByID(id int) (*Holding, error)
func (*SQLiteRepository) InsertHolding ¶
func (r *SQLiteRepository) InsertHolding(h Holding) (*Holding, error)
func (*SQLiteRepository) Migrate ¶
func (r *SQLiteRepository) Migrate() error
func (*SQLiteRepository) UpdateHolding ¶
func (r *SQLiteRepository) UpdateHolding(id int64, updated Holding) error
Click to show internal directories.
Click to hide internal directories.