Documentation ¶
Index ¶
- func CreateAccessLogs(db *sql.DB) error
- func CreateBlogPosts(db *sql.DB) error
- func CreateCourseCategories(db *sql.DB) error
- func CreateCourseRelatedTables(db *sql.DB) error
- func CreateCourses(db *sql.DB) error
- func CreateDatabase(db *sql.DB, databaseName string) error
- func CreateEmailVerification(db *sql.DB) error
- func CreateEssentials(db *sql.DB) error
- func CreateFooter(db *sql.DB) error
- func CreateFooterCategories(db *sql.DB) error
- func CreateForumPosts(db *sql.DB) error
- func CreateForumTopics(db *sql.DB) error
- func CreateGroupMembers(db *sql.DB) error
- func CreateGroupPermissions(db *sql.DB) error
- func CreateModule(db *sql.DB) error
- func CreatePages(db *sql.DB) error
- func CreatePermissions(db *sql.DB) error
- func CreatePodcastPost(db *sql.DB) error
- func CreateSession(db *sql.DB) error
- func CreateSessionText(db *sql.DB) error
- func CreateSessionYoutube(db *sql.DB) error
- func CreateSettings(db *sql.DB) error
- func CreateTables(db *sql.DB) error
- func CreateTicketResponses(db *sql.DB) error
- func CreateTickets(db *sql.DB) error
- func CreateToolbar(db *sql.DB) error
- func CreateUserGroups(db *sql.DB) error
- func CreateUserPermissions(db *sql.DB) error
- func CreateUserRelatedTables(db *sql.DB) error
- func CreateUsers(db *sql.DB) error
- func DeleteSettingsFile() (helpers.Configuration, error)
- func FinishTests(db *sql.DB) error
- func GetSettingsName() (string, error)
- func Tests() (*sql.DB, error)
- func UpdateDatabaseName(input string) error
- func UpdateSettingToTestDB() (string, error)
- func WriteSettingsFile(config helpers.Configuration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccessLogs ¶
CreateAccessLogs creates access_logs table
func CreateBlogPosts ¶
CreateBlogPosts creates blog_posts table
func CreateCourseCategories ¶
CreateCourseCategories creates course_categories table
func CreateCourseRelatedTables ¶
CreateCourseRelatedTables creates course related tables
func CreateDatabase ¶
CreateDatabase creates a database with the name sent in
func CreateEmailVerification ¶
CreateEmailVerification creates email_verification table
func CreateEssentials ¶
CreateEssentials creates essential tables for running the application
func CreateFooterCategories ¶
CreateFooterCategories creates footer_categories table
func CreateForumPosts ¶
CreateForumPosts creates forum_posts table
func CreateForumTopics ¶
CreateForumTopics creates forum_topics table
func CreateGroupMembers ¶
CreateGroupMembers creates group_members table
func CreateGroupPermissions ¶
CreateGroupPermissions creates group_permissions table
func CreatePermissions ¶
CreatePermissions creates permission table
func CreatePodcastPost ¶
CreatePodcastPost creates podcast_posts table
func CreateSessionText ¶
CreateSessionText creates session_text table
func CreateSessionYoutube ¶
CreateSessionYoutube creates session_youtube table
func CreateSettings ¶
CreateSettings creates settings table and inserts basic settings
func CreateTables ¶
CreateTables creates all tables needed to run the application.
func CreateTicketResponses ¶
CreateTicketResponses creates ticket_responses table
func CreateUserGroups ¶
CreateUserGroups creates user_groups table
func CreateUserPermissions ¶
CreateUserPermissions creates user_permissions table
func CreateUserRelatedTables ¶
CreateUserRelatedTables creates user related tables
func DeleteSettingsFile ¶
func DeleteSettingsFile() (helpers.Configuration, error)
DeleteSettingsFile Deletes the JSON Settings file and returns it. This function is mainly for testing purposes.
func FinishTests ¶
FinishTests should be used for testing functions that need a database. It drops the database used in 'Tests' function.
func Tests ¶
Tests should be used for testing functions that need a database. It creates a database and adds tables.
func UpdateDatabaseName ¶
UpdateDatabaseName updates the name of the database in the settings json file.
func UpdateSettingToTestDB ¶
UpdateSettingToTestDB Updates the JSON Settings to the testDB.
func WriteSettingsFile ¶
func WriteSettingsFile(config helpers.Configuration) error
WriteSettingsFile writes the JSON Settings file.
Types ¶
This section is empty.