Documentation
¶
Index ¶
Constants ¶
View Source
const ( MIN = `(?m)min=(\d+)` MAX = `(?m)max=(\d+)` MINMAX = `(?m)(min|max)=(\d+)` )
Regex for validations
View Source
const ( FETCH_ALL_PRODUCTS = "" /* 159-byte string literal not displayed */ FETCH_PRODUCT_BY_ID = "" /* 173-byte string literal not displayed */ )
product handler queries
View Source
const ( CREATE_USER = "INSERT INTO users (id, first_name, last_name, email, password) values ($1, $2, $3, $4, $5)" FIND_USER_EMAIL = "SELECT id, password FROM users where email = $1" )
auth handler queries
View Source
const ( FETCH_CART = "" /* 139-byte string literal not displayed */ FIND_CART_ITEM = "SELECT quantity, total_price FROM cart_items where product_id = $1" ADD_TO_CART = "INSERT INTO cart_items (id, user_id, product_id, quantity, total_price) VALUES ($1, $2, $3, $4, $5)" UPDATE_CART = "UPDATE cart_items SET quantity = $1, total_price = $2 where product_id = $3 RETURNING id" DELETE_CART_ITEM = "DELETE FROM cart_items where id = $1" CLEAR_CART = "DELETE FROM cart_items where user_id = $1" )
cart handler queries
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.