mapper

package
v0.4.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Insert

func Insert(db *sql.DB, data []map[string]interface{}) (int64, error)

Insert inserts an array of data into table StateDO

Types

type StateDO

type StateDO struct {
	ID            int64     `json:"id"`
	GlobalTenant  string    `json:"global_tenant"`
	Env           string    `json:"env"`
	Project       string    `json:"project"`
	Version       int       `json:"version"`
	KusionVersion string    `json:"kusion_version"`
	Serial        uint64    `json:"serial"`
	Operator      string    `json:"operator"`
	Resources     string    `json:"resources"`
	GmtCreate     time.Time `json:"gmt_create"`
	GmtModified   time.Time `json:"gmt_modified"`
}

func GetOne

func GetOne(db *sql.DB, where map[string]interface{}) (*StateDO, error)

GetOne gets one record from table build_task by condition "where"

Jump to

Keyboard shortcuts

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