Documentation
¶
Index ¶
- Variables
- func DeleteQuestion(db *sql.DB, no int64) error
- func GetQuestion(db *sql.DB, no int64) ([]models.Question, error)
- func GetQuestions(db *sql.DB) ([]models.Question, error)
- func InitTableQuestions() (*sql.DB, error)
- func IsQuestionNoExists(dbCon *sql.DB, no int64) bool
- func PutQuestion(db *sql.DB, p models.Question) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func DeleteQuestion ¶
DeleteQuestion deletes the question with the given no from the table questions
func GetQuestion ¶
GetQuestion returns the question with the given no from the table questions
func GetQuestions ¶
GetQuestions returns all questions from the table questions
func InitTableQuestions ¶
InitTableQuestions initializes the table questions
func IsQuestionNoExists ¶
IsQuestionNoExists returns true if the question with the given no exists in the table questions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.