meta

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetaLogger = logger.HcLog().Named("supabase.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 CreatePolicy

func CreatePolicy(cfg *raiden.Config, policy objects.Policy) (objects.Policy, error)

func CreateRole

func CreateRole(cfg *raiden.Config, role objects.Role) (objects.Role, error)

func CreateTable

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

func DeleteColumn

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

func DeleteFunction

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

func DeletePolicy

func DeletePolicy(cfg *raiden.Config, policy objects.Policy) error

func DeleteRole

func DeleteRole(cfg *raiden.Config, role objects.Role) error

func DeleteTable

func DeleteTable(cfg *raiden.Config, table objects.Table, cascade bool) 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 GetPolicies

func GetPolicies(cfg *raiden.Config) ([]objects.Policy, error)

func GetPolicyByName

func GetPolicyByName(cfg *raiden.Config, name string) (result objects.Policy, err error)

func GetRoleByName

func GetRoleByName(cfg *raiden.Config, name string) (result objects.Role, err error)

func GetRoles

func GetRoles(cfg *raiden.Config) ([]objects.Role, error)

func GetTableByName

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

func GetTables

func GetTables(cfg *raiden.Config, includedSchemas []string, includeColumns bool) ([]objects.Table, 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 UpdatePolicy

func UpdatePolicy(cfg *raiden.Config, policy objects.Policy, updatePolicyParams objects.UpdatePolicyParam) error

func UpdateRole

func UpdateRole(cfg *raiden.Config, newRole objects.Role, updateRoleParam objects.UpdateRoleParam) error

func UpdateTable

func UpdateTable(cfg *raiden.Config, newTable objects.Table, updateItem objects.UpdateTableParam) 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