commSql

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: GPL-3.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SQL    *entitySQL
	Client *mysqlClient
	Fox    *foxSqlService
)

Functions

func DeleteEntityById

func DeleteEntityById(entityType string, id int64) error

func GetDBType added in v1.0.1

func GetDBType() string

func GetEntityType added in v1.0.1

func GetEntityType() []string

func HasSchema added in v1.0.1

func HasSchema(entityType string) bool

func InsertEntity

func InsertEntity(entity commEntity.IEntity) error

func Query

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

func QueryCount added in v1.0.1

func QueryCount(sql string) (int, error)

func QueryEntityById

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

func QueryEntityList

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

func Register added in v1.0.1

func Register(entityType string)

func UpdateEntityById

func UpdateEntityById(entity commEntity.IEntity) error

Types

type FieldValue added in v1.0.1

type FieldValue struct {
	Name  string
	Value string
}

type SQLOption added in v1.0.1

type SQLOption struct {
	DriverName string
	DataSource string
}

Jump to

Keyboard shortcuts

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