Documentation ¶
Index ¶
- func CreateTable(db *sqlx.DB, create_sql string) error
- func DeleteUrl(db *sqlx.DB, url string, uid int) error
- func DeleteUrls(db *sqlx.DB, uid int) error
- func GetTelegramIdViaUid(db *sqlx.DB, uid int) (int, error)
- func GetUidViaTelegramId(db *sqlx.DB, telegram_id int) (int, error)
- func GetUrls(db *sqlx.DB) (*[]UrlVar, error)
- func GetUrlsViaUid(db *sqlx.DB, uid int) (*[]UrlVar, error)
- func OpenOrCreateDatabase(filepath string) (*sqlx.DB, error)
- func RemoveDatabase(filepath string)
- func UpdateLastStatus(db *sqlx.DB, last_status string, rid int) error
- func UpdateLastStatusCode(db *sqlx.DB, last_statuscode, rid int) error
- func UpdateLastTimestamp(db *sqlx.DB, rid int) error
- func UrlExists(db *sqlx.DB, url string, uid int) bool
- func UserExists(db *sqlx.DB, telegram_id int) bool
- type UrlVar
- type UserVar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveDatabase ¶
func RemoveDatabase(filepath string)
Types ¶
type UrlVar ¶
Click to show internal directories.
Click to hide internal directories.