pgmeta

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetaLogger = logger.HcLog().Named("connector.meta")

Functions

func CreateColumn

func CreateColumn(cfg *raiden.Config, column objects.Column, isPrimary bool) error

func CreateFunction

func CreateFunction(cfg *raiden.Config, fn objects.Function) (objects.Function, error)

func CreateTable

func CreateTable(cfg *raiden.Config, newTable objects.Table) (result objects.Table, err error)

func CreateType

func CreateType(cfg *raiden.Config, t objects.Type) (objects.Type, error)

func DefaultAuthInterceptor

func DefaultAuthInterceptor(accessToken string) func(req *http.Request) error

func DeleteColumn

func DeleteColumn(cfg *raiden.Config, column objects.Column) error

func DeleteFunction

func DeleteFunction(cfg *raiden.Config, fn objects.Function) error

func DeleteTable

func DeleteTable(cfg *raiden.Config, table objects.Table, cascade bool) error

func DeleteType

func DeleteType(cfg *raiden.Config, t objects.Type) error

func ExecuteQuery

func ExecuteQuery[T any](baseUrl, query string, variables any, reqInterceptor net.RequestInterceptor, resInterceptor net.ResponseInterceptor) (result T, err error)

func GetFunctionByName

func GetFunctionByName(cfg *raiden.Config, schema, name string) (result objects.Function, err error)

func GetFunctions

func GetFunctions(cfg *raiden.Config) ([]objects.Function, error)

func GetIndexes

func GetIndexes(cfg *raiden.Config, schema string) ([]objects.Index, error)

func GetTableByName

func GetTableByName(cfg *raiden.Config, name, schema string, includeColumn bool) (result objects.Table, err error)

func GetTableRelationshipActions

func GetTableRelationshipActions(cfg *raiden.Config, schema string) ([]objects.TablesRelationshipAction, error)

----- relationship action -----

func GetTables

func GetTables(cfg *raiden.Config, includedSchemas []string, includeColumns bool) ([]objects.Table, error)

func GetTypeByName

func GetTypeByName(cfg *raiden.Config, includedSchema []string, name string) (result objects.Type, err error)

func GetTypes

func GetTypes(cfg *raiden.Config, includedSchemas []string) ([]objects.Type, error)

func UpdateColumn

func UpdateColumn(cfg *raiden.Config, oldColumn, newColumn objects.Column, updateItem objects.UpdateColumnItem) error

func UpdateFunction

func UpdateFunction(cfg *raiden.Config, fn objects.Function) error

func UpdateTable

func UpdateTable(cfg *raiden.Config, newTable objects.Table, updateItem objects.UpdateTableParam) error

func UpdateType

func UpdateType(cfg *raiden.Config, t objects.Type) error

Types

type ExecuteQueryParam

type ExecuteQueryParam struct {
	Query     string `json:"query"`
	Variables any    `json:"variables"`
}

----- Execute Query -----

Jump to

Keyboard shortcuts

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