Documentation
¶
Index ¶
Constants ¶
View Source
const ( TIME_FORMAT string = "02-01-2006 15:04:05" CONNECTION_STRING_FORMAT string = "%v:%v@tcp(%v:%d)/%v" FAILED_TO_LOAD_CONFIG_ERROR string = "Failed to load configuration." FAILED_TO_CONNECT_TO_DB_ERROR_FORMAT string = "Failed to connect to database with error: %v" INSERT_BLOG_POST_QUERY string = "call InsertNewBlogPost(?, ?, ?, ?)" SELECT_BLOG_POST_QUERY string = "SELECT * FROM BlogPosts WHERE Id = ?" UPDATE_BLOG_POST_QUERY string = "call UpdateBlogPost(?, ?, ?, ?)" DELETE_BLOG_POST_QUERY string = "DELETE FROM BlogPosts WHERE Id = ?" )
Variables ¶
This section is empty.
Functions ¶
func CreateNewBlogPost ¶
func DeleteBlogPostById ¶
func UpdateBlogPost ¶
func UpdateBlogPost(post BlogPost) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.