commSql

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SQL    *entitySQL
	Option *MySQLOption
	Client *mysqlClient
)

Functions

func DeleteEntityById

func DeleteEntityById(entityType string, id int64) error

func InsertEntity

func InsertEntity(entity commEntity.IEntity) error

func Instance

func Instance(entityTypes []string)

func Query added in v1.0.4

func Query(entityType string, sql string) ([]commEntity.IEntity, error)

func QueryEntityById

func QueryEntityById(entityType string, id int64) (commEntity.IEntity, error)

func QueryEntityList

func QueryEntityList(entityType string) ([]commEntity.IEntity, error)

func UpdateEntityById

func UpdateEntityById(entity commEntity.IEntity) error

Types

type MySQLOption added in v1.0.4

type MySQLOption struct {
	Host     string
	Port     string
	DBName   string
	UserName string
	PassWord string
}

Jump to

Keyboard shortcuts

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