object

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Overview

* @Descripttion: * @version: * @Author: lfzxs@qq.com * @Date: 2023-08-25 13:49:44 * @LastEditors: lfzxs@qq.com * @LastEditTime: 2023-09-19 11:33:25

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	File_code string
	File_hash string
	File_name string
	File_ext  string
	File_path string
	File_size int64
	File_link string
	Real_file string
}

type MySql_operator

type MySql_operator struct {
	Db *sql.DB
	//表名前缀
	Prefix string
	// contains filtered or unexported fields
}

func NewMySqlOperator

func NewMySqlOperator(user string, pwd string, ip string, port string, database string, logger logr.Logger) *MySql_operator

func (*MySql_operator) CreateTabels

func (obj *MySql_operator) CreateTabels()

func (*MySql_operator) GetFileKeyFormHash

func (obj *MySql_operator) GetFileKeyFormHash(hash string) (fileKey string, err error)

func (*MySql_operator) GetTabName

func (obj *MySql_operator) GetTabName() string

func (*MySql_operator) SaveFileInfo

func (obj *MySql_operator) SaveFileInfo(data *FileInfo) (fileKey string, err error)

Jump to

Keyboard shortcuts

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