mapper

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 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"`
	Tenant        string    `json:"tenant"`
	Project       string    `json:"project"`
	Stack         string    `json:"stack"`
	Cluster       string    `json:"cluster,omitempty"`
	Version       int       `json:"version"`
	KusionVersion string    `json:"kusion_version"`
	Serial        uint64    `json:"serial"`
	Operator      string    `json:"operator"`
	Resources     string    `json:"resources"`
	CreateTime    time.Time `json:"create_time"`
	ModifiedTime  time.Time `json:"modified_time"`
}

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