Documentation ¶
Index ¶
Constants ¶
View Source
const DB_HOST_KEY = "DB_HOST"
View Source
const DB_NAME_KEY = "DB_NAME"
View Source
const DB_PASSWORD_KEY = "DB_PASSWORD"
View Source
const DB_PORT_KEY = "DB_PORT"
View Source
const DB_USER_KEY = "DB_USER"
View Source
const GET_HOST_LOGIN_STATEMENT = "SELECT host_id, host_username, password, is_verified, created_at FROM Host WHERE host_username = ?"
View Source
const GET_LOGGED_HOST_STATEMENT = "SELECT host_id, host_username, is_verified, created_at, description FROM Host WHERE host_id = ?"
View Source
const GET_LOGGED_USER_STATEMENT = "SELECT user_id, email, created_at, user_handle FROM User WHERE user_id = ?"
View Source
const GET_ROOM_ID_STATEMENT = "SELECT room_id, user_owner, host_id, room_code, start_date, end_date FROM Room WHERE room_id = ?"
Room
View Source
const GET_ROOM_USER_DATE_STATEMENT = "SELECT room_id FROM Room WHERE user_owner = ? AND start_date = ?"
View Source
const GET_USER_LOGIN_STATEMENT = "SELECT user_id, email, password FROM User WHERE email = ?"
View Source
const INSERT_HOST_STATEMENT = "INSERT INTO Host (host_username, password) VALUES (?, ?)"
View Source
const INSERT_ROOM_STATEMENT = "INSERT INTO Room (user_owner, room_code, start_date, end_date) VALUES (?, ?, ?, ?)"
View Source
const INSERT_USER_STATEMENT = "INSERT INTO User (email, password, created_at) VALUES (?, ?, ?)"
User
Variables ¶
This section is empty.
Functions ¶
func HandleDBConnection ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.