package
0.0.0-20240613211038-2cd36e7b953d
Repository: https://github.com/rjnemo/go-wiki.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
NewContext returns a context instance.
NewDB read the connection parameters to establish a connection to the database.
NewPageStore constructs a PageStore connected to the database.
NewUserStore constructs a UserStore connected to the database.
# Constants
CreateTablePages is the SQL command used to create the pages table if it not exists.
DeletePage is the SQL command used to delete a user from the database.
ExistsPage is the SQL command used to check whether a page from the database.
FindPages is the SQL command used to retrieve all pages from the table which satisfy the specified condition.
GetAllPages is the SQL command used to retrieve all pages from the database.
GetPage is the SQL command used to retrieve a user from the table.
InsertPage is the SQL command used to insert a user in the table.
QueryCreateTable is the SQL command used to create the users table if it not exists.
QueryDelete is the SQL command used to delete a user from the database.
QueryFind is the SQL command used to retrieve all users from the table which satisfy the specified condition.
QueryGet is the SQL command used to retrieve a user from the table.
QueryGetAll is the SQL command used to retrieve all users from the database.
QueryInsert is the SQL command used to insert a user in the table.
QueryUpdate is the SQL command used to update a user in the database.
UpdatePage is the SQL command used to update a user in the database.
# Interfaces
Store interface defines the methods any store must satisfy.