Documentation
¶
Index ¶
- type CSVInteractor
- type HistoryInteractor
- type SQLite3Interactor
- func (si *SQLite3Interactor) CreateTable(ctx context.Context, t *model.Table) error
- func (si *SQLite3Interactor) Exec(ctx context.Context, query string) (*model.Table, error)
- func (si *SQLite3Interactor) Insert(ctx context.Context, t *model.Table) error
- func (si *SQLite3Interactor) TablesName(ctx context.Context) ([]*model.Table, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVInteractor ¶
type CSVInteractor struct {
Repository repository.CSVRepository
}
CSVInteractor implementation of use cases related to CSV handler.
func NewCSVInteractor ¶
func NewCSVInteractor(r repository.CSVRepository) *CSVInteractor
NewCSVInteractor return CSVInteractor
type HistoryInteractor ¶ added in v0.0.5
type HistoryInteractor struct {
Repository repository.HistoryRepository
}
HistoryInteractor implementation of use cases related to sqly history
func NewHistoryInteractor ¶ added in v0.0.5
func NewHistoryInteractor(r repository.HistoryRepository) *HistoryInteractor
NewHistoryInteractor return CSVInteractor
func (*HistoryInteractor) CreateTable ¶ added in v0.0.5
func (hi *HistoryInteractor) CreateTable(ctx context.Context) error
CreateTable create table for sqly history.
type SQLite3Interactor ¶
type SQLite3Interactor struct {
Repository repository.SQLite3Repository
}
SQLite3Interactor implementation of use cases related to SQLite3 handler.
func NewSQLite3Interactor ¶
func NewSQLite3Interactor(r repository.SQLite3Repository) *SQLite3Interactor
NewSQLite3Interactor return CSVInteractor
func (*SQLite3Interactor) CreateTable ¶
CreateTable create a DB table with columns given as model.Table
func (*SQLite3Interactor) TablesName ¶ added in v0.0.5
TablesName return all table name.
Click to show internal directories.
Click to hide internal directories.