package
1.5.5
Repository: https://github.com/fragmenta/fragmenta-cms.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AllowedParams returns an array of allowed param keys for Update and Create.
Find fetches a single post record from the database by id.
FindAll fetches all post records matching this query from the database.
FindFirst fetches a single post record from the database using a where query with the format and args provided.
New creates and initialises a new post instance.
NewWithColumns creates a new post instance and fills it with data from the database cols provided.
Published returns a query for all posts with status >= published.
Query returns a new query for posts with a default order.
Where returns a new query for posts with the format and arguments supplied.

# Constants

KeyName is the primary key value for this resource.
Order defines the default sort order in sql for this resource.
TableName is the database table for this resource.

# Structs

Post
Post handles saving and retreiving posts from the database.