2024-12-18 18:54:48 +00:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// sqlc v1.27.0
|
|
|
|
|
|
|
|
|
|
package repository
|
|
|
|
|
|
2024-12-19 18:49:22 +00:00
|
|
|
import (
|
|
|
|
|
"database/sql/driver"
|
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Querytype string
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
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 {
|
2024-12-19 19:49:40 +00:00
|
|
|
Collectorid pgtype.UUID
|
|
|
|
|
Activeversion int32
|
|
|
|
|
Queryid pgtype.UUID
|
2024-12-19 18:49:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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 {
|
2024-12-19 19:49:40 +00:00
|
|
|
Collectorid pgtype.UUID
|
2024-12-19 18:49:22 +00:00
|
|
|
ID pgtype.UUID
|
|
|
|
|
Type Querytype
|
|
|
|
|
Requiredqueryid pgtype.UUID
|
|
|
|
|
Queryversion int32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Query struct {
|
|
|
|
|
ID pgtype.UUID
|
|
|
|
|
Latestversion int32
|
|
|
|
|
Activeversion int32
|
|
|
|
|
Type Querytype
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-23 12:26:05 +00:00
|
|
|
type Queryconfig struct {
|
|
|
|
|
ID pgtype.UUID
|
|
|
|
|
Queryid pgtype.UUID
|
|
|
|
|
Config []byte
|
|
|
|
|
Addedversion int32
|
|
|
|
|
Removedversion pgtype.Int4
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-19 18:49:22 +00:00
|
|
|
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
|
2024-12-20 17:35:33 +00:00
|
|
|
Value string
|
2024-12-19 18:49:22 +00:00
|
|
|
Cleanversion int32
|
|
|
|
|
Textversion int32
|
|
|
|
|
Queryversion int32
|
2024-12-18 18:54:48 +00:00
|
|
|
}
|