metadata

package
v0.3.17 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCollectionToAllowlistArgs

type AddCollectionToAllowlistArgs struct{}

type AddHostToTlsAllowlistArgs

type AddHostToTlsAllowlistArgs struct{}

type AddInheritedRoleArgs

type AddInheritedRoleArgs struct{}

type AddQueryToCollectionArgs

type AddQueryToCollectionArgs struct{}

type AddRemoteSchemaArgs

type AddRemoteSchemaArgs struct{}

type AddRemoteSchemaPermissionsArgs

type AddRemoteSchemaPermissionsArgs struct{}

type All

type All struct{}

func (All) GetColumns

func (All) GetColumns() interface{}

type AndExp

type AndExp struct {
	And []IBoolExp `json:"$and"`
}

AndExp | OrExp | NotExp | ExistsExp | TrueExp | ColumnExp

func (AndExp) GetBoolExp

func (a AndExp) GetBoolExp() interface{}

type ArrRelUsing

type ArrRelUsing struct {
	ForeignKeyConstraintOn *ArrRelUsingFKeyOn        `json:"foreign_key_constraint_on,omitempty"`
	ManualConfiguration    *ArrRelUsingManualMapping `json:"manual_configuration,omitempty"`
}

type ArrRelUsingFKeyOn

type ArrRelUsingFKeyOn struct {
	Table  ITableName `json:"table"`
	Column string     `json:"column"`
}

type ArrRelUsingManualMapping

type ArrRelUsingManualMapping struct {
	RemoteTable   ITableName        `json:"remote_table"`
	ColumnMapping map[string]string `json:"column_mapping"`
}

type ArrayRelationship

type ArrayRelationship struct {
	Name  string     `json:"name"`
	Using UsingArray `json:"using"`
}

type ArrayResponse added in v0.3.12

type ArrayResponse []interface{}

func (ArrayResponse) GetResponse added in v0.3.12

func (r ArrayResponse) GetResponse() interface{}

type BadRequestResponse

type BadRequestResponse struct {
	Path  string `json:"path"`
	Error string `json:"error"`
}

func (BadRequestResponse) GetResponse

func (r BadRequestResponse) GetResponse() interface{}

type BigquerySetTableCustomizationArgs

type BigquerySetTableCustomizationArgs struct{}

type BigqueryTrackTableArgs

type BigqueryTrackTableArgs struct{}

type BigqueryUntrackTableArgs

type BigqueryUntrackTableArgs struct{}

type BulkArgs added in v0.2.0

type BulkArgs []MetadataQuery

type ClearMetadataArgs

type ClearMetadataArgs struct{}

type ColumnExp

type ColumnExp map[string]map[Operator]interface{}

func (ColumnExp) GetBoolExp

func (c ColumnExp) GetBoolExp() interface{}

type ConfigurationSource

type ConfigurationSource struct {
	ConnectionInfo ConnectionInfo `json:"connection_info"`
}

type ConnectionInfo

type ConnectionInfo struct {
	UsePreparedStatements bool         `json:"use_prepared_statements"`
	DatabaseURL           DatabaseURL  `json:"database_url"`
	IsolationLevel        string       `json:"isolation_level"`
	PoolSettings          PoolSettings `json:"pool_settings"`
}

type CreateActionArgs

type CreateActionArgs struct{}

type CreateActionPermissionArgs

type CreateActionPermissionArgs struct{}

type CreateCronTriggerArgs

type CreateCronTriggerArgs struct{}

type CreateQueryCollectionArgs

type CreateQueryCollectionArgs struct{}

type CreateRestEndpointArgs

type CreateRestEndpointArgs struct{}

type CreateScheduledEventArgs

type CreateScheduledEventArgs struct{}

type CustomRootFields

type CustomRootFields struct {
	Insert          string `json:"insert,omitempty"`
	SelectAggregate string `json:"select_aggregate,omitempty"`
	InsertOne       string `json:"insert_one,omitempty"`
	SelectByPk      string `json:"select_by_pk,omitempty"`
	Select          string `json:"select,omitempty"`
	Delete          string `json:"delete,omitempty"`
	Update          string `json:"update,omitempty"`
	DeleteByPk      string `json:"delete_by_pk,omitempty"`
	UpdateByPk      string `json:"update_by_pk,omitempty"`
}

type DatabaseURL

type DatabaseURL struct {
	FromEnv string `json:"from_env"`
}

type Definition

type Definition struct {
	URL                  string `json:"url"`
	TimeoutSeconds       int    `json:"timeout_seconds"`
	ForwardClientHeaders bool   `json:"forward_client_headers"`
}

type DeleteCronTriggerArgs

type DeleteCronTriggerArgs struct{}

type DeletePermission

type DeletePermission struct {
	Filter IBoolExp `json:"filter"`
}

func (DeletePermission) GetDeletePermission added in v0.3.7

func (p DeletePermission) GetDeletePermission() interface{}

type DeleteScheduledEventArgs

type DeleteScheduledEventArgs struct{}

type DropActionArgs

type DropActionArgs struct{}

type DropActionPermissionArgs

type DropActionPermissionArgs struct{}

type DropCollectionFromAllowlistArgs

type DropCollectionFromAllowlistArgs struct{}

type DropHostFromTlsAllowlistArgs

type DropHostFromTlsAllowlistArgs struct{}

type DropInconsistentMetadataArgs

type DropInconsistentMetadataArgs struct{}

type DropInheritedRoleArgs

type DropInheritedRoleArgs struct{}

type DropQueryCollectionArgs

type DropQueryCollectionArgs struct{}

type DropQueryFromCollectionArgs

type DropQueryFromCollectionArgs struct{}

type DropRemoteSchemaPermissionsArgs

type DropRemoteSchemaPermissionsArgs struct{}

type DropRestEndpointArgs

type DropRestEndpointArgs struct{}

type ExistsExp

type ExistsExp struct {
	Exists struct {
		Table ITableName `json:"_table"`
		Where IBoolExp   `json:"_where"`
	} `json:"$exists"`
}

func (ExistsExp) GetBoolExp

func (e ExistsExp) GetBoolExp() interface{}

type ExportMetadataArgs

type ExportMetadataArgs struct{}

type GenericPermission added in v0.3.7

type GenericPermission map[string]interface{}

func (GenericPermission) GetDeletePermission added in v0.3.7

func (g GenericPermission) GetDeletePermission() interface{}

func (GenericPermission) GetInsertPermission added in v0.3.7

func (g GenericPermission) GetInsertPermission() interface{}

func (GenericPermission) GetSelectPermission added in v0.3.7

func (g GenericPermission) GetSelectPermission() interface{}

func (GenericPermission) GetUpdatePermission added in v0.3.7

func (g GenericPermission) GetUpdatePermission() interface{}

type GetCronTriggersArgs

type GetCronTriggersArgs struct{}

type GetInconsistentMetadataArgs

type GetInconsistentMetadataArgs struct{}

type IBoolExp

type IBoolExp interface {
	GetBoolExp() interface{}
}

type ID

type ID struct {
	Eq string `json:"_eq"`
}

type IDeletePermission added in v0.3.7

type IDeletePermission interface {
	GetDeletePermission() interface{}
}

type IInsertPermission added in v0.3.7

type IInsertPermission interface {
	GetInsertPermission() interface{}
}

type IObjRelUsingChoice

type IObjRelUsingChoice interface {
	GetObjRelUsingChoice() interface{}
}

type ISelectPermission added in v0.3.7

type ISelectPermission interface {
	GetSelectPermission() interface{}
}

type ITableName

type ITableName interface {
	GetTableName() interface{}
}

type IUpdatePermission added in v0.3.7

type IUpdatePermission interface {
	GetUpdatePermission() interface{}
}

type InsertOrder

type InsertOrder string
const (
	BeforeParent InsertOrder = "before_parent"
	AfterParent  InsertOrder = "after_parent"
)

type InsertPermission

type InsertPermission struct {
	Check       IBoolExp               `json:"check"`
	Set         map[string]interface{} `json:"set,omitempty"`
	Columns     PermissionColumns      `json:"columns,omitempty"`
	BackendOnly bool                   `json:"backend_only,omitempty"`
}

func (InsertPermission) GetInsertPermission added in v0.3.7

func (p InsertPermission) GetInsertPermission() interface{}

type InternalServerErrorResponse

type InternalServerErrorResponse struct {
	Error string `json:"error"`
}

func (InternalServerErrorResponse) GetResponse

func (r InternalServerErrorResponse) GetResponse() interface{}

type MetadataQuery

type MetadataQuery struct {
	Type MetadataRequestType `json:"type"`
	Args interface{}         `json:"args"`
}

func AddCollectionToAllowlistQuery added in v0.3.0

func AddCollectionToAllowlistQuery(args *AddCollectionToAllowlistArgs) MetadataQuery

func AddHostToTlsAllowlistQuery added in v0.3.0

func AddHostToTlsAllowlistQuery(args *AddHostToTlsAllowlistArgs) MetadataQuery

func AddInheritedRoleQuery added in v0.3.0

func AddInheritedRoleQuery(args *AddInheritedRoleArgs) MetadataQuery

func AddQueryToCollectionQuery added in v0.3.0

func AddQueryToCollectionQuery(args *AddQueryToCollectionArgs) MetadataQuery

func AddRemoteSchemaPermissionsQuery added in v0.3.0

func AddRemoteSchemaPermissionsQuery(args *AddRemoteSchemaPermissionsArgs) MetadataQuery

func AddRemoteSchemaQuery added in v0.3.0

func AddRemoteSchemaQuery(args *AddRemoteSchemaArgs) MetadataQuery

func BigquerySetTableCustomizationQuery added in v0.3.0

func BigquerySetTableCustomizationQuery(args *BigquerySetTableCustomizationArgs) MetadataQuery

func BigqueryTrackTableQuery added in v0.3.0

func BigqueryTrackTableQuery(args *BigqueryTrackTableArgs) MetadataQuery

func BigqueryUntrackTableQuery added in v0.3.0

func BigqueryUntrackTableQuery(args *BigqueryUntrackTableArgs) MetadataQuery

func BulkQuery added in v0.3.0

func BulkQuery(args BulkArgs) MetadataQuery

func ClearMetadataQuery added in v0.3.0

func ClearMetadataQuery(args *ClearMetadataArgs) MetadataQuery

func CreateActionPermissionQuery added in v0.3.0

func CreateActionPermissionQuery(args *CreateActionPermissionArgs) MetadataQuery

func CreateActionQuery added in v0.3.0

func CreateActionQuery(args *CreateActionArgs) MetadataQuery

func CreateCronTriggerQuery added in v0.3.0

func CreateCronTriggerQuery(args *CreateCronTriggerArgs) MetadataQuery

func CreateQueryCollectionQuery added in v0.3.0

func CreateQueryCollectionQuery(args *CreateQueryCollectionArgs) MetadataQuery

func CreateRestEndpointQuery added in v0.3.0

func CreateRestEndpointQuery(args *CreateRestEndpointArgs) MetadataQuery

func CreateScheduledEventQuery added in v0.3.0

func CreateScheduledEventQuery(args *CreateScheduledEventArgs) MetadataQuery

func DeleteCronTriggerQuery added in v0.3.0

func DeleteCronTriggerQuery(args *DeleteCronTriggerArgs) MetadataQuery

func DeleteScheduledEventQuery added in v0.3.0

func DeleteScheduledEventQuery(args *DeleteScheduledEventArgs) MetadataQuery

func DropActionPermissionQuery added in v0.3.0

func DropActionPermissionQuery(args *DropActionPermissionArgs) MetadataQuery

func DropActionQuery added in v0.3.0

func DropActionQuery(args *DropActionArgs) MetadataQuery

func DropCollectionFromAllowlistQuery added in v0.3.0

func DropCollectionFromAllowlistQuery(args *DropCollectionFromAllowlistArgs) MetadataQuery

func DropHostFromTlsAllowlistQuery added in v0.3.0

func DropHostFromTlsAllowlistQuery(args *DropHostFromTlsAllowlistArgs) MetadataQuery

func DropInconsistentMetadataQuery added in v0.3.0

func DropInconsistentMetadataQuery(args *DropInconsistentMetadataArgs) MetadataQuery

func DropInheritedRoleQuery added in v0.3.0

func DropInheritedRoleQuery(args *DropInheritedRoleArgs) MetadataQuery

func DropQueryCollectionQuery added in v0.3.0

func DropQueryCollectionQuery(args *DropQueryCollectionArgs) MetadataQuery

func DropQueryFromCollectionQuery added in v0.3.0

func DropQueryFromCollectionQuery(args *DropQueryFromCollectionArgs) MetadataQuery

func DropRemoteSchemaPermissionsQuery added in v0.3.0

func DropRemoteSchemaPermissionsQuery(args *DropRemoteSchemaPermissionsArgs) MetadataQuery

func DropRestEndpointQuery added in v0.3.0

func DropRestEndpointQuery(args *DropRestEndpointArgs) MetadataQuery

func ExportMetadataQuery added in v0.3.0

func ExportMetadataQuery(args *ExportMetadataArgs) MetadataQuery

func GetCronTriggersQuery added in v0.3.0

func GetCronTriggersQuery(args *GetCronTriggersArgs) MetadataQuery

func GetInconsistentMetadataQuery added in v0.3.0

func GetInconsistentMetadataQuery(args *GetInconsistentMetadataArgs) MetadataQuery

func MssqlAddSourceQuery added in v0.3.0

func MssqlAddSourceQuery(args *MssqlAddSourceArgs) MetadataQuery

func MssqlCreateArrayRelationshipQuery added in v0.3.0

func MssqlCreateArrayRelationshipQuery(args *MssqlCreateArrayRelationshipArgs) MetadataQuery

func MssqlCreateDeletePermissionQuery added in v0.3.0

func MssqlCreateDeletePermissionQuery(args *MssqlCreateDeletePermissionArgs) MetadataQuery

func MssqlCreateInsertPermissionQuery added in v0.3.0

func MssqlCreateInsertPermissionQuery(args *MssqlCreateInsertPermissionArgs) MetadataQuery

func MssqlCreateObjectRelationshipQuery added in v0.3.0

func MssqlCreateObjectRelationshipQuery(args *MssqlCreateObjectRelationshipArgs) MetadataQuery

func MssqlCreateSelectPermissionQuery added in v0.3.0

func MssqlCreateSelectPermissionQuery(args *MssqlCreateSelectPermissionArgs) MetadataQuery

func MssqlCreateUpdatePermissionQuery added in v0.3.0

func MssqlCreateUpdatePermissionQuery(args *MssqlCreateUpdatePermissionArgs) MetadataQuery

func MssqlDropDeletePermissionQuery added in v0.3.0

func MssqlDropDeletePermissionQuery(args *MssqlDropDeletePermissionArgs) MetadataQuery

func MssqlDropInsertPermissionQuery added in v0.3.0

func MssqlDropInsertPermissionQuery(args *MssqlDropInsertPermissionArgs) MetadataQuery

func MssqlDropRelationshipQuery added in v0.3.0

func MssqlDropRelationshipQuery(args *MssqlDropRelationshipArgs) MetadataQuery

func MssqlDropSelectPermissionQuery added in v0.3.0

func MssqlDropSelectPermissionQuery(args *MssqlDropSelectPermissionArgs) MetadataQuery

func MssqlDropSourceQuery added in v0.3.0

func MssqlDropSourceQuery(args *MssqlDropSourceArgs) MetadataQuery

func MssqlDropUpdatePermissionQuery added in v0.3.0

func MssqlDropUpdatePermissionQuery(args *MssqlDropUpdatePermissionArgs) MetadataQuery

func MssqlRenameRelationshipQuery added in v0.3.0

func MssqlRenameRelationshipQuery(args *MssqlRenameRelationshipArgs) MetadataQuery

func MssqlSetPermissionCommentQuery added in v0.3.0

func MssqlSetPermissionCommentQuery(args *MssqlSetPermissionCommentArgs) MetadataQuery

func MssqlSetRelationshipCommentQuery added in v0.3.0

func MssqlSetRelationshipCommentQuery(args *MssqlSetRelationshipCommentArgs) MetadataQuery

func MssqlSetTableCustomizationQuery added in v0.3.0

func MssqlSetTableCustomizationQuery(args *MssqlSetTableCustomizationArgs) MetadataQuery

func MssqlTrackTableQuery added in v0.3.0

func MssqlTrackTableQuery(args *MssqlTrackTableArgs) MetadataQuery

func MssqlUntrackTableQuery added in v0.3.0

func MssqlUntrackTableQuery(args *MssqlUntrackTableArgs) MetadataQuery

func PgAddComputedFieldQuery added in v0.3.0

func PgAddComputedFieldQuery(args *PgAddComputedFieldArgs) MetadataQuery

func PgAddSourceQuery added in v0.3.0

func PgAddSourceQuery(args *PgAddSourceArgs) MetadataQuery

func PgCreateArrayRelationshipQuery added in v0.3.0

func PgCreateArrayRelationshipQuery(args *PgCreateArrayRelationshipArgs) MetadataQuery

func PgCreateDeletePermissionQuery added in v0.3.0

func PgCreateDeletePermissionQuery(args *PgCreateDeletePermissionArgs) MetadataQuery

func PgCreateEventTriggerQuery added in v0.3.0

func PgCreateEventTriggerQuery(args *PgCreateEventTriggerArgs) MetadataQuery

func PgCreateFunctionPermissionQuery added in v0.3.0

func PgCreateFunctionPermissionQuery(args *PgCreateFunctionPermissionArgs) MetadataQuery

func PgCreateInsertPermissionQuery added in v0.3.0

func PgCreateInsertPermissionQuery(args *PgCreateInsertPermissionArgs) MetadataQuery

func PgCreateObjectRelationshipQuery added in v0.3.0

func PgCreateObjectRelationshipQuery(args *PgCreateObjectRelationshipArgs) MetadataQuery

func PgCreateRemoteRelationshipQuery added in v0.3.0

func PgCreateRemoteRelationshipQuery(args *PgCreateRemoteRelationshipArgs) MetadataQuery

func PgCreateSelectPermissionQuery added in v0.3.0

func PgCreateSelectPermissionQuery(args *PgCreateSelectPermissionArgs) MetadataQuery

func PgCreateUpdatePermissionQuery added in v0.3.0

func PgCreateUpdatePermissionQuery(args *PgCreateUpdatePermissionArgs) MetadataQuery

func PgDeleteEventTriggerQuery added in v0.3.0

func PgDeleteEventTriggerQuery(args *PgDeleteEventTriggerArgs) MetadataQuery

func PgDeleteRemoteRelationshipQuery added in v0.3.0

func PgDeleteRemoteRelationshipQuery(args *PgDeleteRemoteRelationshipArgs) MetadataQuery

func PgDropComputedFieldQuery added in v0.3.0

func PgDropComputedFieldQuery(args *PgDropComputedFieldArgs) MetadataQuery

func PgDropDeletePermissionQuery added in v0.3.0

func PgDropDeletePermissionQuery(args *PgDropDeletePermissionArgs) MetadataQuery

func PgDropFunctionPermissionQuery added in v0.3.0

func PgDropFunctionPermissionQuery(args *PgDropFunctionPermissionArgs) MetadataQuery

func PgDropInsertPermissionQuery added in v0.3.0

func PgDropInsertPermissionQuery(args *PgDropInsertPermissionArgs) MetadataQuery

func PgDropRelationshipQuery added in v0.3.0

func PgDropRelationshipQuery(args *PgDropRelationshipArgs) MetadataQuery

func PgDropSelectPermissionQuery added in v0.3.0

func PgDropSelectPermissionQuery(args *PgDropSelectPermissionArgs) MetadataQuery

func PgDropSourceQuery added in v0.3.0

func PgDropSourceQuery(args *PgDropSourceArgs) MetadataQuery

func PgDropUpdatePermissionQuery added in v0.3.0

func PgDropUpdatePermissionQuery(args *PgDropUpdatePermissionArgs) MetadataQuery

func PgInvokeEventTriggerQuery added in v0.3.0

func PgInvokeEventTriggerQuery(args *PgInvokeEventTriggerArgs) MetadataQuery

func PgRedeliverEventQuery added in v0.3.0

func PgRedeliverEventQuery(args *PgRedeliverEventArgs) MetadataQuery

func PgRenameRelationshipQuery added in v0.3.0

func PgRenameRelationshipQuery(args *PgRenameRelationshipArgs) MetadataQuery

func PgSetFunctionCustomizationQuery added in v0.3.0

func PgSetFunctionCustomizationQuery(args *PgSetFunctionCustomizationArgs) MetadataQuery

func PgSetPermissionCommentQuery added in v0.3.0

func PgSetPermissionCommentQuery(args *PgSetPermissionCommentArgs) MetadataQuery

func PgSetRelationshipCommentQuery added in v0.3.0

func PgSetRelationshipCommentQuery(args *PgSetRelationshipCommentArgs) MetadataQuery

func PgSetTableCustomizationQuery added in v0.3.0

func PgSetTableCustomizationQuery(args *PgSetTableCustomizationArgs) MetadataQuery

func PgSetTableIsEnumQuery added in v0.3.0

func PgSetTableIsEnumQuery(args *PgSetTableIsEnumArgs) MetadataQuery

func PgTrackFunctionQuery added in v0.3.0

func PgTrackFunctionQuery(args *PgTrackFunctionArgs) MetadataQuery

func PgTrackTableQuery added in v0.3.0

func PgTrackTableQuery(args *PgTrackTableArgs) MetadataQuery

func PgUntrackFunctionQuery added in v0.3.0

func PgUntrackFunctionQuery(args *PgUntrackFunctionArgs) MetadataQuery

func PgUntrackTableQuery added in v0.3.0

func PgUntrackTableQuery(args *PgUntrackTableArgs) MetadataQuery

func PgUpdateRemoteRelationshipQuery added in v0.3.0

func PgUpdateRemoteRelationshipQuery(args *PgUpdateRemoteRelationshipArgs) MetadataQuery

func ReloadMetadataQuery added in v0.3.0

func ReloadMetadataQuery(args *ReloadMetadataArgs) MetadataQuery

func ReloadRemoteSchemaQuery added in v0.3.0

func ReloadRemoteSchemaQuery(args *ReloadRemoteSchemaArgs) MetadataQuery

func RemoveRemoteSchemaQuery added in v0.3.0

func RemoveRemoteSchemaQuery(args *RemoveRemoteSchemaArgs) MetadataQuery

func ReplaceMetadataQuery added in v0.3.0

func ReplaceMetadataQuery(args *ReplaceMetadataArgs) MetadataQuery

func SetCustomTypesQuery added in v0.3.0

func SetCustomTypesQuery(args *SetCustomTypesArgs) MetadataQuery

func SetGraphqlIntrospectionOptionsQuery added in v0.3.0

func SetGraphqlIntrospectionOptionsQuery(args *SetGraphqlIntrospectionOptionsArgs) MetadataQuery

func UpdateActionQuery added in v0.3.0

func UpdateActionQuery(args *UpdateActionArgs) MetadataQuery

func UpdateRemoteSchemaQuery added in v0.3.0

func UpdateRemoteSchemaQuery(args *UpdateRemoteSchemaArgs) MetadataQuery

type MetadataRequestType

type MetadataRequestType string
const (
	BulkType                       MetadataRequestType = "bulk"
	PgAddSource                    MetadataRequestType = "pg_add_source"
	PgDropSource                   MetadataRequestType = "pg_drop_source"
	PgTrackTable                   MetadataRequestType = "pg_track_table"
	PgUntrackTable                 MetadataRequestType = "pg_untrack_table"
	PgSetTableCustomization        MetadataRequestType = "pg_set_table_customization"
	PgSetTableIsEnum               MetadataRequestType = "pg_set_table_is_enum"
	PgTrackFunction                MetadataRequestType = "pg_track_function"
	PgUntrackFunction              MetadataRequestType = "pg_untrack_function"
	PgSetFunctionCustomization     MetadataRequestType = "pg_set_function_customization"
	PgCreateFunctionPermission     MetadataRequestType = "pg_create_function_permission"
	PgDropFunctionPermission       MetadataRequestType = "pg_drop_function_permission"
	PgCreateObjectRelationship     MetadataRequestType = "pg_create_object_relationship"
	PgCreateArrayRelationship      MetadataRequestType = "pg_create_array_relationship"
	PgDropRelationship             MetadataRequestType = "pg_drop_relationship"
	PgRenameRelationship           MetadataRequestType = "pg_rename_relationship"
	PgSetRelationshipComment       MetadataRequestType = "pg_set_relationship_comment"
	PgAddComputedField             MetadataRequestType = "pg_add_computed_field"
	PgDropComputedField            MetadataRequestType = "pg_drop_computed_field"
	PgCreateInsertPermission       MetadataRequestType = "pg_create_insert_permission"
	PgDropInsertPermission         MetadataRequestType = "pg_drop_insert_permission"
	PgCreateSelectPermission       MetadataRequestType = "pg_create_select_permission"
	PgDropSelectPermission         MetadataRequestType = "pg_drop_select_permission"
	PgCreateUpdatePermission       MetadataRequestType = "pg_create_update_permission"
	PgDropUpdatePermission         MetadataRequestType = "pg_drop_update_permission"
	PgCreateDeletePermission       MetadataRequestType = "pg_create_delete_permission"
	PgDropDeletePermission         MetadataRequestType = "pg_drop_delete_permission"
	PgSetPermissionComment         MetadataRequestType = "pg_set_permission_comment"
	PgCreateEventTrigger           MetadataRequestType = "pg_create_event_trigger"
	PgDeleteEventTrigger           MetadataRequestType = "pg_delete_event_trigger"
	PgRedeliverEvent               MetadataRequestType = "pg_redeliver_event"
	PgInvokeEventTrigger           MetadataRequestType = "pg_invoke_event_trigger"
	BigqueryTrackTable             MetadataRequestType = "bigquery_track_table"
	BigqueryUntrackTable           MetadataRequestType = "bigquery_untrack_table"
	BigquerySetTableCustomization  MetadataRequestType = "bigquery_set_table_customization"
	MssqlAddSource                 MetadataRequestType = "mssql_add_source"
	MssqlDropSource                MetadataRequestType = "mssql_drop_source"
	MssqlTrackTable                MetadataRequestType = "mssql_track_table"
	MssqlUntrackTable              MetadataRequestType = "mssql_untrack_table"
	MssqlCreateObjectRelationship  MetadataRequestType = "mssql_create_object_relationship"
	MssqlCreateArrayRelationship   MetadataRequestType = "mssql_create_array_relationship"
	MssqlDropRelationship          MetadataRequestType = "mssql_drop_relationship"
	MssqlRenameRelationship        MetadataRequestType = "mssql_rename_relationship"
	MssqlSetRelationshipComment    MetadataRequestType = "mssql_set_relationship_comment"
	MssqlSetTableCustomization     MetadataRequestType = "mssql_set_table_customization"
	MssqlCreateInsertPermission    MetadataRequestType = "mssql_create_insert_permission"
	MssqlDropInsertPermission      MetadataRequestType = "mssql_drop_insert_permission"
	MssqlCreateSelectPermission    MetadataRequestType = "mssql_create_select_permission"
	MssqlDropSelectPermission      MetadataRequestType = "mssql_drop_select_permission"
	MssqlCreateUpdatePermission    MetadataRequestType = "mssql_create_update_permission"
	MssqlDropUpdatePermission      MetadataRequestType = "mssql_drop_update_permission"
	MssqlCreateDeletePermission    MetadataRequestType = "mssql_create_delete_permission"
	MssqlDropDeletePermission      MetadataRequestType = "mssql_drop_delete_permission"
	MssqlSetPermissionComment      MetadataRequestType = "mssql_set_permission_comment"
	CreateCronTrigger              MetadataRequestType = "create_cron_trigger"
	DeleteCronTrigger              MetadataRequestType = "delete_cron_trigger"
	GetCronTriggers                MetadataRequestType = "get_cron_triggers"
	CreateScheduledEvent           MetadataRequestType = "create_scheduled_event"
	DeleteScheduledEvent           MetadataRequestType = "delete_scheduled_event"
	AddRemoteSchema                MetadataRequestType = "add_remote_schema"
	UpdateRemoteSchema             MetadataRequestType = "update_remote_schema"
	RemoveRemoteSchema             MetadataRequestType = "remove_remote_schema"
	ReloadRemoteSchema             MetadataRequestType = "reload_remote_schema"
	AddRemoteSchemaPermissions     MetadataRequestType = "add_remote_schema_permissions"
	DropRemoteSchemaPermissions    MetadataRequestType = "drop_remote_schema_permissions"
	PgCreateRemoteRelationship     MetadataRequestType = "pg_create_remote_relationship"
	PgUpdateRemoteRelationship     MetadataRequestType = "pg_update_remote_relationship"
	PgDeleteRemoteRelationship     MetadataRequestType = "pg_delete_remote_relationship"
	ExportMetadata                 MetadataRequestType = "export_metadata"
	ReplaceMetadata                MetadataRequestType = "replace_metadata"
	ReloadMetadata                 MetadataRequestType = "reload_metadata"
	ClearMetadata                  MetadataRequestType = "clear_metadata"
	GetInconsistentMetadata        MetadataRequestType = "get_inconsistent_metadata"
	DropInconsistentMetadata       MetadataRequestType = "drop_inconsistent_metadata"
	CreateQueryCollection          MetadataRequestType = "create_query_collection"
	DropQueryCollection            MetadataRequestType = "drop_query_collection"
	AddQueryToCollection           MetadataRequestType = "add_query_to_collection"
	DropQueryFromCollection        MetadataRequestType = "drop_query_from_collection"
	AddCollectionToAllowlist       MetadataRequestType = "add_collection_to_allowlist"
	DropCollectionFromAllowlist    MetadataRequestType = "drop_collection_from_allowlist"
	SetCustomTypes                 MetadataRequestType = "set_custom_types"
	CreateAction                   MetadataRequestType = "create_action"
	DropAction                     MetadataRequestType = "drop_action"
	UpdateAction                   MetadataRequestType = "update_action"
	CreateActionPermission         MetadataRequestType = "create_action_permission"
	DropActionPermission           MetadataRequestType = "drop_action_permission"
	CreateRestEndpoint             MetadataRequestType = "create_rest_endpoint"
	DropRestEndpoint               MetadataRequestType = "drop_rest_endpoint"
	AddInheritedRole               MetadataRequestType = "add_inherited_role"
	DropInheritedRole              MetadataRequestType = "drop_inherited_role"
	SetGraphqlIntrospectionOptions MetadataRequestType = "set_graphql_introspection_options"
	AddHostToTlsAllowlist          MetadataRequestType = "add_host_to_tls_allowlist"
	DropHostFromTlsAllowlist       MetadataRequestType = "drop_host_from_tls_allowlist"
)

type MetadataResponse

type MetadataResponse interface {
	GetResponse() interface{}
}

type MetadataResponses added in v0.3.8

type MetadataResponses []MetadataResponse

func (MetadataResponses) GetResponse added in v0.3.9

func (r MetadataResponses) GetResponse() interface{}

type MssqlAddSourceArgs

type MssqlAddSourceArgs struct{}

type MssqlCreateArrayRelationshipArgs

type MssqlCreateArrayRelationshipArgs struct{}

type MssqlCreateDeletePermissionArgs

type MssqlCreateDeletePermissionArgs struct{}

type MssqlCreateInsertPermissionArgs

type MssqlCreateInsertPermissionArgs struct{}

type MssqlCreateObjectRelationshipArgs

type MssqlCreateObjectRelationshipArgs struct{}

type MssqlCreateSelectPermissionArgs

type MssqlCreateSelectPermissionArgs struct{}

type MssqlCreateUpdatePermissionArgs

type MssqlCreateUpdatePermissionArgs struct{}

type MssqlDropDeletePermissionArgs

type MssqlDropDeletePermissionArgs struct{}

type MssqlDropInsertPermissionArgs

type MssqlDropInsertPermissionArgs struct{}

type MssqlDropRelationshipArgs

type MssqlDropRelationshipArgs struct{}

type MssqlDropSelectPermissionArgs

type MssqlDropSelectPermissionArgs struct{}

type MssqlDropSourceArgs

type MssqlDropSourceArgs struct{}

type MssqlDropUpdatePermissionArgs

type MssqlDropUpdatePermissionArgs struct{}

type MssqlRenameRelationshipArgs

type MssqlRenameRelationshipArgs struct{}

type MssqlSetPermissionCommentArgs

type MssqlSetPermissionCommentArgs struct{}

type MssqlSetRelationshipCommentArgs

type MssqlSetRelationshipCommentArgs struct{}

type MssqlSetTableCustomizationArgs

type MssqlSetTableCustomizationArgs struct{}

type MssqlTrackTableArgs

type MssqlTrackTableArgs struct{}

type MssqlUntrackTableArgs

type MssqlUntrackTableArgs struct{}

type NotExp

type NotExp struct {
	Not IBoolExp `json:"$not"`
}

func (NotExp) GetBoolExp

func (n NotExp) GetBoolExp() interface{}

type ObjRelUsing

type ObjRelUsing struct {
	ForeignKeyConstraintOn IObjRelUsingChoice        `json:"foreign_key_constraint_on,omitempty"`
	ManualConfiguration    *ObjRelUsingManualMapping `json:"manual_configuration,omitempty"`
}

type ObjRelUsingManualMapping

type ObjRelUsingManualMapping struct {
	RemoteTable    ITableName        `json:"remote_table"`
	ColumnMapping  map[string]string `json:"column_mapping"`
	InsertionOrder *InsertOrder      `json:"insertion_order,omitempty"`
}

type ObjectRelationship

type ObjectRelationship struct {
	Name  string `json:"name"`
	Using Using  `json:"using"`
}

type ObjectResponse added in v0.3.12

type ObjectResponse map[string]interface{}

func (ObjectResponse) GetResponse added in v0.3.12

func (r ObjectResponse) GetResponse() interface{}

type Operator

type Operator string
const (
	EqOperator  Operator = "$eq"
	NeqOperator Operator = "$ne"
	LtOperator  Operator = "$lt"
	LteOperator Operator = "$lte"
	GtOperator  Operator = "$gt"
	GteOperator Operator = "$gte"
	InOperator  Operator = "$in"
	NinOperator Operator = "$nin"

	LikeOperator     Operator = "$like"
	NLikeOperator    Operator = "$nlike"
	ILikeOperator    Operator = "$ilike"
	NILikeOperator   Operator = "$nilike"
	SimilarOperator  Operator = "$similar"
	NSimilarOperator Operator = "$nsimilar"
	RegexOperator    Operator = "$regex"
	NRegexOperator   Operator = "$nregex"
	IRegexOperator   Operator = "$iregex"
	NIRegexOperator  Operator = "$niregex"
)

type OrExp

type OrExp struct {
	Or []IBoolExp `json:"$or"`
}

func (OrExp) GetBoolExp

func (a OrExp) GetBoolExp() interface{}

type PGColumns

type PGColumns []string

func (PGColumns) GetColumns

func (c PGColumns) GetColumns() interface{}

type PermissionColumns

type PermissionColumns interface {
	GetColumns() interface{}
}

HAND-CRAFTED IMPLEMENTATIONS

type PgAddComputedFieldArgs

type PgAddComputedFieldArgs struct{}

type PgAddSourceArgs

type PgAddSourceArgs struct{}

type PgCreateArrayRelationshipArgs

type PgCreateArrayRelationshipArgs struct {
	Table   ITableName  `json:"table"`
	Name    string      `json:"name"`
	Using   ArrRelUsing `json:"using"`
	Comment string      `json:"comment,omitempty"`
	Source  string      `json:"source,omitempty"`
}

type PgCreateDeletePermissionArgs

type PgCreateDeletePermissionArgs struct {
	Table      ITableName        `json:"table"`
	Role       string            `json:"role"`
	Permission IDeletePermission `json:"permission"`
	Comment    string            `json:"comment,omitempty"`
	Source     string            `json:"source,omitempty"`
}

type PgCreateEventTriggerArgs

type PgCreateEventTriggerArgs struct{}

type PgCreateFunctionPermissionArgs

type PgCreateFunctionPermissionArgs struct{}

type PgCreateInsertPermissionArgs

type PgCreateInsertPermissionArgs struct {
	Table      ITableName        `json:"table"`
	Role       string            `json:"role"`
	Permission IInsertPermission `json:"permission"`
	Comment    string            `json:"comment,omitempty"`
	Source     string            `json:"source,omitempty"`
}

type PgCreateObjectRelationshipArgs

type PgCreateObjectRelationshipArgs struct {
	Table   ITableName  `json:"table"`
	Name    string      `json:"name"`
	Using   ObjRelUsing `json:"using"`
	Comment string      `json:"comment,omitempty"`
	Source  string      `json:"source,omitempty"`
}

type PgCreateRemoteRelationshipArgs

type PgCreateRemoteRelationshipArgs struct{}

type PgCreateSelectPermissionArgs

type PgCreateSelectPermissionArgs struct {
	Table      ITableName        `json:"table"`
	Role       string            `json:"role"`
	Permission ISelectPermission `json:"permission"`
	Comment    string            `json:"comment,omitempty"`
	Source     string            `json:"source,omitempty"`
}

type PgCreateUpdatePermissionArgs

type PgCreateUpdatePermissionArgs struct {
	Table      ITableName        `json:"table"`
	Role       string            `json:"role"`
	Permission IUpdatePermission `json:"permission"`
	Comment    string            `json:"comment,omitempty"`
	Source     string            `json:"source,omitempty"`
}

type PgDeleteEventTriggerArgs

type PgDeleteEventTriggerArgs struct{}

type PgDeleteRemoteRelationshipArgs

type PgDeleteRemoteRelationshipArgs struct{}

type PgDropComputedFieldArgs

type PgDropComputedFieldArgs struct{}

type PgDropDeletePermissionArgs

type PgDropDeletePermissionArgs struct {
	Table  ITableName `json:"table"`
	Role   string     `json:"role"`
	Source string     `json:"source,omitempty"`
}

type PgDropFunctionPermissionArgs

type PgDropFunctionPermissionArgs struct{}

type PgDropInsertPermissionArgs

type PgDropInsertPermissionArgs struct {
	Table  ITableName `json:"table"`
	Role   string     `json:"role"`
	Source string     `json:"source,omitempty"`
}

type PgDropRelationshipArgs

type PgDropRelationshipArgs struct {
	Table        ITableName `json:"table"`
	Relationship string     `json:"relationship"`
	Cascade      bool       `json:"cascade,omitempty"`
	Source       string     `json:"source,omitempty"`
}

type PgDropSelectPermissionArgs

type PgDropSelectPermissionArgs struct {
	Table  ITableName `json:"table"`
	Role   string     `json:"role"`
	Source string     `json:"source,omitempty"`
}

type PgDropSourceArgs

type PgDropSourceArgs struct{}

type PgDropUpdatePermissionArgs

type PgDropUpdatePermissionArgs struct {
	Table  ITableName `json:"table"`
	Role   string     `json:"role"`
	Source string     `json:"source,omitempty"`
}

type PgInvokeEventTriggerArgs

type PgInvokeEventTriggerArgs struct{}

type PgRedeliverEventArgs

type PgRedeliverEventArgs struct{}

type PgRenameRelationshipArgs

type PgRenameRelationshipArgs struct{}

type PgSetFunctionCustomizationArgs

type PgSetFunctionCustomizationArgs struct{}

type PgSetPermissionCommentArgs

type PgSetPermissionCommentArgs struct{}

type PgSetRelationshipCommentArgs

type PgSetRelationshipCommentArgs struct{}

type PgSetTableCustomizationArgs

type PgSetTableCustomizationArgs struct {
	Table         ITableName          `json:"table"`
	Configuration *TableConfiguration `json:"configuration"`
	Source        string              `json:"source,omitempty"`
}

type PgSetTableIsEnumArgs

type PgSetTableIsEnumArgs struct{}

type PgTrackFunctionArgs

type PgTrackFunctionArgs struct{}

type PgTrackTableArgs

type PgTrackTableArgs struct {
	Table         ITableName          `json:"table"`
	Configuration *TableConfiguration `json:"configuration,omitempty"`
	Source        string              `json:"source,omitempty"`
}

type PgUntrackFunctionArgs

type PgUntrackFunctionArgs struct{}

type PgUntrackTableArgs

type PgUntrackTableArgs struct {
	Table   ITableName `json:"table"`
	Cascade bool       `json:"cascade,omitempty"`
	Source  string     `json:"source,omitempty"`
}

type PgUpdateRemoteRelationshipArgs

type PgUpdateRemoteRelationshipArgs struct{}

type PoolSettings

type PoolSettings struct {
	ConnectionLifetime int `json:"connection_lifetime"`
	Retries            int `json:"retries"`
	IdleTimeout        int `json:"idle_timeout"`
	MaxConnections     int `json:"max_connections"`
}

type QualifiedTableName

type QualifiedTableName struct {
	Schema string `json:"schema,omitempty"`
	Name   string `json:"name"`
}

func (QualifiedTableName) GetTableName

func (q QualifiedTableName) GetTableName() interface{}

type ReloadMetadataArgs

type ReloadMetadataArgs struct{}

type ReloadRemoteSchemaArgs

type ReloadRemoteSchemaArgs struct{}

type RemoteSchemas

type RemoteSchemas struct {
	Name       string     `json:"name"`
	Definition Definition `json:"definition"`
}

type RemoteTable

type RemoteTable struct {
	Table  ITableName `json:"table"`
	Column string     `json:"column"`
}

func (RemoteTable) GetObjRelUsingChoice

func (r RemoteTable) GetObjRelUsingChoice() interface{}

type RemoveRemoteSchemaArgs

type RemoveRemoteSchemaArgs struct{}

type ReplaceMetadataArgs

type ReplaceMetadataArgs struct{}

type RestyResponse added in v0.3.13

type RestyResponse struct {
	*resty.Response
}

func (RestyResponse) GetResponse added in v0.3.13

func (r RestyResponse) GetResponse() interface{}

type SameTable

type SameTable string

func (SameTable) GetObjRelUsingChoice

func (s SameTable) GetObjRelUsingChoice() interface{}

type SelectPermission

type SelectPermission struct {
	Columns           PermissionColumns `json:"columns,omitempty"`
	ComputedFields    []string          `json:"computed_fields,omitempty"`
	Filter            IBoolExp          `json:"filter"`
	Limit             *int              `json:"limit,omitempty"`
	AllowAggregations bool              `json:"allow_aggregations,omitempty"`
}

func (SelectPermission) GetSelectPermission added in v0.3.7

func (p SelectPermission) GetSelectPermission() interface{}

type SetCustomTypesArgs

type SetCustomTypesArgs struct{}

type SetGraphqlIntrospectionOptionsArgs

type SetGraphqlIntrospectionOptionsArgs struct{}

type Source

type Source struct {
	Name          string              `json:"name"`
	Kind          string              `json:"kind"`
	Tables        []*TableDefinition  `json:"tables"`
	Configuration ConfigurationSource `json:"configuration"`
}

type TableConfiguration

type TableConfiguration struct {
	Identifier        string            `json:"identifier,omitempty"` // TO REVIEW: https://hasura.io/docs/latest/graphql/core/api-reference/syntax-defs.html#table-config
	CustomRootFields  *CustomRootFields `json:"custom_root_fields,omitempty"`
	CustomName        string            `json:"custom_name,omitempty"`
	CustomColumnNames map[string]string `json:"custom_column_names,omitempty"`
}

type TableDefinition

type TableDefinition struct {
	Table               ITableName            `json:"table"`
	Configuration       *TableConfiguration   `json:"configuration,omitempty"`
	ObjectRelationships []*ObjectRelationship `json:"object_relationships,omitempty"`
	InsertPermissions   []*InsertPermission   `json:"insert_permissions,omitempty"`
	SelectPermissions   []*SelectPermission   `json:"select_permissions,omitempty"`
	UpdatePermissions   []*UpdatePermission   `json:"update_permissions,omitempty"`
	DeletePermissions   []*DeletePermission   `json:"delete_permissions,omitempty"`
	ArrayRelationships  []*ArrayRelationship  `json:"array_relationships,omitempty"`
}

type TableName

type TableName string

func (TableName) GetTableName

func (l TableName) GetTableName() interface{}

type TrueExp

type TrueExp struct{}

func (TrueExp) GetBoolExp

func (t TrueExp) GetBoolExp() interface{}

type UnauthorizedResponse

type UnauthorizedResponse struct {
	Error string `json:"error"`
}

func (UnauthorizedResponse) GetResponse

func (r UnauthorizedResponse) GetResponse() interface{}

type UpdateActionArgs

type UpdateActionArgs struct{}

type UpdatePermission

type UpdatePermission struct {
	Columns PermissionColumns      `json:"columns"`
	Filter  IBoolExp               `json:"filter"`
	Check   IBoolExp               `json:"check,omitempty"`
	Set     map[string]interface{} `json:"set,omitempty"`
}

func (UpdatePermission) GetUpdatePermission added in v0.3.7

func (p UpdatePermission) GetUpdatePermission() interface{}

type UpdateRemoteSchemaArgs

type UpdateRemoteSchemaArgs struct{}

type Using

type Using struct {
	// ForeignKeyConstraintOn string `json:"foreign_key_constraint_on"`
	ForeignKeyConstraintOn interface{} `json:"foreign_key_constraint_on,omitempty"`
}

func (Using) GetObjRelUsingChoice added in v0.3.4

func (u Using) GetObjRelUsingChoice() interface{}

type UsingArray

type UsingArray struct {
	ForeignKeyConstraintOn RemoteTable `json:"foreign_key_constraint_on"`
}

Jump to

Keyboard shortcuts

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