Documentation ¶
Index ¶
- Variables
- func Close(db *gorm.DB) error
- func Delete(info interface{}, columName string, columnValue string) (bool, error)
- func DeleteBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) (bool, error)
- func DeleteByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) (bool, error)
- func Get(info interface{}, columnName string, columnValue string) error
- func GetBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) error
- func GetByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) error
- func GetByConditionsAndContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) error
- func GetByContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) error
- func Has(info interface{}, columnName string, columnValue string) (bool, error)
- func HasBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) (bool, error)
- func HasByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) (bool, error)
- func Insert(info interface{}) error
- func List(infoList interface{}) error
- func ListByCondition(infoList interface{}, columnName string, columnValue string) error
- func ListByConditions(infoList interface{}, columnName1 string, columnValue1 string, ...) error
- func Open() (*gorm.DB, error)
- type KVList
Constants ¶
This section is empty.
Variables ¶
var DB_FILE_PATH string
Functions ¶
func DeleteBy3Conditions ¶
func DeleteBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string, columnName3 string, columnValue3 string) (bool, error)
Delete all Infos with three conditions ex) Conneciton Name, Resource Name, Owner VPC Name
func DeleteByConditions ¶
func DeleteByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string) (bool, error)
Delete all Infos with two conditions ex) Conneciton Name, Resource Name ex) Conneciton Name, Owner VPC Name
func GetBy3Conditions ¶
func GetBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string, columnName3 string, columnValue3 string) error
Get a Info with three conditions(Conneciton Name, Resource NameId, Owner VPC Name)
func GetByConditions ¶
func GetByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string) error
Get a Info with two conditions(Conneciton Name, Resource NameId)
func GetByConditionsAndContain ¶
func GetByConditionsAndContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string, columnName3 string, columnValue3 string) error
Get a Info with two conditions(Conneciton Name, Resource NameId) and contain(contained_text)
func GetByContain ¶
func GetByContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string) error
Get a Info with a condition(Conneciton Name) and contains(contained_text)
func HasBy3Conditions ¶
func HasBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string, columnName3 string, columnValue3 string) (bool, error)
Check if a Info exists with three conditions(Conneciton Name, Resource NameId, Owner vpc name)
func HasByConditions ¶
func HasByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string) (bool, error)
Check if a Info exists with two conditions(Conneciton Name, Resource NameId)
func ListByCondition ¶
List all Info with a condition(ex. Conneciton Name)