// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.27.0 package repository import ( "database/sql/driver" "fmt" "github.com/jackc/pgx/v5/pgtype" ) type Querytype string const ( QuerytypeContextFull Querytype = "context_full" QuerytypeJsonExtractor Querytype = "json_extractor" ) func (e *Querytype) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = Querytype(s) case string: *e = Querytype(s) default: return fmt.Errorf("unsupported scan type for Querytype: %T", src) } return nil } type NullQuerytype struct { Querytype Querytype Valid bool // Valid is true if Querytype is not NULL } // Scan implements the Scanner interface. func (ns *NullQuerytype) Scan(value interface{}) error { if value == nil { ns.Querytype, ns.Valid = "", false return nil } ns.Valid = true return ns.Querytype.Scan(value) } // Value implements the driver Valuer interface. func (ns NullQuerytype) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.Querytype), nil } type Activecollectorquery struct { Collectorid pgtype.UUID Activeversion int32 Queryid pgtype.UUID } type Activequeryrequirement struct { ID pgtype.UUID Type Querytype Activeversion int32 Requiredqueryid pgtype.UUID } type Collector struct { ID pgtype.UUID Jobid pgtype.UUID Mincleanversion int32 Mintextversion int32 Latestversion int32 Activeversion int32 } type Collectorquery struct { ID pgtype.UUID Collectorid pgtype.UUID Name string Queryid pgtype.UUID Addedversion int32 Removedversion pgtype.Int4 } type Collectorquerydependencytree struct { Collectorid pgtype.UUID ID pgtype.UUID Type Querytype Requiredqueryid pgtype.UUID Queryversion int32 } type Query struct { ID pgtype.UUID Latestversion int32 Activeversion int32 Type Querytype } type Queryconfig struct { ID pgtype.UUID Queryid pgtype.UUID Config []byte Addedversion int32 Removedversion pgtype.Int4 } type Querydeprecation struct { ID pgtype.UUID Queryid pgtype.UUID Time pgtype.Timestamp Removedat pgtype.Timestamp } type Requiredquery struct { ID pgtype.UUID Queryid pgtype.UUID Requiredqueryid pgtype.UUID Addedversion int32 Removedversion pgtype.Int4 } type Result struct { ID pgtype.UUID Queryid pgtype.UUID Documentid pgtype.UUID Value string Cleanversion int32 Textversion int32 Queryversion int32 }