db

package
v0.0.0-...-8e87c78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 6 Imported by: 0

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

func HandleDBConnection() (*sql.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL