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

# Packages

No description provided by the author

# Functions

Admins returns a query which finds all admin users.
AllowedParams returns an array of allowed param keys for Update and Create.
Count returns a count of users.
Editors returns a query which finds all editor users.
Find fetches a single user record from the database by id.
FindAll fetches all user records matching this query from the database.
FindFirst fetches a single user record from the database using a where query with the format and args provided.
MockAdmin returns a mock user for testing with Role Admin.
MockAnon returns a mock user for testing with Role Anon.
New creates and initialises a new user instance.
NewWithColumns creates a new user instance and fills it with data from the database cols provided.
Published returns a query for all users with status >= published.
Query returns a new query for users with a default order.
Readers returns a query which finds all reader users.
Where returns a new query for users with the format and arguments supplied.

# Constants

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

# Structs

User handles saving and retreiving users from the database.