package
0.0.0-20250208182142-21a560d6b638
Repository: https://github.com/digkill/telegram-chatgpt.git
Documentation: pkg.go.dev

# Functions

func (journal *Journal) UpdateUser(username string) (*JournalModel, error) { transaction, err := journal.GetSqlDb().Begin() if err != nil { return nil, err } _, err = transaction.Exec("UPDATE users_tg_gpt SET username = $1", username) if err != nil { transaction.Rollback() } err = transaction.Commit() if err != nil { return nil, err } return journal.FindJournalByUserId(username) } func (journal *Journal) DeleteUser(username string) error { transaction, err := journal.GetSqlDb().Begin() if err != nil { return err } _, err = transaction.Exec("DELETE FROM users_tg_gpt WHERE username = $1", username) if err != nil { transaction.Rollback() } err = transaction.Commit() if err != nil { return err } return nil } */.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author