Documentation ¶
Index ¶
- Variables
- func DeleteEntityById(entityType string, id int64) error
- func InsertEntity(entity commEntity.IEntity) error
- func Instance(entityTypes []string)
- func Query(entityType string, sql string) ([]commEntity.IEntity, error)
- func QueryEntityById(entityType string, id int64) (commEntity.IEntity, error)
- func QueryEntityList(entityType string) ([]commEntity.IEntity, error)
- func UpdateEntityById(entity commEntity.IEntity) error
- type MySQLOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SQL *entitySQL Option *MySQLOption Client *mysqlClient )
Functions ¶
func DeleteEntityById ¶
func InsertEntity ¶
func InsertEntity(entity commEntity.IEntity) error
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 ¶
Click to show internal directories.
Click to hide internal directories.