mysql_dao

package
v0.96.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentsDAO

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

func NewDocumentsDAO

func NewDocumentsDAO(db *sqlx.DB) *DocumentsDAO

func (*DocumentsDAO) Insert

func (dao *DocumentsDAO) Insert(ctx context.Context, do *dataobject.DocumentsDO) (lastInsertId, rowsAffected int64, err error)

Insert insert into documents(document_id, access_hash, dc_id, file_path, file_size, uploaded_file_name, ext, mime_type, thumb_id, video_thumb_id, attributes, date2) values (:document_id, :access_hash, :dc_id, :file_path, :file_size, :uploaded_file_name, :ext, :mime_type, :thumb_id, :video_thumb_id, :attributes, :date2) TODO(@benqi): sqlmap

func (*DocumentsDAO) InsertTx

func (dao *DocumentsDAO) InsertTx(tx *sqlx.Tx, do *dataobject.DocumentsDO) (lastInsertId, rowsAffected int64, err error)

InsertTx insert into documents(document_id, access_hash, dc_id, file_path, file_size, uploaded_file_name, ext, mime_type, thumb_id, video_thumb_id, attributes, date2) values (:document_id, :access_hash, :dc_id, :file_path, :file_size, :uploaded_file_name, :ext, :mime_type, :thumb_id, :video_thumb_id, :attributes, :date2) TODO(@benqi): sqlmap

func (*DocumentsDAO) SelectByDocumentId added in v0.86.3

func (dao *DocumentsDAO) SelectByDocumentId(ctx context.Context, document_id int64) (rValue *dataobject.DocumentsDO, err error)

SelectByDocumentId select id, document_id, access_hash, dc_id, file_path, file_size, uploaded_file_name, ext, mime_type, thumb_id, video_thumb_id, attributes, version, date2 from documents where document_id = :document_id TODO(@benqi): sqlmap

func (*DocumentsDAO) SelectByDocumentIdList added in v0.86.3

func (dao *DocumentsDAO) SelectByDocumentIdList(ctx context.Context, idList []int64) (rList []dataobject.DocumentsDO, err error)

SelectByDocumentIdList select id, document_id, access_hash, dc_id, file_path, file_size, uploaded_file_name, ext, mime_type, thumb_id, video_thumb_id, attributes, version, date2 from documents where document_id in (:idList) TODO(@benqi): sqlmap

func (*DocumentsDAO) SelectByDocumentIdListWithCB added in v0.86.3

func (dao *DocumentsDAO) SelectByDocumentIdListWithCB(ctx context.Context, idList []int64, cb func(i int, v *dataobject.DocumentsDO)) (rList []dataobject.DocumentsDO, err error)

SelectByDocumentIdListWithCB select id, document_id, access_hash, dc_id, file_path, file_size, uploaded_file_name, ext, mime_type, thumb_id, video_thumb_id, attributes, version, date2 from documents where document_id in (:idList) TODO(@benqi): sqlmap

func (*DocumentsDAO) SelectByFileLocation

func (dao *DocumentsDAO) SelectByFileLocation(ctx context.Context, document_id int64, access_hash int64, version int32) (rValue *dataobject.DocumentsDO, err error)

SelectByFileLocation select id, document_id, access_hash, dc_id, file_path, file_size, uploaded_file_name, ext, mime_type, thumb_id, video_thumb_id, attributes, version, date2 from documents where dc_id = 2 and document_id = :document_id and access_hash = :access_hash and version = :version TODO(@benqi): sqlmap

func (*DocumentsDAO) SelectByIdList

func (dao *DocumentsDAO) SelectByIdList(ctx context.Context, idList []int64) (rList []dataobject.DocumentsDO, err error)

SelectByIdList select id, document_id, access_hash, dc_id, file_path, file_size, uploaded_file_name, ext, mime_type, thumb_id, video_thumb_id, attributes, version, date2 from documents where id in (:idList) TODO(@benqi): sqlmap

func (*DocumentsDAO) SelectByIdListWithCB

func (dao *DocumentsDAO) SelectByIdListWithCB(ctx context.Context, idList []int64, cb func(i int, v *dataobject.DocumentsDO)) (rList []dataobject.DocumentsDO, err error)

SelectByIdListWithCB select id, document_id, access_hash, dc_id, file_path, file_size, uploaded_file_name, ext, mime_type, thumb_id, video_thumb_id, attributes, version, date2 from documents where id in (:idList) TODO(@benqi): sqlmap

type PhotoSizesDAO

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

func NewPhotoSizesDAO

func NewPhotoSizesDAO(db *sqlx.DB) *PhotoSizesDAO

func (*PhotoSizesDAO) Insert

func (dao *PhotoSizesDAO) Insert(ctx context.Context, do *dataobject.PhotoSizesDO) (lastInsertId, rowsAffected int64, err error)

Insert insert into photo_sizes(photo_size_id, size_type, width, height, file_size, file_path, cached_type, cached_bytes) values (:photo_size_id, :size_type, :width, :height, :file_size, :file_path, :cached_type, :cached_bytes) TODO(@benqi): sqlmap

func (*PhotoSizesDAO) InsertTx

func (dao *PhotoSizesDAO) InsertTx(tx *sqlx.Tx, do *dataobject.PhotoSizesDO) (lastInsertId, rowsAffected int64, err error)

InsertTx insert into photo_sizes(photo_size_id, size_type, width, height, file_size, file_path, cached_type, cached_bytes) values (:photo_size_id, :size_type, :width, :height, :file_size, :file_path, :cached_type, :cached_bytes) TODO(@benqi): sqlmap

func (*PhotoSizesDAO) SelectListByPhotoSizeId

func (dao *PhotoSizesDAO) SelectListByPhotoSizeId(ctx context.Context, photo_size_id int64) (rList []dataobject.PhotoSizesDO, err error)

SelectListByPhotoSizeId select id, photo_size_id, size_type, width, height, file_size, file_path, cached_type, cached_bytes from photo_sizes where photo_size_id = :photo_size_id order by id asc TODO(@benqi): sqlmap

func (*PhotoSizesDAO) SelectListByPhotoSizeIdList

func (dao *PhotoSizesDAO) SelectListByPhotoSizeIdList(ctx context.Context, idList []int64) (rList []dataobject.PhotoSizesDO, err error)

SelectListByPhotoSizeIdList select id, photo_size_id, size_type, width, height, file_size, file_path, cached_type, cached_bytes from photo_sizes where photo_size_id in (:idList) order by id asc TODO(@benqi): sqlmap

func (*PhotoSizesDAO) SelectListByPhotoSizeIdListWithCB

func (dao *PhotoSizesDAO) SelectListByPhotoSizeIdListWithCB(ctx context.Context, idList []int64, cb func(i int, v *dataobject.PhotoSizesDO)) (rList []dataobject.PhotoSizesDO, err error)

SelectListByPhotoSizeIdListWithCB select id, photo_size_id, size_type, width, height, file_size, file_path, cached_type, cached_bytes from photo_sizes where photo_size_id in (:idList) order by id asc TODO(@benqi): sqlmap

func (*PhotoSizesDAO) SelectListByPhotoSizeIdWithCB

func (dao *PhotoSizesDAO) SelectListByPhotoSizeIdWithCB(ctx context.Context, photo_size_id int64, cb func(i int, v *dataobject.PhotoSizesDO)) (rList []dataobject.PhotoSizesDO, err error)

SelectListByPhotoSizeIdWithCB select id, photo_size_id, size_type, width, height, file_size, file_path, cached_type, cached_bytes from photo_sizes where photo_size_id = :photo_size_id order by id asc TODO(@benqi): sqlmap

type PhotosDAO

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

func NewPhotosDAO

func NewPhotosDAO(db *sqlx.DB) *PhotosDAO

func (*PhotosDAO) Insert

func (dao *PhotosDAO) Insert(ctx context.Context, do *dataobject.PhotosDO) (lastInsertId, rowsAffected int64, err error)

Insert insert into photos(photo_id, access_hash, has_stickers, dc_id, date2, has_video, input_file_name, ext) values (:photo_id, :access_hash, :has_stickers, :dc_id, :date2, :has_video, :input_file_name, :ext) TODO(@benqi): sqlmap

func (*PhotosDAO) InsertTx

func (dao *PhotosDAO) InsertTx(tx *sqlx.Tx, do *dataobject.PhotosDO) (lastInsertId, rowsAffected int64, err error)

InsertTx insert into photos(photo_id, access_hash, has_stickers, dc_id, date2, has_video, input_file_name, ext) values (:photo_id, :access_hash, :has_stickers, :dc_id, :date2, :has_video, :input_file_name, :ext) TODO(@benqi): sqlmap

func (*PhotosDAO) SelectByPhotoId

func (dao *PhotosDAO) SelectByPhotoId(ctx context.Context, photo_id int64) (rValue *dataobject.PhotosDO, err error)

SelectByPhotoId select id, photo_id, access_hash, has_stickers, dc_id, date2, has_video, input_file_name, ext from photos where photo_id = :photo_id limit 1 TODO(@benqi): sqlmap

type VideoSizesDAO

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

func NewVideoSizesDAO

func NewVideoSizesDAO(db *sqlx.DB) *VideoSizesDAO

func (*VideoSizesDAO) Insert

func (dao *VideoSizesDAO) Insert(ctx context.Context, do *dataobject.VideoSizesDO) (lastInsertId, rowsAffected int64, err error)

Insert insert into video_sizes(video_size_id, size_type, width, height, file_size, video_start_ts, file_path) values (:video_size_id, :size_type, :width, :height, :file_size, :video_start_ts, :file_path) TODO(@benqi): sqlmap

func (*VideoSizesDAO) InsertTx

func (dao *VideoSizesDAO) InsertTx(tx *sqlx.Tx, do *dataobject.VideoSizesDO) (lastInsertId, rowsAffected int64, err error)

InsertTx insert into video_sizes(video_size_id, size_type, width, height, file_size, video_start_ts, file_path) values (:video_size_id, :size_type, :width, :height, :file_size, :video_start_ts, :file_path) TODO(@benqi): sqlmap

func (*VideoSizesDAO) SelectListByVideoSizeId

func (dao *VideoSizesDAO) SelectListByVideoSizeId(ctx context.Context, video_size_id int64) (rList []dataobject.VideoSizesDO, err error)

SelectListByVideoSizeId select id, video_size_id, size_type, width, height, file_size, video_start_ts, file_path from video_sizes where video_size_id = :video_size_id order by id asc TODO(@benqi): sqlmap

func (*VideoSizesDAO) SelectListByVideoSizeIdList added in v0.86.3

func (dao *VideoSizesDAO) SelectListByVideoSizeIdList(ctx context.Context, idList []int64) (rList []dataobject.VideoSizesDO, err error)

SelectListByVideoSizeIdList select id, video_size_id, size_type, width, height, file_size, video_start_ts, file_path from video_sizes where video_size_id in (:idList) order by id asc TODO(@benqi): sqlmap

func (*VideoSizesDAO) SelectListByVideoSizeIdListWithCB added in v0.86.3

func (dao *VideoSizesDAO) SelectListByVideoSizeIdListWithCB(ctx context.Context, idList []int64, cb func(i int, v *dataobject.VideoSizesDO)) (rList []dataobject.VideoSizesDO, err error)

SelectListByVideoSizeIdListWithCB select id, video_size_id, size_type, width, height, file_size, video_start_ts, file_path from video_sizes where video_size_id in (:idList) order by id asc TODO(@benqi): sqlmap

func (*VideoSizesDAO) SelectListByVideoSizeIdWithCB

func (dao *VideoSizesDAO) SelectListByVideoSizeIdWithCB(ctx context.Context, video_size_id int64, cb func(i int, v *dataobject.VideoSizesDO)) (rList []dataobject.VideoSizesDO, err error)

SelectListByVideoSizeIdWithCB select id, video_size_id, size_type, width, height, file_size, video_start_ts, file_path from video_sizes where video_size_id = :video_size_id order by id asc TODO(@benqi): sqlmap

Jump to

Keyboard shortcuts

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