Documentation ¶
Index ¶
Constants ¶
View Source
const (
// The database table name for post categories.
TableName = "post_categories"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Insert(postID int, catID *int) error Delete(postID int) error Exists(postID int) bool }
Repository defines methods for post categories to interact with the database.
type Store ¶
Store defines the data layer for post fields.
func (*Store) Delete ¶
Delete
Returns nil if the post category was successfully deleted. Returns errors.INTERNAL if the SQL query was invalid. Returns errors.NOTFOUND if the post meta was not found.
Click to show internal directories.
Click to hide internal directories.