Documentation ¶
Overview ¶
Package store contains the abstractions and handlers to deal with the store (DB)
Index ¶
- func DeleteFromDB(ctx context.Context, db *sqlx.DB, storable Storable) error
- func InsertIntoDB(ctx context.Context, db *sqlx.DB, storables ...Storable) error
- func SQLColumns(storable Storable) []string
- func UpdateIntoDB(ctx context.Context, db *sqlx.DB, storables ...Storable) error
- func UpsertIntoDB(ctx context.Context, db *sqlx.DB, storables ...Storable) error
- type Storable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertIntoDB ¶
InsertIntoDB inserts the storable entity to the DB Finally, it assigns the inserted Id to the given entities
func SQLColumns ¶
func UpdateIntoDB ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.