sqlcrepo

package
v0.0.0-...-d40f389 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDynamicTableParams

type CreateDynamicTableParams struct {
	ID         string
	TableName  string
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
}

type CreateDynamicTableVariableParams

type CreateDynamicTableVariableParams struct {
	ID             string
	Name           string
	VariableType   string
	DynamicTableID string
	CreatedAt      pgtype.Timestamp
	CreatedBy      string
	ModifiedAt     pgtype.Timestamp
	ModifiedBy     string
}

type CreateTokenParams

type CreateTokenParams struct {
	ID         string
	UserID     string
	Active     int32
	Value      string
	Expires    pgtype.Timestamp
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DeleteWorkflowParams

type DeleteWorkflowParams struct {
	DeletedAt pgtype.Timestamp
	ID        string
}

type DynamicTable

type DynamicTable struct {
	ID         string
	TableName  string
	CreatedAt  pgtype.Timestamp
	ModifiedAt pgtype.Timestamp
	CreatedBy  string
	ModifiedBy string
}

type DynamicTableVariable

type DynamicTableVariable struct {
	ID             string
	Name           string
	VariableType   string
	DynamicTableID string
	CreatedAt      pgtype.Timestamp
	ModifiedAt     pgtype.Timestamp
	CreatedBy      string
	ModifiedBy     string
}

type FetchDynamicTableVariablesByDynamicTableRow

type FetchDynamicTableVariablesByDynamicTableRow struct {
	ID               string
	Name             string
	VariableType     string
	DynamicTableID   string
	CreatedAt        pgtype.Timestamp
	ModifiedAt       pgtype.Timestamp
	CreatedBy        string
	ModifiedBy       string
	DynamicTableName string
}

type FetchDynamicTableVariablesRow

type FetchDynamicTableVariablesRow struct {
	ID               string
	Name             string
	VariableType     string
	DynamicTableID   string
	CreatedAt        pgtype.Timestamp
	ModifiedAt       pgtype.Timestamp
	CreatedBy        string
	ModifiedBy       string
	DynamicTableName string
}

type FetchRunByRequestIDRow

type FetchRunByRequestIDRow struct {
	ID           string
	RequestID    pgtype.Text
	WorkflowID   string
	UserID       string
	Error        pgtype.Text
	StartTime    pgtype.Timestamp
	FinishTime   pgtype.Timestamp
	CreatedAt    pgtype.Timestamp
	ModifiedAt   pgtype.Timestamp
	CreatedBy    string
	ModifiedBy   string
	WorkflowName string
	UserName     string
}

type FetchRunByWorkflowRow

type FetchRunByWorkflowRow struct {
	ID           string
	RequestID    pgtype.Text
	WorkflowID   string
	UserID       string
	Error        pgtype.Text
	StartTime    pgtype.Timestamp
	FinishTime   pgtype.Timestamp
	CreatedAt    pgtype.Timestamp
	ModifiedAt   pgtype.Timestamp
	CreatedBy    string
	ModifiedBy   string
	WorkflowName string
	UserName     string
}

type FetchRunsRow

type FetchRunsRow struct {
	ID           string
	RequestID    pgtype.Text
	WorkflowID   string
	UserID       string
	Error        pgtype.Text
	StartTime    pgtype.Timestamp
	FinishTime   pgtype.Timestamp
	CreatedAt    pgtype.Timestamp
	ModifiedAt   pgtype.Timestamp
	CreatedBy    string
	ModifiedBy   string
	WorkflowName string
	UserName     string
}

type GetTokenByValueRow

type GetTokenByValueRow struct {
	ID         string
	Value      string
	Active     int32
	Expires    pgtype.Timestamp
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
	UserID     string
	Username   string
}

type GetTokenRow

type GetTokenRow struct {
	ID         string
	Value      string
	Active     int32
	Expires    pgtype.Timestamp
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
	UserID     string
	Username   string
}

type ListTokensRow

type ListTokensRow struct {
	ID         string
	Value      string
	Active     int32
	Expires    pgtype.Timestamp
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
	UserID     string
	Username   string
}

type ListUserTokensByNameRow

type ListUserTokensByNameRow struct {
	ID         string
	Value      string
	Active     int32
	Expires    pgtype.Timestamp
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
	UserID     string
	Username   string
}

type ListUserTokensRow

type ListUserTokensRow struct {
	ID         string
	Value      string
	Active     int32
	Expires    pgtype.Timestamp
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
	UserID     string
	Username   string
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) CreateDynamicTable

func (q *Queries) CreateDynamicTable(ctx context.Context, arg CreateDynamicTableParams) (string, error)

func (*Queries) CreateDynamicTableVariable

func (q *Queries) CreateDynamicTableVariable(ctx context.Context, arg CreateDynamicTableVariableParams) (string, error)

func (*Queries) CreateToken

func (q *Queries) CreateToken(ctx context.Context, arg CreateTokenParams) (string, error)

func (*Queries) DeleteDynamicTable

func (q *Queries) DeleteDynamicTable(ctx context.Context, dollar_1 []string) error

func (*Queries) DeleteDynamicTableVariables

func (q *Queries) DeleteDynamicTableVariables(ctx context.Context, dollar_1 []string) error

func (*Queries) DeleteTokenByValue

func (q *Queries) DeleteTokenByValue(ctx context.Context, value string) error

func (*Queries) DeleteUser

func (q *Queries) DeleteUser(ctx context.Context, id string) error

func (*Queries) DeleteWorkflow

func (q *Queries) DeleteWorkflow(ctx context.Context, arg DeleteWorkflowParams) error

func (*Queries) DeleteWorkflowChildren

func (q *Queries) DeleteWorkflowChildren(ctx context.Context, workflowID string) error

func (*Queries) FetchAllWorkflows

func (q *Queries) FetchAllWorkflows(ctx context.Context) ([]Workflow, error)

func (*Queries) FetchByIDs

func (q *Queries) FetchByIDs(ctx context.Context, dollar_1 []string) ([]User, error)

func (*Queries) FetchDynamicTableVariables

func (q *Queries) FetchDynamicTableVariables(ctx context.Context, dollar_1 []string) ([]FetchDynamicTableVariablesRow, error)

func (*Queries) FetchDynamicTableVariablesByDynamicTable

func (q *Queries) FetchDynamicTableVariablesByDynamicTable(ctx context.Context, id string) ([]FetchDynamicTableVariablesByDynamicTableRow, error)

func (*Queries) FetchDynamicTables

func (q *Queries) FetchDynamicTables(ctx context.Context, dollar_1 []string) ([]DynamicTable, error)

func (*Queries) FetchRunByRequestID

func (q *Queries) FetchRunByRequestID(ctx context.Context, requestID pgtype.Text) (FetchRunByRequestIDRow, error)

func (*Queries) FetchRunByWorkflow

func (q *Queries) FetchRunByWorkflow(ctx context.Context, workflowID string) ([]FetchRunByWorkflowRow, error)

func (*Queries) FetchRunLog

func (q *Queries) FetchRunLog(ctx context.Context, id string) (RunLog, error)

func (*Queries) FetchRunLogsByRun

func (q *Queries) FetchRunLogsByRun(ctx context.Context, runID string) ([]RunLog, error)

func (*Queries) FetchRuns

func (q *Queries) FetchRuns(ctx context.Context, dollar_1 []string) ([]FetchRunsRow, error)

func (*Queries) FetchUser

func (q *Queries) FetchUser(ctx context.Context, id string) (User, error)

func (*Queries) FetchUserByName

func (q *Queries) FetchUserByName(ctx context.Context, username string) (User, error)

func (*Queries) FetchWorkflow

func (q *Queries) FetchWorkflow(ctx context.Context, id string) (Workflow, error)

func (*Queries) GetToken

func (q *Queries) GetToken(ctx context.Context, id string) (GetTokenRow, error)

func (*Queries) GetTokenByValue

func (q *Queries) GetTokenByValue(ctx context.Context, value string) (GetTokenByValueRow, error)

func (*Queries) ListTokens

func (q *Queries) ListTokens(ctx context.Context) ([]ListTokensRow, error)

func (*Queries) ListUserTokens

func (q *Queries) ListUserTokens(ctx context.Context, userID string) ([]ListUserTokensRow, error)

func (*Queries) ListUserTokensByName

func (q *Queries) ListUserTokensByName(ctx context.Context, username string) ([]ListUserTokensByNameRow, error)

func (*Queries) SaveRun

func (q *Queries) SaveRun(ctx context.Context, arg SaveRunParams) (string, error)

func (*Queries) SaveRunLog

func (q *Queries) SaveRunLog(ctx context.Context, arg SaveRunLogParams) (string, error)

func (*Queries) SaveUser

func (q *Queries) SaveUser(ctx context.Context, arg SaveUserParams) (User, error)

func (*Queries) SaveWorkflow

func (q *Queries) SaveWorkflow(ctx context.Context, arg SaveWorkflowParams) (string, error)

func (*Queries) SaveWorkflowChildren

func (q *Queries) SaveWorkflowChildren(ctx context.Context, arg SaveWorkflowChildrenParams) error

func (*Queries) UpdatePassword

func (q *Queries) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) (User, error)

func (*Queries) UpdateTokenValidity

func (q *Queries) UpdateTokenValidity(ctx context.Context, arg UpdateTokenValidityParams) (Token, error)

func (*Queries) UpdateWorkflow

func (q *Queries) UpdateWorkflow(ctx context.Context, arg UpdateWorkflowParams) error

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type Run

type Run struct {
	ID         string
	RequestID  pgtype.Text
	WorkflowID string
	UserID     string
	Error      pgtype.Text
	StartTime  pgtype.Timestamp
	FinishTime pgtype.Timestamp
	CreatedAt  pgtype.Timestamp
	ModifiedAt pgtype.Timestamp
	CreatedBy  string
	ModifiedBy string
}

type RunLog

type RunLog struct {
	ID        string
	Message   string
	Timestamp pgtype.Timestamp
	RunID     string
}

type SaveRunLogParams

type SaveRunLogParams struct {
	ID        string
	Message   string
	Timestamp pgtype.Timestamp
	RunID     string
}

type SaveRunParams

type SaveRunParams struct {
	ID         string
	RequestID  pgtype.Text
	UserID     string
	WorkflowID string
	Error      pgtype.Text
	StartTime  pgtype.Timestamp
	FinishTime pgtype.Timestamp
	CreatedAt  pgtype.Timestamp
	ModifiedAt pgtype.Timestamp
	CreatedBy  string
	ModifiedBy string
}

type SaveUserParams

type SaveUserParams struct {
	ID         string
	Username   string
	Password   pgtype.Text
	Active     int32
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
}

type SaveWorkflowChildrenParams

type SaveWorkflowChildrenParams struct {
	WorkflowID string
	ChildrenID string
}

type SaveWorkflowParams

type SaveWorkflowParams struct {
	ID          string
	Name        string
	Code        pgtype.Text
	ObjectType  string
	FailOnError bool
	BuildIn     bool
	CreatedAt   pgtype.Timestamp
	ModifiedAt  pgtype.Timestamp
	CreatedBy   string
	ModifiedBy  string
	DeletedAt   pgtype.Timestamp
}

type Token

type Token struct {
	ID         string
	Value      string
	Active     int32
	Expires    pgtype.Timestamp
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
	UserID     string
}

type UpdatePasswordParams

type UpdatePasswordParams struct {
	ID         string
	Password   pgtype.Text
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
}

type UpdateTokenValidityParams

type UpdateTokenValidityParams struct {
	ID         string
	Active     int32
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
}

type UpdateWorkflowParams

type UpdateWorkflowParams struct {
	ID          string
	ModifiedAt  pgtype.Timestamp
	ModifiedBy  string
	Name        pgtype.Text
	Code        pgtype.Text
	ObjectType  pgtype.Text
	FailOnError pgtype.Bool
}

type User

type User struct {
	ID         string
	Username   string
	Password   pgtype.Text
	Active     int32
	CreatedAt  pgtype.Timestamp
	CreatedBy  string
	ModifiedAt pgtype.Timestamp
	ModifiedBy string
}

type Workflow

type Workflow struct {
	ID          string
	Name        string
	Code        pgtype.Text
	ObjectType  string
	FailOnError bool
	BuildIn     bool
	CreatedAt   pgtype.Timestamp
	ModifiedAt  pgtype.Timestamp
	CreatedBy   string
	ModifiedBy  string
	DeletedAt   pgtype.Timestamp
}

type WorkflowsChild

type WorkflowsChild struct {
	WorkflowID string
	ChildrenID string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL