postgresql

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntegrationActionType_ExecuteQuery domain.IntegrationActionType = "execute_query"
	IntegrationActionType_Delete       domain.IntegrationActionType = "delete"
	IntegrationActionType_Insert       domain.IntegrationActionType = "insert"
	IntegrationActionType_Select       domain.IntegrationActionType = "select"
	IntegrationActionType_Upsert       domain.IntegrationActionType = "upsert"
	IntegrationActionType_Update       domain.IntegrationActionType = "update"
)
View Source
const (
	PostgreSQLPeekable_Tables  domain.IntegrationPeekableType = "tables"
	PostgreSQLPeekable_Columns domain.IntegrationPeekableType = "columns"
	PostgreSQLPeekable_Schemas domain.IntegrationPeekableType = "schemas"
)

Variables

View Source
var (
	Schema = schema
)

Functions

func NewPostgreSQLIntegrationCreator

func NewPostgreSQLIntegrationCreator(deps domain.IntegrationDeps) domain.IntegrationCreator

Types

type PostgreSQLCredential

type PostgreSQLCredential struct {
	URI string `json:"uri"`
}

type PostgreSQLIntegration

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

func (*PostgreSQLIntegration) Execute

func (*PostgreSQLIntegration) ExecuteQuery

func (i *PostgreSQLIntegration) ExecuteQuery(ctx context.Context, params domain.IntegrationInput, item domain.Item) ([]domain.Item, error)

type PostgreSQLIntegrationCreator

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

func (*PostgreSQLIntegrationCreator) CreateIntegration

type PostgreSQLIntegrationDependencies

type PostgreSQLIntegrationDependencies struct {
	CredentialID     string
	CredentialGetter domain.CredentialGetter[PostgreSQLCredential]
	ParameterBinder  domain.IntegrationParameterBinder
}

type PostgreSQLParams

type PostgreSQLParams struct {
	Query Query `json:"query"`
}

type Query

type Query struct {
	Content          string `json:"content"`
	Query_Parameters []any  `json:"query_parameters"`
}

Jump to

Keyboard shortcuts

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