// Code generated by BobGen psql v0.41.1. DO NOT EDIT. // This file is meant to be re-generated in place and/or deleted at any time. package enums import ( "database/sql/driver" "fmt" ) // Enum values for ArcgisLicenseType const ( ArcgisLicenseTypeAdvancedut ArcgisLicenseType = "advancedUT" ArcgisLicenseTypeBasicut ArcgisLicenseType = "basicUT" ArcgisLicenseTypeCreatorut ArcgisLicenseType = "creatorUT" ArcgisLicenseTypeEditorut ArcgisLicenseType = "editorUT" ArcgisLicenseTypeFieldworkerut ArcgisLicenseType = "fieldWorkerUT" ArcgisLicenseTypeGisprofessionaladvut ArcgisLicenseType = "GISProfessionalAdvUT" ArcgisLicenseTypeGisprofessionalbasicut ArcgisLicenseType = "GISProfessionalBasicUT" ArcgisLicenseTypeGisprofessionalstdut ArcgisLicenseType = "GISProfessionalStdUT" ArcgisLicenseTypeIndoorsuserut ArcgisLicenseType = "IndoorsUserUT" ArcgisLicenseTypeInsightsanalystut ArcgisLicenseType = "insightsAnalystUT" ArcgisLicenseTypeLiteut ArcgisLicenseType = "liteUT" ArcgisLicenseTypeStandardut ArcgisLicenseType = "standardUT" ArcgisLicenseTypeStorytellerut ArcgisLicenseType = "storytellerUT" ArcgisLicenseTypeViewerut ArcgisLicenseType = "viewerUT" ) func AllArcgisLicenseType() []ArcgisLicenseType { return []ArcgisLicenseType{ ArcgisLicenseTypeAdvancedut, ArcgisLicenseTypeBasicut, ArcgisLicenseTypeCreatorut, ArcgisLicenseTypeEditorut, ArcgisLicenseTypeFieldworkerut, ArcgisLicenseTypeGisprofessionaladvut, ArcgisLicenseTypeGisprofessionalbasicut, ArcgisLicenseTypeGisprofessionalstdut, ArcgisLicenseTypeIndoorsuserut, ArcgisLicenseTypeInsightsanalystut, ArcgisLicenseTypeLiteut, ArcgisLicenseTypeStandardut, ArcgisLicenseTypeStorytellerut, ArcgisLicenseTypeViewerut, } } type ArcgisLicenseType string func (e ArcgisLicenseType) String() string { return string(e) } func (e ArcgisLicenseType) Valid() bool { switch e { case ArcgisLicenseTypeAdvancedut, ArcgisLicenseTypeBasicut, ArcgisLicenseTypeCreatorut, ArcgisLicenseTypeEditorut, ArcgisLicenseTypeFieldworkerut, ArcgisLicenseTypeGisprofessionaladvut, ArcgisLicenseTypeGisprofessionalbasicut, ArcgisLicenseTypeGisprofessionalstdut, ArcgisLicenseTypeIndoorsuserut, ArcgisLicenseTypeInsightsanalystut, ArcgisLicenseTypeLiteut, ArcgisLicenseTypeStandardut, ArcgisLicenseTypeStorytellerut, ArcgisLicenseTypeViewerut: return true default: return false } } // useful when testing in other packages func (e ArcgisLicenseType) All() []ArcgisLicenseType { return AllArcgisLicenseType() } func (e ArcgisLicenseType) MarshalText() ([]byte, error) { return []byte(e), nil } func (e *ArcgisLicenseType) UnmarshalText(text []byte) error { return e.Scan(text) } func (e ArcgisLicenseType) MarshalBinary() ([]byte, error) { return []byte(e), nil } func (e *ArcgisLicenseType) UnmarshalBinary(data []byte) error { return e.Scan(data) } func (e ArcgisLicenseType) Value() (driver.Value, error) { return string(e), nil } func (e *ArcgisLicenseType) Scan(value any) error { switch x := value.(type) { case string: *e = ArcgisLicenseType(x) case []byte: *e = ArcgisLicenseType(x) case nil: return fmt.Errorf("cannot nil into ArcgisLicenseType") default: return fmt.Errorf("cannot scan type %T: %v", value, value) } if !e.Valid() { return fmt.Errorf("invalid ArcgisLicenseType value: %s", *e) } return nil } // Enum values for Hashtype const ( HashtypeBcrypt14 Hashtype = "bcrypt-14" ) func AllHashtype() []Hashtype { return []Hashtype{ HashtypeBcrypt14, } } type Hashtype string func (e Hashtype) String() string { return string(e) } func (e Hashtype) Valid() bool { switch e { case HashtypeBcrypt14: return true default: return false } } // useful when testing in other packages func (e Hashtype) All() []Hashtype { return AllHashtype() } func (e Hashtype) MarshalText() ([]byte, error) { return []byte(e), nil } func (e *Hashtype) UnmarshalText(text []byte) error { return e.Scan(text) } func (e Hashtype) MarshalBinary() ([]byte, error) { return []byte(e), nil } func (e *Hashtype) UnmarshalBinary(data []byte) error { return e.Scan(data) } func (e Hashtype) Value() (driver.Value, error) { return string(e), nil } func (e *Hashtype) Scan(value any) error { switch x := value.(type) { case string: *e = Hashtype(x) case []byte: *e = Hashtype(x) case nil: return fmt.Errorf("cannot nil into Hashtype") default: return fmt.Errorf("cannot scan type %T: %v", value, value) } if !e.Valid() { return fmt.Errorf("invalid Hashtype value: %s", *e) } return nil }