Documentation
¶
Index ¶
- func SQLColumns(storable Storable) []string
- type PqErr
- func DeleteFromDB(ctx context.Context, db *sqlx.DB, storable Storable) *PqErr
- func InsertIntoDB(ctx context.Context, db *sqlx.DB, storables ...Storable) *PqErr
- func UpdateIntoDB(ctx context.Context, db *sqlx.DB, storables ...Storable) *PqErr
- func UpsertIntoDB(ctx context.Context, db *sqlx.DB, storables ...Storable) *PqErr
- type Storable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SQLColumns ¶
Types ¶
type PqErr ¶ added in v1.1.0
type PqErr struct {
// contains filtered or unexported fields
}
func InsertIntoDB ¶
InsertIntoDB inserts the storable entity to the DB Finally, it assigns the inserted Id to the given entities
func UpdateIntoDB ¶
func UpsertIntoDB ¶
Click to show internal directories.
Click to hide internal directories.