mysql

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DstFeedbackIssue

type DstFeedbackIssue struct {
	TgUserID    int64 `gorm:"column:tlgrm_userid"`
	RdmnIssueID int64 `gorm:"column:rdmn_issue_id"`
}

func (DstFeedbackIssue) TableName

func (DstFeedbackIssue) TableName() string

type DstFeedbackIssueInsertData

type DstFeedbackIssueInsertData struct {
	TgUserID    int64 `gorm:"column:tlgrm_userid"`
	RdmnIssueID int64 `gorm:"column:rdmn_issue_id"`
}

func (DstFeedbackIssueInsertData) TableName

func (DstFeedbackIssueInsertData) TableName() string

type DstIssueBanch

type DstIssueBanch struct {
	TgChatID    int64 `gorm:"column:tg_chat_id"`
	TgMessageID int64 `gorm:"column:tg_message_id"`
	RdmnIssueID int64 `gorm:"column:rdmn_issue_id"`
}

func (DstIssueBanch) TableName

func (DstIssueBanch) TableName() string

type DstIssueBanchInsertData

type DstIssueBanchInsertData struct {
	TgChatID    int64 `gorm:"column:tg_chat_id"`
	TgMessageID int64 `gorm:"column:tg_message_id"`
	RdmnIssueID int64 `gorm:"column:rdmn_issue_id"`
}

func (DstIssueBanchInsertData) TableName

func (DstIssueBanchInsertData) TableName() string

type DstUser

type DstUser struct {
	TgUserID   int64  `gorm:"column:tlgrm_userid"`
	RdmnUserID int64  `gorm:"column:rdmn_userid"`
	Lang       string `gorm:"column:lang"`
}

func (DstUser) TableName

func (DstUser) TableName() string

type DstUserInsertData

type DstUserInsertData struct {
	TgUserID   int64  `gorm:"column:tlgrm_userid"`
	RdmnUserID int64  `gorm:"column:rdmn_userid"`
	Lang       string `gorm:"column:lang"`
}

func (DstUserInsertData) TableName

func (DstUserInsertData) TableName() string

type MySQL

type MySQL struct {
	// contains filtered or unexported fields
}

MySQL it is a MySQL module context structure

func Connect

func Connect(s Settings) (MySQL, error)

Connect connects to MySQL

func (*MySQL) Close

func (m *MySQL) Close() error

Close closes MySQL connection

func (*MySQL) DstFeedbackIssuesDeleteAll

func (m *MySQL) DstFeedbackIssuesDeleteAll() error

func (*MySQL) DstFeedbackIssuesGet

func (m *MySQL) DstFeedbackIssuesGet() ([]DstFeedbackIssue, error)

func (*MySQL) DstFeedbackIssuesSave

func (m *MySQL) DstFeedbackIssuesSave(issues []DstFeedbackIssueInsertData) error

func (*MySQL) DstIssuesBanchDeleteAll

func (m *MySQL) DstIssuesBanchDeleteAll() error

func (*MySQL) DstIssuesBanchGet

func (m *MySQL) DstIssuesBanchGet() ([]DstIssueBanch, error)

func (*MySQL) DstIssuesBanchSave

func (m *MySQL) DstIssuesBanchSave(issues []DstIssueBanchInsertData) error

func (*MySQL) DstUsersDeleteAll

func (m *MySQL) DstUsersDeleteAll() error

func (*MySQL) DstUsersGet

func (m *MySQL) DstUsersGet() ([]DstUser, error)

func (*MySQL) DstUsersSave

func (m *MySQL) DstUsersSave(users []DstUserInsertData) error

func (*MySQL) SrcIDsGet

func (m *MySQL) SrcIDsGet() ([]SrcID, error)

func (*MySQL) SrcIssuesGet

func (m *MySQL) SrcIssuesGet() ([]SrcIssue, error)

type Settings

type Settings struct {
	Host     string
	Port     int
	User     string
	Password string
	Database string
}

Settings contains settings for MySQL

type SrcID

type SrcID struct {
	TgUserID   int64  `gorm:"column:tlgrm_userid"`
	TgUserName string `gorm:"column:tlgrm_username"`
	RdmnUserID int64  `gorm:"column:rdmn_userid"`
}

func (SrcID) TableName

func (SrcID) TableName() string

type SrcIssue

type SrcIssue struct {
	TgChatID    int64 `gorm:"column:tlgrm_chat_id"`
	TgMessageID int64 `gorm:"column:tlgrm_message_id"`
	RdmnIssueID int64 `gorm:"column:rdmn_issue_id"`
}

func (SrcIssue) TableName

func (SrcIssue) TableName() string

Jump to

Keyboard shortcuts

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