From d6167cce683979d19644a2828d6cea1ebaf60025 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Wed, 18 Feb 2026 18:42:30 +1100 Subject: [PATCH 01/64] full-surface-defined --- pkg/surface/surface.go | 558 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 558 insertions(+) create mode 100644 pkg/surface/surface.go diff --git a/pkg/surface/surface.go b/pkg/surface/surface.go new file mode 100644 index 0000000..80ad00a --- /dev/null +++ b/pkg/surface/surface.go @@ -0,0 +1,558 @@ +package surface + +import ( + "net/http" + "net/url" + + "github.com/getkin/kin-openapi/openapi3" + "github.com/stackql/any-sdk/pkg/client" + "github.com/stackql/any-sdk/pkg/dto" + "github.com/stackql/any-sdk/pkg/internaldto" + "github.com/stackql/any-sdk/pkg/response" + "github.com/stackql/stackql-parser/go/sqltypes" + "github.com/stackql/stackql-parser/go/vt/sqlparser" +) + +type Addressable interface { + ConditionIsValid(lhs string, rhs interface{}) bool + GetLocation() string + GetName() string + GetAlias() string + GetSchema() (Schema, bool) + GetType() string + IsRequired() bool +} + +type ColumnDescriptor interface { + GetAlias() string + GetDecoratedCol() string + GetIdentifier() string + GetName() string + GetNode() sqlparser.SQLNode + GetQualifier() string + GetRepresentativeSchema() Schema + GetSchema() Schema + GetVal() *sqlparser.SQLVal + setName(string) +} + +type Tabulation interface { + GetColumns() []ColumnDescriptor + GetSchema() Schema + PushBackColumn(col ColumnDescriptor) + GetName() string + RenameColumnsToXml() Tabulation +} + +type Schema interface { + SetDefaultColName(string) + getDefaultColName() string + ConditionIsValid(lhs string, rhs interface{}) bool + DeprecatedProcessHttpResponse(response *http.Response, path string) (map[string]interface{}, error) + FindByPath(path string, visited map[string]bool) Schema + GetAdditionalProperties() (Schema, bool) + GetAllColumns(string) []string + GetItemProperty(k string) (Schema, bool) + GetItems() (Schema, error) + GetItemsSchema() (Schema, error) + GetName() string + GetDescription() string + GetPath() string + GetProperties() (Schemas, error) + GetProperty(propertyKey string) (Schema, bool) + GetSelectionName() string + GetSelectListItems(key string) (Schema, string) + GetTitle() string + GetType() string + GetPropertySchema(key string) (Schema, error) + GetRequired() []string + GetAlias() string + GetSelectSchema(itemsKey, mediaType string) (Schema, string, error) + IsArrayRef() bool + IsBoolean() bool + IsFloat() bool + IsIntegral() bool + IsReadOnly() bool + IsRequired(key string) bool + ProcessHttpResponseTesting(r *http.Response, path string, defaultMediaType string, overrideMediaType string) (response.Response, error) + SetProperties(openapi3.Schemas) + SetType(string) + SetKey(string) + Tabulate(bool, string) Tabulation + ToDescriptionMap(extended bool) map[string]interface{} + GetSchemaAtPath(key string, mediaType string) (Schema, error) +} + +type Schemas map[string]Schema + +type TokenSemanticArgs map[string]interface{} + +type TokenTransformer func(interface{}) (interface{}, error) + +type TransformerLocator interface { + GetTransformer(tokenSemantic TokenSemantic) (TokenTransformer, error) +} + +type TokenSemantic interface { + JSONLookup(token string) (interface{}, error) + GetAlgorithm() string + GetArgs() TokenSemanticArgs + GetKey() string + GetLocation() string + GetTransformer() (TokenTransformer, error) + GetProcessedToken(res response.Response) (interface{}, error) +} + +type OperationTokens interface { + JSONLookup(token string) (interface{}, error) + GetTokenSemantic(key string) (TokenSemantic, bool) +} + +type OperationInverse interface { + JSONLookup(token string) (interface{}, error) + GetOperationStore() (StandardOperationStore, bool) + GetTokens() (OperationTokens, bool) + GetParamMap(response.Response) (map[string]interface{}, error) +} + +type AuthDTO interface { + JSONLookup(token string) (interface{}, error) + GetInlineBasicCredentials() string + GetType() string + GetKeyID() string + GetKeyIDEnvVar() string + GetKeyFilePath() string + GetKeyFilePathEnvVar() string + GetKeyEnvVar() string + GetScopes() []string + GetValuePrefix() string + GetEnvVarUsername() string + GetEnvVarPassword() string + GetEnvVarAPIKeyStr() string + GetEnvVarAPISecretStr() string + GetSuccessor() (AuthDTO, bool) + GetLocation() string + GetSubject() string + GetName() string + GetClientID() string + GetClientIDEnvVar() string + GetClientSecret() string + GetClientSecretEnvVar() string + GetTokenURL() string + GetGrantType() string + GetValues() url.Values + GetAuthStyle() int + GetAccountID() string + GetAccountIDEnvVar() string +} + +type Transform interface { + JSONLookup(token string) (interface{}, error) + GetAlgorithm() string + GetType() string + GetBody() string +} + +type View interface { + GetDDL() string + GetPredicate() string + GetNameNaive() string + GetRequiredParamNames() []string +} + +type StackQLConfig interface { + GetAuth() (AuthDTO, bool) + GetViewsForSqlDialect(sqlDialect string, viewName string) ([]View, bool) + GetQueryTranspose() (Transform, bool) + GetRequestTranslate() (Transform, bool) + GetRequestBodyTranslate() (Transform, bool) + GetPagination() (Pagination, bool) + GetVariations() (Variations, bool) + GetViews() map[string]View + GetExternalTables() map[string]SQLExternalTable + GetQueryParamPushdown() (QueryParamPushdown, bool) + GetMinStackQLVersion() string +} + +type QueryParamPushdown interface { + JSONLookup(token string) (interface{}, error) + GetSelect() (SelectPushdown, bool) + GetFilter() (FilterPushdown, bool) + GetOrderBy() (OrderByPushdown, bool) + GetTop() (TopPushdown, bool) + GetCount() (CountPushdown, bool) +} + +type SelectPushdown interface { + GetDialect() string + GetParamName() string + GetDelimiter() string + GetSupportedColumns() []string + IsColumnSupported(column string) bool +} + +// FilterPushdown represents configuration for WHERE clause filter pushdown +type FilterPushdown interface { + GetDialect() string + GetParamName() string + GetSyntax() string + GetSupportedOperators() []string + GetSupportedColumns() []string + IsOperatorSupported(operator string) bool + IsColumnSupported(column string) bool +} + +// OrderByPushdown represents configuration for ORDER BY clause pushdown +type OrderByPushdown interface { + GetDialect() string + GetParamName() string + GetSyntax() string + GetSupportedColumns() []string + IsColumnSupported(column string) bool +} + +// TopPushdown represents configuration for LIMIT clause pushdown +type TopPushdown interface { + GetDialect() string + GetParamName() string + GetMaxValue() int +} + +// CountPushdown represents configuration for SELECT COUNT(*) pushdown +type CountPushdown interface { + GetDialect() string + GetParamName() string + GetParamValue() string + GetResponseKey() string +} + +type Variations interface { + JSONLookup(token string) (interface{}, error) + IsObjectSchemaImplicitlyUnioned() bool +} + +type Pagination interface { + JSONLookup(token string) (interface{}, error) + GetRequestToken() TokenSemantic + GetResponseToken() TokenSemantic +} + +type GraphQL interface { + JSONLookup(token string) (interface{}, error) + GetCursorJSONPath() (string, bool) + GetResponseJSONPath() (string, bool) + GetID() string + GetQuery() string + GetURL() string + GetHTTPVerb() string + GetCursor() GraphQLElement + GetResponseSelection() GraphQLElement +} + +type GraphQLElement map[string]interface{} + +type SQLExternalColumn interface { + GetName() string + GetType() string + GetOid() uint32 + GetWidth() int + GetPrecision() int +} + +type SQLExternalTable interface { + GetCatalogName() string + GetSchemaName() string + GetName() string + GetColumns() []SQLExternalColumn +} + +type ExpectedRequest interface { + GetBodyMediaType() string + GetSchema() Schema + GetFinalSchema() Schema + GetRequired() []string + GetDefault() string + GetBase() string + GetXMLDeclaration() string + GetXMLTransform() string +} + +type ExpectedResponse interface { + GetBodyMediaType() string + GetOverrrideBodyMediaType() string + GetOpenAPIDocKey() string + GetObjectKey() string + GetSchema() Schema + GetProjectionMap() map[string]string + GetProjection(string) (string, bool) + GetTransform() (Transform, bool) +} + +type OperationStore interface { + ITable + GetMethodKey() string + GetSQLVerb() string + GetGraphQL() GraphQL + GetInverse() (OperationInverse, bool) + GetStackQLConfig() StackQLConfig + GetQueryParamPushdown() (QueryParamPushdown, bool) + GetParameters() map[string]Addressable + GetAPIMethod() string + GetInline() []string + GetRequest() (ExpectedRequest, bool) + GetResponse() (ExpectedResponse, bool) + GetServers() (openapi3.Servers, bool) + GetParameterizedPath() string + GetProviderService() ProviderService + GetProvider() Provider + GetService() OpenAPIService + SetAddressSpace(AddressSpace) + GetAddressSpace() (AddressSpace, bool) + GetResource() Resource + GetProjections() map[string]string + GetOperationParameter(key string) (Addressable, bool) + GetSelectSchemaAndObjectPath() (Schema, string, error) + GetFinalSelectSchemaAndObjectPath() (Schema, string, error) + ProcessResponse(*http.Response) (ProcessedOperationResponse, error) // to be removed + GetSelectItemsKey() string + GetResponseBodySchemaAndMediaType() (Schema, string, error) + GetFinalResponseBodySchemaAndMediaType() (Schema, string, error) + GetRequiredParameters() map[string]Addressable + GetOptionalParameters() map[string]Addressable + GetParameter(paramKey string) (Addressable, bool) + GetUnionRequiredParameters() (map[string]Addressable, error) + GetPaginationResponseTokenSemantic() (TokenSemantic, bool) + MarshalBody(body interface{}, expectedRequest ExpectedRequest) dto.MarshalledBody + GetRequestBodySchema() (Schema, error) + GetNonBodyParameters() map[string]Addressable + GetRequestBodyAttributesNoRename() (map[string]Addressable, error) + IsAwaitable() bool + DeprecatedProcessResponse(response *http.Response) (map[string]interface{}, error) + GetRequestTranslateAlgorithm() string + IsRequiredRequestBodyProperty(key string) bool + GetPaginationRequestTokenSemantic() (TokenSemantic, bool) + IsNullary() bool + ToPresentationMap(extended bool) map[string]interface{} + GetColumnOrder(extended bool) []string + RenameRequestBodyAttribute(string) (string, error) + RevertRequestBodyAttributeRename(string) (string, error) + IsRequestBodyAttributeRenamed(string) bool + GetRequiredNonBodyParameters() map[string]Addressable + ShouldBeSelectable() bool + GetServiceNameForProvider() string +} + +type AddressSpaceExpansionConfig interface { + IsAsync() bool + IsLegacy() bool + IsAllowNilResponse() bool +} + +type AddressSpace interface { + GetGlobalSelectSchemas() map[string]Schema + DereferenceAddress(address string) (any, bool) + WriteToAddress(address string, val any) error + ReadFromAddress(address string) (any, bool) + ResolveSignature(map[string]any) (bool, map[string]any) + Invoke(...any) error + ToMap(AddressSpaceExpansionConfig) (map[string]any, error) + ToRelation(AddressSpaceExpansionConfig) (Relation, error) +} + +type HTTPPreparatorConfig interface { + IsFromAnnotation() bool +} + +type HTTPPreparator interface { + BuildHTTPRequestCtx(HTTPPreparatorConfig) (HTTPArmoury, error) +} + +type ParameterBinding interface { + GetParam() Addressable + GetVal() interface{} +} + +type HttpParameters interface { + Encode() string + IngestMap(map[string]interface{}) error + StoreParameter(Addressable, interface{}) + ToFlatMap() (map[string]interface{}, error) + GetParameter(paramName, paramIn string) (ParameterBinding, bool) + GetRemainingQueryParamsFlatMap(keysRemaining map[string]interface{}) (map[string]interface{}, error) + GetServerParameterFlatMap() (map[string]interface{}, error) + GetContextParameterFlatMap() (map[string]interface{}, error) + SetResponseBodyParam(key string, val interface{}) + SetServerParam(key string, svc OpenAPIService, val interface{}) + SetRequestBodyParam(key string, val interface{}) + SetRequestBody(map[string]interface{}) + GetRequestBody() map[string]interface{} + GetInlineParameterFlatMap() (map[string]interface{}, error) +} + +type Service interface { + IsPreferred() bool + GetServers() (openapi3.Servers, bool) // Difficult to remove, not impossible. + GetResources() (map[string]Resource, error) + GetName() string + GetResource(resourceName string) (Resource, error) + GetSchema(key string) (Schema, error) +} + +type OperationSelector interface { + GetSQLVerb() string + GetParameters() map[string]interface{} +} + +type Methods interface { + FindFromSelector(sel OperationSelector) (StandardOperationStore, error) + OrderMethods() ([]StandardOperationStore, error) + FindMethod(key string) (StandardOperationStore, error) +} + +type Resource interface { + ITable + GetID() string + GetTitle() string + GetDescription() string + GetSelectorAlgorithm() string + GetMethods() Methods + GetRequestTranslateAlgorithm() string + GetPaginationRequestTokenSemantic() (TokenSemantic, bool) + GetPaginationResponseTokenSemantic() (TokenSemantic, bool) + GetQueryParamPushdown() (QueryParamPushdown, bool) + FindMethod(key string) (StandardOperationStore, error) + GetFirstMethodFromSQLVerb(sqlVerb string) (StandardOperationStore, string, bool) + GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb string, parameters map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) + GetService() (OpenAPIService, bool) + GetProvider() (Provider, bool) + GetViewsForSqlDialect(sqlDialect string) ([]View, bool) + GetMethodsMatched() Methods + ToMap(extended bool) map[string]interface{} +} + +type ProviderService interface { + ITable + GetProvider() (Provider, bool) + GetProtocolType() (client.ClientProtocolType, error) + GetService() (Service, error) + GetRequestTranslateAlgorithm() string + GetResourcesShallow() (ResourceRegister, error) + GetPaginationRequestTokenSemantic() (TokenSemantic, bool) + GetQueryParamPushdown() (QueryParamPushdown, bool) + ConditionIsValid(lhs string, rhs interface{}) bool + GetID() string + GetServiceFragment(resourceKey string) (Service, error) + GetResourcesRefRef() string + PeekServiceFragment(resourceKey string) (Service, bool) + SetServiceRefVal(Service) bool + IsPreferred() bool + GetTitle() string + GetVersion() string + GetDescription() string + GetServiceRefRef() string +} + +type ResourceRegister interface { + ObtainServiceDocUrl(resourceKey string) string + SetProviderService(ps ProviderService) + SetProvider(p Provider) + GetResources() map[string]Resource + GetResource(string) (Resource, bool) +} + +type Provider interface { + GetMinStackQLVersion() string + GetProtocolType() (client.ClientProtocolType, error) + GetProtocolTypeString() string + Debug() string + GetAuth() (AuthDTO, bool) + GetDeleteItemsKey() string + GetName() string + GetProviderServices() map[string]ProviderService + GetPaginationRequestTokenSemantic() (TokenSemantic, bool) + GetPaginationResponseTokenSemantic() (TokenSemantic, bool) + GetQueryParamPushdown() (QueryParamPushdown, bool) + GetProviderService(key string) (ProviderService, error) + getQueryTransposeAlgorithm() string + GetRequestTranslateAlgorithm() string + GetResourcesShallow(serviceKey string) (ResourceRegister, error) + GetStackQLConfig() (StackQLConfig, bool) + JSONLookup(token string) (interface{}, error) + MarshalJSON() ([]byte, error) + UnmarshalJSON(data []byte) error +} + +type OpenAPIService interface { + Service +} + +type HTTPArmouryParameters interface { + Encode() string + GetBodyBytes() []byte + GetHeader() http.Header + GetParameters() HttpParameters + GetQuery() url.Values + GetRequest() *http.Request + GetArgList() client.AnySdkArgList + SetBodyBytes(b []byte) + SetHeaderKV(k string, v []string) + SetNextPage(ops OperationStore, token string, tokenKey internaldto.HTTPElement) (*http.Request, error) + SetParameters(HttpParameters) + SetRawQuery(string) + SetRequest(*http.Request) + SetRequestBodyMap(BodyMap) + ToFlatMap() (map[string]interface{}, error) +} + +type BodyMap map[string]interface{} + +type HTTPArmoury interface { + AddRequestParams(HTTPArmouryParameters) + GetRequestParams() []HTTPArmouryParameters + GetRequestSchema() Schema + GetResponseSchema() Schema + SetRequestParams([]HTTPArmouryParameters) + SetRequestSchema(Schema) + SetResponseSchema(Schema) +} + +type ProcessedOperationResponse interface { + GetResponse() (response.Response, bool) + GetReversal() (HTTPPreparator, bool) +} + +type StandardOperationStore interface { + OperationStore + // Assist analysis + GetSchemaAtPath(key string) (Schema, error) + GetSelectItemsKeySimple() string + LookupSelectItemsKey() string + // + GetRequestBodyMediaType() string + GetRequestBodyMediaTypeNormalised() string + getRequestBodyMediaTypeNormalised() string + GetXMLDeclaration() string + GetXMLRootAnnotation() string + GetXMLTransform() string + // getRequestBodyAttributeLineage(string) (string, error) +} + +type ITable interface { + GetName() string + KeyExists(string) bool + GetKey(string) (interface{}, error) + GetKeyAsSqlVal(string) (sqltypes.Value, error) + GetRequiredParameters() map[string]Addressable + FilterBy(func(interface{}) (ITable, error)) (ITable, error) +} + +type Relation interface { + GetColumns() []Column + GetColumnDescriptors() []ColumnDescriptor +} + +type Column interface { + GetName() string + GetSchema() Schema + GetWidth() int +} From 8a817d52bcd06fec0be4688950d6465b89cd519a Mon Sep 17 00:00:00 2001 From: General Kroll Date: Wed, 18 Feb 2026 19:25:19 +1100 Subject: [PATCH 02/64] monster-awakens --- anysdk/auth_dto.go | 7 ++++--- anysdk/config.go | 5 +++-- anysdk/provider.go | 5 +++-- cmd/argparse/query.go | 3 ++- pkg/surface/surface.go | 1 - 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/anysdk/auth_dto.go b/anysdk/auth_dto.go index 7b7c523..0c9054e 100644 --- a/anysdk/auth_dto.go +++ b/anysdk/auth_dto.go @@ -6,11 +6,12 @@ import ( "net/url" "github.com/go-openapi/jsonpointer" + "github.com/stackql/any-sdk/pkg/surface" ) var ( - _ jsonpointer.JSONPointable = (AuthDTO)(standardAuthDTO{}) - _ AuthDTO = standardAuthDTO{} + _ jsonpointer.JSONPointable = (surface.AuthDTO)(standardAuthDTO{}) + _ surface.AuthDTO = standardAuthDTO{} ) type AuthDTO interface { @@ -129,7 +130,7 @@ func (qt standardAuthDTO) GetLocation() string { return qt.Location } -func (qt standardAuthDTO) GetSuccessor() (AuthDTO, bool) { +func (qt standardAuthDTO) GetSuccessor() (surface.AuthDTO, bool) { return qt.Successor, qt.Successor != nil } diff --git a/anysdk/config.go b/anysdk/config.go index ef93516..6f300e2 100644 --- a/anysdk/config.go +++ b/anysdk/config.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/go-openapi/jsonpointer" + "github.com/stackql/any-sdk/pkg/surface" ) var ( @@ -12,7 +13,7 @@ var ( ) type StackQLConfig interface { - GetAuth() (AuthDTO, bool) + GetAuth() (surface.AuthDTO, bool) GetViewsForSqlDialect(sqlDialect string, viewName string) ([]View, bool) GetQueryTranspose() (Transform, bool) GetRequestTranslate() (Transform, bool) @@ -134,7 +135,7 @@ func (cfg *standardStackQLConfig) GetView(viewName string) (View, bool) { return nil, false } -func (cfg *standardStackQLConfig) GetAuth() (AuthDTO, bool) { +func (cfg *standardStackQLConfig) GetAuth() (surface.AuthDTO, bool) { return cfg.Auth, cfg.Auth != nil } diff --git a/anysdk/provider.go b/anysdk/provider.go index b41cd7b..86f5dd6 100644 --- a/anysdk/provider.go +++ b/anysdk/provider.go @@ -7,6 +7,7 @@ import ( "github.com/getkin/kin-openapi/openapi3" "github.com/go-openapi/jsonpointer" "github.com/stackql/any-sdk/pkg/client" + "github.com/stackql/any-sdk/pkg/surface" ) var ( @@ -23,7 +24,7 @@ type Provider interface { GetProtocolType() (client.ClientProtocolType, error) GetProtocolTypeString() string Debug() string - GetAuth() (AuthDTO, bool) + GetAuth() (surface.AuthDTO, bool) GetDeleteItemsKey() string GetName() string GetProviderServices() map[string]ProviderService @@ -57,7 +58,7 @@ type standardProvider struct { StackQLConfig *standardStackQLConfig `json:"config,omitempty" yaml:"config,omitempty"` } -func (pr *standardProvider) GetAuth() (AuthDTO, bool) { +func (pr *standardProvider) GetAuth() (surface.AuthDTO, bool) { if pr.StackQLConfig != nil { return pr.StackQLConfig.GetAuth() } diff --git a/cmd/argparse/query.go b/cmd/argparse/query.go index d9f804e..40b189b 100644 --- a/cmd/argparse/query.go +++ b/cmd/argparse/query.go @@ -19,6 +19,7 @@ import ( "github.com/stackql/any-sdk/pkg/internaldto" "github.com/stackql/any-sdk/pkg/local_template_executor" "github.com/stackql/any-sdk/pkg/stream_transform" + "github.com/stackql/any-sdk/pkg/surface" ) func getLogger() *logrus.Logger { @@ -268,7 +269,7 @@ func runQueryCommand(authCtx *dto.AuthCtx, payload *queryCmdPayload) error { } } -func transformOpenapiStackqlAuthToLocal(authDTO anysdk.AuthDTO) *dto.AuthCtx { +func transformOpenapiStackqlAuthToLocal(authDTO surface.AuthDTO) *dto.AuthCtx { rv := &dto.AuthCtx{ Scopes: authDTO.GetScopes(), Subject: authDTO.GetSubject(), diff --git a/pkg/surface/surface.go b/pkg/surface/surface.go index 80ad00a..ee6668c 100644 --- a/pkg/surface/surface.go +++ b/pkg/surface/surface.go @@ -46,7 +46,6 @@ type Tabulation interface { type Schema interface { SetDefaultColName(string) - getDefaultColName() string ConditionIsValid(lhs string, rhs interface{}) bool DeprecatedProcessHttpResponse(response *http.Response, path string) (map[string]interface{}, error) FindByPath(path string, visited map[string]bool) Schema From b93d8da69c3807763afdf952ce6c584333a8a67a Mon Sep 17 00:00:00 2001 From: General Kroll Date: Thu, 19 Feb 2026 09:30:53 +1100 Subject: [PATCH 03/64] slow-progress --- docs/surfacewrap_plan/thin_interfaces.md | 798 +++++++++++++++++++++ docs/surfacewrap_plan/wrapper_checklist.md | 75 ++ pkg/surface/surface.go | 3 - 3 files changed, 873 insertions(+), 3 deletions(-) create mode 100644 docs/surfacewrap_plan/thin_interfaces.md create mode 100644 docs/surfacewrap_plan/wrapper_checklist.md diff --git a/docs/surfacewrap_plan/thin_interfaces.md b/docs/surfacewrap_plan/thin_interfaces.md new file mode 100644 index 0000000..328ced5 --- /dev/null +++ b/docs/surfacewrap_plan/thin_interfaces.md @@ -0,0 +1,798 @@ +# StackQL live any-sdk receiver method usage + +Generated from `surface_usage.txt` (typed selection analysis). Each section below is a **thin interface** you can define in `pkg/surface` and then implement via wrappers in `public/formulation`. + +## Exhaustive thin interface list + +### AuthMetadata + +- receiver: `*github.com/stackql/any-sdk/anysdk.AuthMetadata` + +- methods: + + - `GetHeaders func() []string` + - `ToMap func() map[string]interface{}` + +### AuthCtx + +- receiver: `*github.com/stackql/any-sdk/pkg/dto.AuthCtx` + +- methods: + + - `Clone func() *github.com/stackql/any-sdk/pkg/dto.AuthCtx` + - `GetCredentialsBytes func() ([]byte, error)` + - `GetCredentialsSourceDescriptorString func() string` + - `GetSQLCfg func() (github.com/stackql/any-sdk/pkg/dto.SQLBackendCfg, bool)` + - `HasKey func() bool` + +### RuntimeCtx + +- receiver: `*github.com/stackql/any-sdk/pkg/dto.RuntimeCtx` + +- methods: + + - `Set func(key string, val string) error` + +### AddressSpace + +- receiver: `github.com/stackql/any-sdk/anysdk.AddressSpace` + +- methods: + + - `ToRelation func(github.com/stackql/any-sdk/anysdk.AddressSpaceExpansionConfig) (github.com/stackql/any-sdk/anysdk.Relation, error)` + +### Addressable + +- receiver: `github.com/stackql/any-sdk/anysdk.Addressable` + +- methods: + + - `ConditionIsValid func(lhs string, rhs interface{}) bool` + - `GetName func() string` + - `GetType func() string` + +### Column + +- receiver: `github.com/stackql/any-sdk/anysdk.Column` + +- methods: + + - `GetName func() string` + - `GetSchema func() github.com/stackql/any-sdk/anysdk.Schema` + - `GetWidth func() int` + +### ExpectedRequest + +- receiver: `github.com/stackql/any-sdk/anysdk.ExpectedRequest` + +- methods: + + - `GetBodyMediaType func() string` + +### ExpectedResponse + +- receiver: `github.com/stackql/any-sdk/anysdk.ExpectedResponse` + +- methods: + + - `GetObjectKey func() string` + - `GetTransform func() (github.com/stackql/any-sdk/anysdk.Transform, bool)` + +### GraphQL + +- receiver: `github.com/stackql/any-sdk/anysdk.GraphQL` + +- methods: + + - `GetCursorJSONPath func() (string, bool)` + - `GetQuery func() string` + - `GetResponseJSONPath func() (string, bool)` + +### HTTPArmoury + +- receiver: `github.com/stackql/any-sdk/anysdk.HTTPArmoury` + +- methods: + + - `GetRequestParams func() []github.com/stackql/any-sdk/anysdk.HTTPArmouryParameters` + - `SetRequestParams func([]github.com/stackql/any-sdk/anysdk.HTTPArmouryParameters)` + +### HTTPArmouryParameters + +- receiver: `github.com/stackql/any-sdk/anysdk.HTTPArmouryParameters` + +- methods: + + - `Encode func() string` + - `GetArgList func() github.com/stackql/any-sdk/pkg/client.AnySdkArgList` + - `GetParameters func() github.com/stackql/any-sdk/anysdk.HttpParameters` + - `GetQuery func() net/url.Values` + - `GetRequest func() *net/http.Request` + - `SetNextPage func(ops github.com/stackql/any-sdk/anysdk.OperationStore, token string, tokenKey github.com/stackql/any-sdk/pkg/internaldto.HTTPElement) (*net/http.Request, error)` + - `SetRawQuery func(string)` + - `ToFlatMap func() (map[string]interface{}, error)` + +### HTTPPreparator + +- receiver: `github.com/stackql/any-sdk/anysdk.HTTPPreparator` + +- methods: + + - `BuildHTTPRequestCtx func(github.com/stackql/any-sdk/anysdk.HTTPPreparatorConfig) (github.com/stackql/any-sdk/anysdk.HTTPArmoury, error)` + +### HttpParameters + +- receiver: `github.com/stackql/any-sdk/anysdk.HttpParameters` + +- methods: + + - `GetInlineParameterFlatMap func() (map[string]interface{}, error)` + - `ToFlatMap func() (map[string]interface{}, error)` + +### HttpPreparatorStream + +- receiver: `github.com/stackql/any-sdk/anysdk.HttpPreparatorStream` + +- methods: + + - `Next func() (github.com/stackql/any-sdk/anysdk.HTTPPreparator, bool)` + - `Write func(github.com/stackql/any-sdk/anysdk.HTTPPreparator) error` + +### ITable + +- receiver: `github.com/stackql/any-sdk/anysdk.ITable` + +- methods: + + - `GetKey func(string) (interface{}, error)` + - `GetKeyAsSqlVal func(string) (github.com/stackql/stackql-parser/go/sqltypes.Value, error)` + - `GetName func() string` + - `KeyExists func(string) bool` + +### MethodAnalysisOutput + +- receiver: `github.com/stackql/any-sdk/anysdk.MethodAnalysisOutput` + +- methods: + + - `GetInsertTabulation func() github.com/stackql/any-sdk/anysdk.Tabulation` + - `GetItemSchema func() (github.com/stackql/any-sdk/anysdk.Schema, bool)` + - `GetOrderedStarColumnsNames func() ([]string, error)` + - `GetSelectTabulation func() github.com/stackql/any-sdk/anysdk.Tabulation` + - `IsAwait func() bool` + - `IsNilResponseAllowed func() bool` + +### MethodAnalyzer + +- receiver: `github.com/stackql/any-sdk/anysdk.MethodAnalyzer` + +- methods: + + - `AnalyzeUnaryAction func(github.com/stackql/any-sdk/anysdk.MethodAnalysisInput) (github.com/stackql/any-sdk/anysdk.MethodAnalysisOutput, error)` + +### Methods + +- receiver: `github.com/stackql/any-sdk/anysdk.Methods` + +- methods: + + - `OrderMethods func() ([]github.com/stackql/any-sdk/anysdk.StandardOperationStore, error)` + +### OperationInverse + +- receiver: `github.com/stackql/any-sdk/anysdk.OperationInverse` + +- methods: + + - `GetOperationStore func() (github.com/stackql/any-sdk/anysdk.StandardOperationStore, bool)` + +### OperationStore + +- receiver: `github.com/stackql/any-sdk/anysdk.OperationStore` + +- methods: + + - `DeprecatedProcessResponse func(response *net/http.Response) (map[string]interface{}, error)` + - `GetName func() string` + - `GetNonBodyParameters func() map[string]github.com/stackql/any-sdk/anysdk.Addressable` + - `GetPaginationRequestTokenSemantic func() (github.com/stackql/any-sdk/anysdk.TokenSemantic, bool)` + - `GetPaginationResponseTokenSemantic func() (github.com/stackql/any-sdk/anysdk.TokenSemantic, bool)` + - `GetParameter func(paramKey string) (github.com/stackql/any-sdk/anysdk.Addressable, bool)` + - `GetRequestBodySchema func() (github.com/stackql/any-sdk/anysdk.Schema, error)` + - `GetRequiredNonBodyParameters func() map[string]github.com/stackql/any-sdk/anysdk.Addressable` + - `GetRequiredParameters func() map[string]github.com/stackql/any-sdk/anysdk.Addressable` + - `GetResource func() github.com/stackql/any-sdk/anysdk.Resource` + - `GetResponseBodySchemaAndMediaType func() (github.com/stackql/any-sdk/anysdk.Schema, string, error)` + - `GetSelectItemsKey func() string` + - `GetService func() github.com/stackql/any-sdk/anysdk.OpenAPIService` + - `IsRequestBodyAttributeRenamed func(string) bool` + - `IsRequiredRequestBodyProperty func(key string) bool` + - `ProcessResponse func(*net/http.Response) (github.com/stackql/any-sdk/anysdk.ProcessedOperationResponse, error)` + - `RenameRequestBodyAttribute func(string) (string, error)` + - `RevertRequestBodyAttributeRename func(string) (string, error)` + +### ProcessedOperationResponse + +- receiver: `github.com/stackql/any-sdk/anysdk.ProcessedOperationResponse` + +- methods: + + - `GetResponse func() (github.com/stackql/any-sdk/pkg/response.Response, bool)` + - `GetReversal func() (github.com/stackql/any-sdk/anysdk.HTTPPreparator, bool)` + +### Provider + +- receiver: `github.com/stackql/any-sdk/anysdk.Provider` + +- methods: + + - `GetAuth func() (github.com/stackql/any-sdk/pkg/surface.AuthDTO, bool)` + - `GetDeleteItemsKey func() string` + - `GetMinStackQLVersion func() string` + - `GetName func() string` + - `GetProtocolType func() (github.com/stackql/any-sdk/pkg/client.ClientProtocolType, error)` + +### ProviderDescription + +- receiver: `github.com/stackql/any-sdk/anysdk.ProviderDescription` + +- methods: + + - `GetLatestVersion func() (string, error)` + +### ProviderService + +- receiver: `github.com/stackql/any-sdk/anysdk.ProviderService` + +- methods: + + - `GetDescription func() string` + - `GetID func() string` + - `GetName func() string` + - `GetTitle func() string` + - `GetVersion func() string` + - `IsPreferred func() bool` + +### RegistryAPI + +- receiver: `github.com/stackql/any-sdk/anysdk.RegistryAPI` + +- methods: + + - `ClearProviderCache func(string) error` + - `GetLatestPublishedVersion func(string) (string, error)` + - `ListAllAvailableProviders func() (map[string]github.com/stackql/any-sdk/anysdk.ProviderDescription, error)` + - `ListAllProviderVersions func(string) (map[string]github.com/stackql/any-sdk/anysdk.ProviderDescription, error)` + - `ListLocallyAvailableProviders func() map[string]github.com/stackql/any-sdk/anysdk.ProviderDescription` + - `LoadProviderByName func(string, string) (github.com/stackql/any-sdk/anysdk.Provider, error)` + - `PullAndPersistProviderArchive func(string, string) error` + - `RemoveProviderVersion func(string, string) error` + +### Relation + +- receiver: `github.com/stackql/any-sdk/anysdk.Relation` + +- methods: + + - `GetColumnDescriptors func() []github.com/stackql/any-sdk/anysdk.ColumnDescriptor` + - `GetColumns func() []github.com/stackql/any-sdk/anysdk.Column` + +### Resource + +- receiver: `github.com/stackql/any-sdk/anysdk.Resource` + +- methods: + + - `FindMethod func(key string) (github.com/stackql/any-sdk/anysdk.StandardOperationStore, error)` + - `GetFirstMethodFromSQLVerb func(sqlVerb string) (github.com/stackql/any-sdk/anysdk.StandardOperationStore, string, bool)` + - `GetFirstNamespaceMethodMatchFromSQLVerb func(sqlVerb string, parameters map[string]interface{}) (github.com/stackql/any-sdk/anysdk.StandardOperationStore, map[string]interface{}, bool)` + - `GetID func() string` + - `GetMethodsMatched func() github.com/stackql/any-sdk/anysdk.Methods` + - `GetName func() string` + - `GetViewsForSqlDialect func(sqlDialect string) ([]github.com/stackql/any-sdk/anysdk.View, bool)` + - `ToMap func(extended bool) map[string]interface{}` + +### SQLExternalColumn + +- receiver: `github.com/stackql/any-sdk/anysdk.SQLExternalColumn` + +- methods: + + - `GetName func() string` + - `GetOid func() uint32` + - `GetPrecision func() int` + - `GetType func() string` + - `GetWidth func() int` + +### SQLExternalTable + +- receiver: `github.com/stackql/any-sdk/anysdk.SQLExternalTable` + +- methods: + + - `GetCatalogName func() string` + - `GetColumns func() []github.com/stackql/any-sdk/anysdk.SQLExternalColumn` + - `GetName func() string` + - `GetSchemaName func() string` + +### Schema + +- receiver: `github.com/stackql/any-sdk/anysdk.Schema` + +- methods: + + - `FindByPath func(path string, visited map[string]bool) github.com/stackql/any-sdk/anysdk.Schema` + - `GetAdditionalProperties func() (github.com/stackql/any-sdk/anysdk.Schema, bool)` + - `GetAllColumns func(string) []string` + - `GetItemsSchema func() (github.com/stackql/any-sdk/anysdk.Schema, error)` + - `GetName func() string` + - `GetProperties func() (github.com/stackql/any-sdk/anysdk.Schemas, error)` + - `GetProperty func(propertyKey string) (github.com/stackql/any-sdk/anysdk.Schema, bool)` + - `GetPropertySchema func(key string) (github.com/stackql/any-sdk/anysdk.Schema, error)` + - `GetSelectSchema func(itemsKey string, mediaType string) (github.com/stackql/any-sdk/anysdk.Schema, string, error)` + - `GetSelectionName func() string` + - `GetTitle func() string` + - `GetType func() string` + - `IsBoolean func() bool` + - `IsFloat func() bool` + - `IsIntegral func() bool` + - `IsReadOnly func() bool` + - `IsRequired func(key string) bool` + - `SetKey func(string)` + - `Tabulate func(bool, string) github.com/stackql/any-sdk/anysdk.Tabulation` + - `ToDescriptionMap func(extended bool) map[string]interface{}` + +### Service + +- receiver: `github.com/stackql/any-sdk/anysdk.Service` + +- methods: + + - `GetResource func(resourceName string) (github.com/stackql/any-sdk/anysdk.Resource, error)` + - `GetSchema func(key string) (github.com/stackql/any-sdk/anysdk.Schema, error)` + - `GetServers func() (github.com/getkin/kin-openapi/openapi3.Servers, bool)` + +### StandardOperationStore + +- receiver: `github.com/stackql/any-sdk/anysdk.StandardOperationStore` + +- methods: + + - `GetAddressSpace func() (github.com/stackql/any-sdk/anysdk.AddressSpace, bool)` + - `GetColumnOrder func(extended bool) []string` + - `GetGraphQL func() github.com/stackql/any-sdk/anysdk.GraphQL` + - `GetInline func() []string` + - `GetInverse func() (github.com/stackql/any-sdk/anysdk.OperationInverse, bool)` + - `GetName func() string` + - `GetOptionalParameters func() map[string]github.com/stackql/any-sdk/anysdk.Addressable` + - `GetPaginationRequestTokenSemantic func() (github.com/stackql/any-sdk/anysdk.TokenSemantic, bool)` + - `GetPaginationResponseTokenSemantic func() (github.com/stackql/any-sdk/anysdk.TokenSemantic, bool)` + - `GetParameter func(paramKey string) (github.com/stackql/any-sdk/anysdk.Addressable, bool)` + - `GetProjections func() map[string]string` + - `GetRequest func() (github.com/stackql/any-sdk/anysdk.ExpectedRequest, bool)` + - `GetRequestBodySchema func() (github.com/stackql/any-sdk/anysdk.Schema, error)` + - `GetRequiredParameters func() map[string]github.com/stackql/any-sdk/anysdk.Addressable` + - `GetResponse func() (github.com/stackql/any-sdk/anysdk.ExpectedResponse, bool)` + - `GetResponseBodySchemaAndMediaType func() (github.com/stackql/any-sdk/anysdk.Schema, string, error)` + - `GetSelectItemsKey func() string` + - `GetSelectSchemaAndObjectPath func() (github.com/stackql/any-sdk/anysdk.Schema, string, error)` + - `GetServers func() (github.com/getkin/kin-openapi/openapi3.Servers, bool)` + - `IsAwaitable func() bool` + - `IsNullary func() bool` + - `ToPresentationMap func(extended bool) map[string]interface{}` + +### Tabulation + +- receiver: `github.com/stackql/any-sdk/anysdk.Tabulation` + +- methods: + + - `GetColumns func() []github.com/stackql/any-sdk/anysdk.ColumnDescriptor` + - `PushBackColumn func(col github.com/stackql/any-sdk/anysdk.ColumnDescriptor)` + - `RenameColumnsToXml func() github.com/stackql/any-sdk/anysdk.Tabulation` + +### TokenSemantic + +- receiver: `github.com/stackql/any-sdk/anysdk.TokenSemantic` + +- methods: + + - `GetKey func() string` + - `GetLocation func() string` + - `GetTransformer func() (github.com/stackql/any-sdk/anysdk.TokenTransformer, error)` + +### Transform + +- receiver: `github.com/stackql/any-sdk/anysdk.Transform` + +- methods: + + - `GetBody func() string` + - `GetType func() string` + +### View + +- receiver: `github.com/stackql/any-sdk/anysdk.View` + +- methods: + + - `GetDDL func() string` + - `GetNameNaive func() string` + - `GetRequiredParamNames func() []string` + +### AuthUtility + +- receiver: `github.com/stackql/any-sdk/pkg/auth_util.AuthUtility` + +- methods: + + - `ActivateAuth func(authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, principal string, authType string)` + - `ApiTokenAuth func(authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, httpContext github.com/stackql/any-sdk/pkg/netutils.HTTPContext, enforceBearer bool) (*net/http.Client, error)` + - `AuthRevoke func(authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx) error` + - `AwsSigningAuth func(authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, httpContext github.com/stackql/any-sdk/pkg/netutils.HTTPContext) (*net/http.Client, error)` + - `AzureDefaultAuth func(authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, httpContext github.com/stackql/any-sdk/pkg/netutils.HTTPContext) (*net/http.Client, error)` + - `BasicAuth func(authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, httpContext github.com/stackql/any-sdk/pkg/netutils.HTTPContext) (*net/http.Client, error)` + - `CustomAuth func(authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, httpContext github.com/stackql/any-sdk/pkg/netutils.HTTPContext) (*net/http.Client, error)` + - `GCloudOAuth func(runtimeCtx github.com/stackql/any-sdk/pkg/dto.RuntimeCtx, authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, enforceRevokeFirst bool) (*net/http.Client, error)` + - `GenericOauthClientCredentials func(authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, scopes []string, httpContext github.com/stackql/any-sdk/pkg/netutils.HTTPContext) (*net/http.Client, error)` + - `GetCurrentGCloudOauthUser func() ([]byte, error)` + - `GoogleOauthServiceAccount func(provider string, authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, scopes []string, httpContext github.com/stackql/any-sdk/pkg/netutils.HTTPContext) (*net/http.Client, error)` + - `ParseServiceAccountFile func(ac *github.com/stackql/any-sdk/pkg/dto.AuthCtx) (github.com/stackql/any-sdk/pkg/auth_util.serviceAccount, error)` + +### AnySdkClientConfigurator + +- receiver: `github.com/stackql/any-sdk/pkg/client.AnySdkClientConfigurator` + +- methods: + + - `Auth func(authCtx *github.com/stackql/any-sdk/pkg/dto.AuthCtx, authTypeRequested string, enforceRevokeFirst bool) (github.com/stackql/any-sdk/pkg/client.AnySdkClient, error)` + +### AnySdkResponse + +- receiver: `github.com/stackql/any-sdk/pkg/client.AnySdkResponse` + +- methods: + + - `GetHttpResponse func() (*net/http.Response, error)` + +### ControlAttributes + +- receiver: `github.com/stackql/any-sdk/pkg/db/sqlcontrol.ControlAttributes` + +- methods: + + - `GetControlGCStatusColumnName func() string` + - `GetControlGenIDColumnName func() string` + - `GetControlInsIDColumnName func() string` + - `GetControlInsertEncodedIDColumnName func() string` + - `GetControlLatestUpdateColumnName func() string` + - `GetControlMaxTxnColumnName func() string` + - `GetControlSsnIDColumnName func() string` + - `GetControlTxnIDColumnName func() string` + +### AuthContexts + +- receiver: `github.com/stackql/any-sdk/pkg/dto.AuthContexts` + +- methods: + + - `Clone func() github.com/stackql/any-sdk/pkg/dto.AuthContexts` + +### DataFlowCfg + +- receiver: `github.com/stackql/any-sdk/pkg/dto.DataFlowCfg` + +- methods: + + - `GetMaxDependencies func() int` + +### NamespaceCfg + +- receiver: `github.com/stackql/any-sdk/pkg/dto.NamespaceCfg` + +- methods: + + - `GetRegex func() (*regexp.Regexp, error)` + - `GetTemplate func() (*text/template.Template, error)` + +### OutputPacket + +- receiver: `github.com/stackql/any-sdk/pkg/dto.OutputPacket` + +- methods: + + - `GetColumnNames func() []string` + - `GetColumnOIDs func() []github.com/lib/pq/oid.Oid` + - `GetRawRows func() map[int]map[int]interface{}` + - `GetRows func() map[string]map[string]interface{}` + +### PgTLSCfg + +- receiver: `github.com/stackql/any-sdk/pkg/dto.PgTLSCfg` + +- methods: + + - `GetKeyPair func() (crypto/tls.Certificate, error)` + +### RuntimeCtx + +- receiver: `github.com/stackql/any-sdk/pkg/dto.RuntimeCtx` + +- methods: + + - `Copy func() github.com/stackql/any-sdk/pkg/dto.RuntimeCtx` + +### SQLBackendCfg + +- receiver: `github.com/stackql/any-sdk/pkg/dto.SQLBackendCfg` + +- methods: + + - `GetDatabaseName func() (string, error)` + - `GetIntelViewSchemaName func() string` + - `GetOpsViewSchemaName func() string` + - `GetSQLDialect func() string` + - `GetSchemaType func() string` + - `GetTableSchemaName func() string` + +### SessionContext + +- receiver: `github.com/stackql/any-sdk/pkg/dto.SessionContext` + +- methods: + + - `GetIsolationLevel func() github.com/stackql/any-sdk/pkg/constants.IsolationLevel` + - `GetRollbackType func() github.com/stackql/any-sdk/pkg/constants.RollbackType` + - `UpdateIsolationLevel func(string) error` + +### TxnCoordinatorCfg + +- receiver: `github.com/stackql/any-sdk/pkg/dto.TxnCoordinatorCfg` + +- methods: + + - `GetMaxTxnDepth func() int` + +### GQLReader + +- receiver: `github.com/stackql/any-sdk/pkg/graphql.GQLReader` + +- methods: + + - `Read func() ([]map[string]interface{}, error)` + +### ExecPayload + +- receiver: `github.com/stackql/any-sdk/pkg/internaldto.ExecPayload` + +- methods: + + - `GetPayloadMap func() map[string]interface{}` + +### HTTPElement + +- receiver: `github.com/stackql/any-sdk/pkg/internaldto.HTTPElement` + +- methods: + + - `GetName func() string` + - `GetType func() github.com/stackql/any-sdk/pkg/internaldto.HTTPElementType` + - `IsTransformerPresent func() bool` + - `SetTransformer func(transformer func(interface{}) (interface{}, error))` + - `Transformer func(interface{}) (interface{}, error)` + +### ExecutionResponse + +- receiver: `github.com/stackql/any-sdk/pkg/local_template_executor.ExecutionResponse` + +- methods: + + - `GetStdErr func() (*bytes.Buffer, bool)` + - `GetStdOut func() (*bytes.Buffer, bool)` + +### Executor + +- receiver: `github.com/stackql/any-sdk/pkg/local_template_executor.Executor` + +- methods: + + - `Execute func(map[string]any) (github.com/stackql/any-sdk/pkg/local_template_executor.ExecutionResponse, error)` + +### NameMangler + +- receiver: `github.com/stackql/any-sdk/pkg/name_mangle.NameMangler` + +- methods: + + - `MangleName func(string, ...any) string` + +### ActionInsertPayload + +- receiver: `github.com/stackql/any-sdk/pkg/providerinvoker.ActionInsertPayload` + +- methods: + + - `GetItemisationResult func() github.com/stackql/any-sdk/pkg/providerinvoker.ItemisationResult` + - `GetParamsUsed func() map[string]interface{}` + - `GetReqEncoding func() string` + - `GetTableName func() string` + - `IsHousekeepingDone func() bool` + +### ActionInsertResult + +- receiver: `github.com/stackql/any-sdk/pkg/providerinvoker.ActionInsertResult` + +- methods: + + - `GetError func() (error, bool)` + - `IsHousekeepingDone func() bool` + +### InsertPreparator + +- receiver: `github.com/stackql/any-sdk/pkg/providerinvoker.InsertPreparator` + +- methods: + + - `ActionInsertPreparation func(payload github.com/stackql/any-sdk/pkg/providerinvoker.ActionInsertPayload) github.com/stackql/any-sdk/pkg/providerinvoker.ActionInsertResult` + +### Invoker + +- receiver: `github.com/stackql/any-sdk/pkg/providerinvoker.Invoker` + +- methods: + + - `Invoke func(ctx context.Context, req github.com/stackql/any-sdk/pkg/providerinvoker.Request) (github.com/stackql/any-sdk/pkg/providerinvoker.Result, error)` + +### ItemisationResult + +- receiver: `github.com/stackql/any-sdk/pkg/providerinvoker.ItemisationResult` + +- methods: + + - `GetItems func() (interface{}, bool)` + +### Response + +- receiver: `github.com/stackql/any-sdk/pkg/response.Response` + +- methods: + + - `Error func() string` + - `ExtractElement func(e github.com/stackql/any-sdk/pkg/httpelement.HTTPElement) (interface{}, error)` + - `GetHttpResponse func() *net/http.Response` + - `GetProcessedBody func() interface{}` + - `HasError func() bool` + +### StreamTransformer + +- receiver: `github.com/stackql/any-sdk/pkg/stream_transform.StreamTransformer` + +- methods: + + - `GetOutStream func() io.Reader` + - `Transform func() error` + +### StreamTransformerFactory + +- receiver: `github.com/stackql/any-sdk/pkg/stream_transform.StreamTransformerFactory` + +- methods: + + - `GetTransformer func(input string) (github.com/stackql/any-sdk/pkg/stream_transform.StreamTransformer, error)` + - `IsTransformable func() bool` + +### MapReader + +- receiver: `github.com/stackql/any-sdk/pkg/streaming.MapReader` + +- methods: + + - `Read func() ([]map[string]interface{}, error)` + +### MapStream + +- receiver: `github.com/stackql/any-sdk/pkg/streaming.MapStream` + +- methods: + + - `Write func([]map[string]interface{}) error` + +### MapStreamCollection + +- receiver: `github.com/stackql/any-sdk/pkg/streaming.MapStreamCollection` + +- methods: + + - `Len func() int` + - `Push func(github.com/stackql/any-sdk/pkg/streaming.MapStream)` + +### AuthDTO + +- receiver: `github.com/stackql/any-sdk/pkg/surface.AuthDTO` + +- methods: + + - `GetAccountID func() string` + - `GetAccountIDEnvVar func() string` + - `GetAuthStyle func() int` + - `GetClientID func() string` + - `GetClientIDEnvVar func() string` + - `GetClientSecret func() string` + - `GetClientSecretEnvVar func() string` + - `GetEnvVarAPIKeyStr func() string` + - `GetEnvVarAPISecretStr func() string` + - `GetEnvVarPassword func() string` + - `GetEnvVarUsername func() string` + - `GetGrantType func() string` + - `GetInlineBasicCredentials func() string` + - `GetKeyEnvVar func() string` + - `GetKeyFilePath func() string` + - `GetKeyFilePathEnvVar func() string` + - `GetKeyID func() string` + - `GetKeyIDEnvVar func() string` + - `GetLocation func() string` + - `GetName func() string` + - `GetScopes func() []string` + - `GetSubject func() string` + - `GetSuccessor func() (github.com/stackql/any-sdk/pkg/surface.AuthDTO, bool)` + - `GetTokenURL func() string` + - `GetType func() string` + - `GetValuePrefix func() string` + - `GetValues func() net/url.Values` + +### IDiscoveryAdapter + +- receiver: `github.com/stackql/any-sdk/public/discovery.IDiscoveryAdapter` + +- methods: + + - `GetProvider func(providerKey string) (github.com/stackql/any-sdk/anysdk.Provider, error)` + - `GetResourcesMap func(prov github.com/stackql/any-sdk/anysdk.Provider, serviceKey string) (map[string]github.com/stackql/any-sdk/anysdk.Resource, error)` + - `GetServiceHandlesMap func(prov github.com/stackql/any-sdk/anysdk.Provider) (map[string]github.com/stackql/any-sdk/anysdk.ProviderService, error)` + - `GetServiceShard func(prov github.com/stackql/any-sdk/anysdk.Provider, serviceKey string, resourceKey string) (github.com/stackql/any-sdk/anysdk.Service, error)` + - `PersistStaticExternalSQLDataSource func(prov github.com/stackql/any-sdk/anysdk.Provider) error` + +### ColumnDescriptor + +- receiver: `github.com/stackql/any-sdk/public/formulation.ColumnDescriptor` + +- methods: + + - `GetAlias func() string` + - `GetDecoratedCol func() string` + - `GetIdentifier func() string` + - `GetName func() string` + - `GetNode func() github.com/stackql/stackql-parser/go/vt/sqlparser.SQLNode` + - `GetQualifier func() string` + - `GetSchema func() github.com/stackql/any-sdk/anysdk.Schema` + - `GetVal func() *github.com/stackql/stackql-parser/go/vt/sqlparser.SQLVal` + +### AddressSpaceFormulator + +- receiver: `github.com/stackql/any-sdk/public/radix_tree_address_space.AddressSpaceFormulator` + +- methods: + + - `Formulate func() error` + - `GetAddressSpace func() github.com/stackql/any-sdk/anysdk.AddressSpace` + +### SQLEngine + +- receiver: `github.com/stackql/any-sdk/public/sqlengine.SQLEngine` + +- methods: + + - `CacheStoreGet func(string) ([]byte, error)` + - `CacheStorePut func(string, []byte, string, int) error` + - `Exec func(string, ...interface{}) (database/sql.Result, error)` + - `ExecInTxn func(queries []string) error` + - `GetCurrentDiscoveryGenerationID func(discoveryID string) (int, error)` + - `GetCurrentGenerationID func() (int, error)` + - `GetDB func() (*database/sql.DB, error)` + - `GetNextDiscoveryGenerationID func(discoveryID string) (int, error)` + - `GetNextGenerationID func() (int, error)` + - `GetNextSessionID func(int) (int, error)` + - `GetTx func() (*database/sql.Tx, error)` + - `Query func(string, ...interface{}) (*database/sql.Rows, error)` + - `QueryRow func(query string, args ...any) *database/sql.Row` + diff --git a/docs/surfacewrap_plan/wrapper_checklist.md b/docs/surfacewrap_plan/wrapper_checklist.md new file mode 100644 index 0000000..17175b2 --- /dev/null +++ b/docs/surfacewrap_plan/wrapper_checklist.md @@ -0,0 +1,75 @@ +# Wrapper checklist (public/formulation) + +Create one wrapper per interface below. Name suggestion: `wrap` holding the corresponding any-sdk receiver type. + +- wrapAuthMetadata (wraps `*github.com/stackql/any-sdk/anysdk.AuthMetadata`) +- wrapAuthCtx (wraps `*github.com/stackql/any-sdk/pkg/dto.AuthCtx`) +- wrapRuntimeCtx (wraps `*github.com/stackql/any-sdk/pkg/dto.RuntimeCtx`) +- wrapAddressSpace (wraps `github.com/stackql/any-sdk/anysdk.AddressSpace`) +- wrapAddressable (wraps `github.com/stackql/any-sdk/anysdk.Addressable`) +- wrapColumn (wraps `github.com/stackql/any-sdk/anysdk.Column`) +- wrapExpectedRequest (wraps `github.com/stackql/any-sdk/anysdk.ExpectedRequest`) +- wrapExpectedResponse (wraps `github.com/stackql/any-sdk/anysdk.ExpectedResponse`) +- wrapGraphQL (wraps `github.com/stackql/any-sdk/anysdk.GraphQL`) +- wrapHTTPArmoury (wraps `github.com/stackql/any-sdk/anysdk.HTTPArmoury`) +- wrapHTTPArmouryParameters (wraps `github.com/stackql/any-sdk/anysdk.HTTPArmouryParameters`) +- wrapHTTPPreparator (wraps `github.com/stackql/any-sdk/anysdk.HTTPPreparator`) +- wrapHttpParameters (wraps `github.com/stackql/any-sdk/anysdk.HttpParameters`) +- wrapHttpPreparatorStream (wraps `github.com/stackql/any-sdk/anysdk.HttpPreparatorStream`) +- wrapITable (wraps `github.com/stackql/any-sdk/anysdk.ITable`) +- wrapMethodAnalysisOutput (wraps `github.com/stackql/any-sdk/anysdk.MethodAnalysisOutput`) +- wrapMethodAnalyzer (wraps `github.com/stackql/any-sdk/anysdk.MethodAnalyzer`) +- wrapMethods (wraps `github.com/stackql/any-sdk/anysdk.Methods`) +- wrapOperationInverse (wraps `github.com/stackql/any-sdk/anysdk.OperationInverse`) +- wrapOperationStore (wraps `github.com/stackql/any-sdk/anysdk.OperationStore`) +- wrapProcessedOperationResponse (wraps `github.com/stackql/any-sdk/anysdk.ProcessedOperationResponse`) +- wrapProvider (wraps `github.com/stackql/any-sdk/anysdk.Provider`) +- wrapProviderDescription (wraps `github.com/stackql/any-sdk/anysdk.ProviderDescription`) +- wrapProviderService (wraps `github.com/stackql/any-sdk/anysdk.ProviderService`) +- wrapRegistryAPI (wraps `github.com/stackql/any-sdk/anysdk.RegistryAPI`) +- wrapRelation (wraps `github.com/stackql/any-sdk/anysdk.Relation`) +- wrapResource (wraps `github.com/stackql/any-sdk/anysdk.Resource`) +- wrapSQLExternalColumn (wraps `github.com/stackql/any-sdk/anysdk.SQLExternalColumn`) +- wrapSQLExternalTable (wraps `github.com/stackql/any-sdk/anysdk.SQLExternalTable`) +- wrapSchema (wraps `github.com/stackql/any-sdk/anysdk.Schema`) +- wrapService (wraps `github.com/stackql/any-sdk/anysdk.Service`) +- wrapStandardOperationStore (wraps `github.com/stackql/any-sdk/anysdk.StandardOperationStore`) +- wrapTabulation (wraps `github.com/stackql/any-sdk/anysdk.Tabulation`) +- wrapTokenSemantic (wraps `github.com/stackql/any-sdk/anysdk.TokenSemantic`) +- wrapTransform (wraps `github.com/stackql/any-sdk/anysdk.Transform`) +- wrapView (wraps `github.com/stackql/any-sdk/anysdk.View`) +- wrapAuthUtility (wraps `github.com/stackql/any-sdk/pkg/auth_util.AuthUtility`) +- wrapAnySdkClientConfigurator (wraps `github.com/stackql/any-sdk/pkg/client.AnySdkClientConfigurator`) +- wrapAnySdkResponse (wraps `github.com/stackql/any-sdk/pkg/client.AnySdkResponse`) +- wrapControlAttributes (wraps `github.com/stackql/any-sdk/pkg/db/sqlcontrol.ControlAttributes`) +- wrapAuthContexts (wraps `github.com/stackql/any-sdk/pkg/dto.AuthContexts`) +- wrapDataFlowCfg (wraps `github.com/stackql/any-sdk/pkg/dto.DataFlowCfg`) +- wrapNamespaceCfg (wraps `github.com/stackql/any-sdk/pkg/dto.NamespaceCfg`) +- wrapOutputPacket (wraps `github.com/stackql/any-sdk/pkg/dto.OutputPacket`) +- wrapPgTLSCfg (wraps `github.com/stackql/any-sdk/pkg/dto.PgTLSCfg`) +- wrapRuntimeCtx (wraps `github.com/stackql/any-sdk/pkg/dto.RuntimeCtx`) +- wrapSQLBackendCfg (wraps `github.com/stackql/any-sdk/pkg/dto.SQLBackendCfg`) +- wrapSessionContext (wraps `github.com/stackql/any-sdk/pkg/dto.SessionContext`) +- wrapTxnCoordinatorCfg (wraps `github.com/stackql/any-sdk/pkg/dto.TxnCoordinatorCfg`) +- wrapGQLReader (wraps `github.com/stackql/any-sdk/pkg/graphql.GQLReader`) +- wrapExecPayload (wraps `github.com/stackql/any-sdk/pkg/internaldto.ExecPayload`) +- wrapHTTPElement (wraps `github.com/stackql/any-sdk/pkg/internaldto.HTTPElement`) +- wrapExecutionResponse (wraps `github.com/stackql/any-sdk/pkg/local_template_executor.ExecutionResponse`) +- wrapExecutor (wraps `github.com/stackql/any-sdk/pkg/local_template_executor.Executor`) +- wrapNameMangler (wraps `github.com/stackql/any-sdk/pkg/name_mangle.NameMangler`) +- wrapActionInsertPayload (wraps `github.com/stackql/any-sdk/pkg/providerinvoker.ActionInsertPayload`) +- wrapActionInsertResult (wraps `github.com/stackql/any-sdk/pkg/providerinvoker.ActionInsertResult`) +- wrapInsertPreparator (wraps `github.com/stackql/any-sdk/pkg/providerinvoker.InsertPreparator`) +- wrapInvoker (wraps `github.com/stackql/any-sdk/pkg/providerinvoker.Invoker`) +- wrapItemisationResult (wraps `github.com/stackql/any-sdk/pkg/providerinvoker.ItemisationResult`) +- wrapResponse (wraps `github.com/stackql/any-sdk/pkg/response.Response`) +- wrapStreamTransformer (wraps `github.com/stackql/any-sdk/pkg/stream_transform.StreamTransformer`) +- wrapStreamTransformerFactory (wraps `github.com/stackql/any-sdk/pkg/stream_transform.StreamTransformerFactory`) +- wrapMapReader (wraps `github.com/stackql/any-sdk/pkg/streaming.MapReader`) +- wrapMapStream (wraps `github.com/stackql/any-sdk/pkg/streaming.MapStream`) +- wrapMapStreamCollection (wraps `github.com/stackql/any-sdk/pkg/streaming.MapStreamCollection`) +- wrapAuthDTO (wraps `github.com/stackql/any-sdk/pkg/surface.AuthDTO`) +- wrapIDiscoveryAdapter (wraps `github.com/stackql/any-sdk/public/discovery.IDiscoveryAdapter`) +- wrapColumnDescriptor (wraps `github.com/stackql/any-sdk/public/formulation.ColumnDescriptor`) +- wrapAddressSpaceFormulator (wraps `github.com/stackql/any-sdk/public/radix_tree_address_space.AddressSpaceFormulator`) +- wrapSQLEngine (wraps `github.com/stackql/any-sdk/public/sqlengine.SQLEngine`) diff --git a/pkg/surface/surface.go b/pkg/surface/surface.go index ee6668c..e658d9f 100644 --- a/pkg/surface/surface.go +++ b/pkg/surface/surface.go @@ -33,7 +33,6 @@ type ColumnDescriptor interface { GetRepresentativeSchema() Schema GetSchema() Schema GetVal() *sqlparser.SQLVal - setName(string) } type Tabulation interface { @@ -472,7 +471,6 @@ type Provider interface { GetPaginationResponseTokenSemantic() (TokenSemantic, bool) GetQueryParamPushdown() (QueryParamPushdown, bool) GetProviderService(key string) (ProviderService, error) - getQueryTransposeAlgorithm() string GetRequestTranslateAlgorithm() string GetResourcesShallow(serviceKey string) (ResourceRegister, error) GetStackQLConfig() (StackQLConfig, bool) @@ -529,7 +527,6 @@ type StandardOperationStore interface { // GetRequestBodyMediaType() string GetRequestBodyMediaTypeNormalised() string - getRequestBodyMediaTypeNormalised() string GetXMLDeclaration() string GetXMLRootAnnotation() string GetXMLTransform() string From 58f73e15f0f8bbafa930444ce6d594c5e271d75d Mon Sep 17 00:00:00 2001 From: General Kroll Date: Thu, 19 Feb 2026 15:00:51 +1100 Subject: [PATCH 04/64] at-least-compiles --- public/formulation/formulation.go | 61 +- public/formulation/wrappers.go | 1999 +++++++++++++++++++++++++++++ 2 files changed, 2029 insertions(+), 31 deletions(-) create mode 100644 public/formulation/wrappers.go diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 2859cb5..a5c4279 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -2,7 +2,6 @@ package formulation import ( "github.com/stackql/any-sdk/anysdk" - "github.com/stackql/stackql-parser/go/sqltypes" "github.com/stackql/stackql-parser/go/vt/sqlparser" ) @@ -10,24 +9,24 @@ type ArmouryGenerator interface { GetHTTPArmoury() (anysdk.HTTPArmoury, error) } -type Addressable interface { - ConditionIsValid(lhs string, rhs interface{}) bool - GetLocation() string - GetName() string - GetAlias() string - GetSchema() (anysdk.Schema, bool) - GetType() string - IsRequired() bool -} +// type Addressable interface { +// ConditionIsValid(lhs string, rhs interface{}) bool +// GetLocation() string +// GetName() string +// GetAlias() string +// GetSchema() (anysdk.Schema, bool) +// GetType() string +// IsRequired() bool +// } -type ITable interface { - GetName() string - KeyExists(string) bool - GetKey(string) (interface{}, error) - GetKeyAsSqlVal(string) (sqltypes.Value, error) - GetRequiredParameters() map[string]Addressable - FilterBy(func(interface{}) (ITable, error)) (ITable, error) -} +// type ITable interface { +// GetName() string +// KeyExists(string) bool +// GetKey(string) (interface{}, error) +// GetKeyAsSqlVal(string) (sqltypes.Value, error) +// GetRequiredParameters() map[string]Addressable +// FilterBy(func(interface{}) (ITable, error)) (ITable, error) +// } type ColumnDescriptor interface { GetAlias() string @@ -46,13 +45,13 @@ func NewColumnDescriptor(alias string, name string, qualifier string, decoratedC return rv.(ColumnDescriptor) } -type SQLExternalColumn interface { - GetName() string - GetType() string - GetOid() uint32 - GetWidth() int - GetPrecision() int -} +// type SQLExternalColumn interface { +// GetName() string +// GetType() string +// GetOid() uint32 +// GetWidth() int +// GetPrecision() int +// } func NewMethodAnalysisInput( method anysdk.OperationStore, @@ -74,9 +73,9 @@ func NewMethodAnalysisInput( ) } -type SQLExternalTable interface { - GetCatalogName() string - GetSchemaName() string - GetName() string - GetColumns() []SQLExternalColumn -} +// type SQLExternalTable interface { +// GetCatalogName() string +// GetSchemaName() string +// GetName() string +// GetColumns() []SQLExternalColumn +// } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go new file mode 100644 index 0000000..2217f7e --- /dev/null +++ b/public/formulation/wrappers.go @@ -0,0 +1,1999 @@ +// Code generated by tools/surfacegen (wrappers) - DO NOT EDIT. +package formulation + +import ( + "bytes" + "context" + "crypto/tls" + "database/sql" + "io" + "net/http" + "net/url" + "regexp" + "text/template" + + "github.com/getkin/kin-openapi/openapi3" + "github.com/lib/pq/oid" + "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/pkg/auth_util" + "github.com/stackql/any-sdk/pkg/client" + "github.com/stackql/any-sdk/pkg/constants" + "github.com/stackql/any-sdk/pkg/db/sqlcontrol" + "github.com/stackql/any-sdk/pkg/dto" + "github.com/stackql/any-sdk/pkg/graphql" + "github.com/stackql/any-sdk/pkg/httpelement" + "github.com/stackql/any-sdk/pkg/internaldto" + "github.com/stackql/any-sdk/pkg/local_template_executor" + "github.com/stackql/any-sdk/pkg/name_mangle" + "github.com/stackql/any-sdk/pkg/netutils" + "github.com/stackql/any-sdk/pkg/providerinvoker" + "github.com/stackql/any-sdk/pkg/response" + "github.com/stackql/any-sdk/pkg/stream_transform" + "github.com/stackql/any-sdk/pkg/streaming" + "github.com/stackql/any-sdk/pkg/surface" + "github.com/stackql/any-sdk/public/discovery" + "github.com/stackql/any-sdk/public/radix_tree_address_space" + "github.com/stackql/any-sdk/public/sqlengine" + "github.com/stackql/stackql-parser/go/sqltypes" +) + +func wrapMapString_Addressable(in map[string]anysdk.Addressable) map[string]Addressable { + if in == nil { + return nil + } + out := make(map[string]Addressable, len(in)) + for k, v := range in { + out[k] = Addressable{inner: v} + } + return out +} + +func unwrapMapString_Addressable(in map[string]Addressable) map[string]anysdk.Addressable { + if in == nil { + return nil + } + out := make(map[string]anysdk.Addressable, len(in)) + for k, v := range in { + out[k] = v.inner + } + return out +} + +func wrapMapString_ProviderDescription(in map[string]anysdk.ProviderDescription) map[string]ProviderDescription { + if in == nil { + return nil + } + out := make(map[string]ProviderDescription, len(in)) + for k, v := range in { + out[k] = ProviderDescription{inner: v} + } + return out +} + +func unwrapMapString_ProviderDescription(in map[string]ProviderDescription) map[string]anysdk.ProviderDescription { + if in == nil { + return nil + } + out := make(map[string]anysdk.ProviderDescription, len(in)) + for k, v := range in { + out[k] = v.inner + } + return out +} + +func wrapMapString_ProviderService(in map[string]anysdk.ProviderService) map[string]ProviderService { + if in == nil { + return nil + } + out := make(map[string]ProviderService, len(in)) + for k, v := range in { + out[k] = ProviderService{inner: v} + } + return out +} + +func unwrapMapString_ProviderService(in map[string]ProviderService) map[string]anysdk.ProviderService { + if in == nil { + return nil + } + out := make(map[string]anysdk.ProviderService, len(in)) + for k, v := range in { + out[k] = v.inner + } + return out +} + +func wrapMapString_Resource(in map[string]anysdk.Resource) map[string]Resource { + if in == nil { + return nil + } + out := make(map[string]Resource, len(in)) + for k, v := range in { + out[k] = Resource{inner: v} + } + return out +} + +func unwrapMapString_Resource(in map[string]Resource) map[string]anysdk.Resource { + if in == nil { + return nil + } + out := make(map[string]anysdk.Resource, len(in)) + for k, v := range in { + out[k] = v.inner + } + return out +} + +func wrapPtr_AuthCtx(in *dto.AuthCtx) *AuthCtx { + if in == nil { + return nil + } + return &AuthCtx{inner: in} +} + +func wrapSlice_Column(in []anysdk.Column) []Column { + if in == nil { + return nil + } + out := make([]Column, 0, len(in)) + for _, v := range in { + out = append(out, Column{inner: v}) + } + return out +} + +func unwrapSlice_Column(in []Column) []anysdk.Column { + if in == nil { + return nil + } + out := make([]anysdk.Column, 0, len(in)) + for _, v := range in { + out = append(out, v.inner) + } + return out +} + +func wrapSlice_HTTPArmouryParameters(in []anysdk.HTTPArmouryParameters) []HTTPArmouryParameters { + if in == nil { + return nil + } + out := make([]HTTPArmouryParameters, 0, len(in)) + for _, v := range in { + out = append(out, HTTPArmouryParameters{inner: v}) + } + return out +} + +func unwrapSlice_HTTPArmouryParameters(in []HTTPArmouryParameters) []anysdk.HTTPArmouryParameters { + if in == nil { + return nil + } + out := make([]anysdk.HTTPArmouryParameters, 0, len(in)) + for _, v := range in { + out = append(out, v.inner) + } + return out +} + +func wrapSlice_SQLExternalColumn(in []anysdk.SQLExternalColumn) []SQLExternalColumn { + if in == nil { + return nil + } + out := make([]SQLExternalColumn, 0, len(in)) + for _, v := range in { + out = append(out, SQLExternalColumn{inner: v}) + } + return out +} + +func unwrapSlice_SQLExternalColumn(in []SQLExternalColumn) []anysdk.SQLExternalColumn { + if in == nil { + return nil + } + out := make([]anysdk.SQLExternalColumn, 0, len(in)) + for _, v := range in { + out = append(out, v.inner) + } + return out +} + +func wrapSlice_StandardOperationStore(in []anysdk.StandardOperationStore) []StandardOperationStore { + if in == nil { + return nil + } + out := make([]StandardOperationStore, 0, len(in)) + for _, v := range in { + out = append(out, StandardOperationStore{inner: v}) + } + return out +} + +func unwrapSlice_StandardOperationStore(in []StandardOperationStore) []anysdk.StandardOperationStore { + if in == nil { + return nil + } + out := make([]anysdk.StandardOperationStore, 0, len(in)) + for _, v := range in { + out = append(out, v.inner) + } + return out +} + +func wrapSlice_View(in []anysdk.View) []View { + if in == nil { + return nil + } + out := make([]View, 0, len(in)) + for _, v := range in { + out = append(out, View{inner: v}) + } + return out +} + +func unwrapSlice_View(in []View) []anysdk.View { + if in == nil { + return nil + } + out := make([]anysdk.View, 0, len(in)) + for _, v := range in { + out = append(out, v.inner) + } + return out +} + +type AuthMetadata struct { + inner *anysdk.AuthMetadata +} + +func (w *AuthMetadata) GetHeaders() []string { + r0 := w.inner.GetHeaders() + return r0 +} + +func (w *AuthMetadata) ToMap() map[string]interface{} { + r0 := w.inner.ToMap() + return r0 +} + +type AuthCtx struct { + inner *dto.AuthCtx +} + +func (w *AuthCtx) Clone() *AuthCtx { + r0 := w.inner.Clone() + return wrapPtr_AuthCtx(r0) +} + +func (w *AuthCtx) GetCredentialsBytes() ([]byte, error) { + r0, r1 := w.inner.GetCredentialsBytes() + return r0, r1 +} + +func (w *AuthCtx) GetCredentialsSourceDescriptorString() string { + r0 := w.inner.GetCredentialsSourceDescriptorString() + return r0 +} + +func (w *AuthCtx) GetSQLCfg() (SQLBackendCfg, bool) { + r0, r1 := w.inner.GetSQLCfg() + return SQLBackendCfg{inner: r0}, r1 +} + +func (w *AuthCtx) HasKey() bool { + r0 := w.inner.HasKey() + return r0 +} + +type RuntimeCtx struct { + inner dto.RuntimeCtx +} + +func (w RuntimeCtx) Copy() RuntimeCtx { + r0 := w.inner.Copy() + return RuntimeCtx{inner: r0} +} + +type AddressSpace struct { + inner anysdk.AddressSpace +} + +func (w AddressSpace) ToRelation(p0 anysdk.AddressSpaceExpansionConfig) (Relation, error) { + r0, r1 := w.inner.ToRelation(p0) + return Relation{inner: r0}, r1 +} + +type Addressable struct { + inner anysdk.Addressable +} + +func (w Addressable) ConditionIsValid(lhs string, rhs interface{}) bool { + r0 := w.inner.ConditionIsValid(lhs, rhs) + return r0 +} + +func (w Addressable) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w Addressable) GetType() string { + r0 := w.inner.GetType() + return r0 +} + +type Column struct { + inner anysdk.Column +} + +func (w Column) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w Column) GetSchema() Schema { + r0 := w.inner.GetSchema() + return Schema{inner: r0} +} + +func (w Column) GetWidth() int { + r0 := w.inner.GetWidth() + return r0 +} + +type ExpectedRequest struct { + inner anysdk.ExpectedRequest +} + +func (w ExpectedRequest) GetBodyMediaType() string { + r0 := w.inner.GetBodyMediaType() + return r0 +} + +type ExpectedResponse struct { + inner anysdk.ExpectedResponse +} + +func (w ExpectedResponse) GetObjectKey() string { + r0 := w.inner.GetObjectKey() + return r0 +} + +func (w ExpectedResponse) GetTransform() (Transform, bool) { + r0, r1 := w.inner.GetTransform() + return Transform{inner: r0}, r1 +} + +type GraphQL struct { + inner anysdk.GraphQL +} + +func (w GraphQL) GetCursorJSONPath() (string, bool) { + r0, r1 := w.inner.GetCursorJSONPath() + return r0, r1 +} + +func (w GraphQL) GetQuery() string { + r0 := w.inner.GetQuery() + return r0 +} + +func (w GraphQL) GetResponseJSONPath() (string, bool) { + r0, r1 := w.inner.GetResponseJSONPath() + return r0, r1 +} + +type HTTPArmoury struct { + inner anysdk.HTTPArmoury +} + +func (w HTTPArmoury) GetRequestParams() []HTTPArmouryParameters { + r0 := w.inner.GetRequestParams() + return wrapSlice_HTTPArmouryParameters(r0) +} + +func (w HTTPArmoury) SetRequestParams(p0 []HTTPArmouryParameters) { + inner_p0 := unwrapSlice_HTTPArmouryParameters(p0) + w.inner.SetRequestParams(inner_p0) + return +} + +type HTTPArmouryParameters struct { + inner anysdk.HTTPArmouryParameters +} + +func (w HTTPArmouryParameters) Encode() string { + r0 := w.inner.Encode() + return r0 +} + +func (w HTTPArmouryParameters) GetArgList() client.AnySdkArgList { + r0 := w.inner.GetArgList() + return r0 +} + +func (w HTTPArmouryParameters) GetParameters() HttpParameters { + r0 := w.inner.GetParameters() + return HttpParameters{inner: r0} +} + +func (w HTTPArmouryParameters) GetQuery() url.Values { + r0 := w.inner.GetQuery() + return r0 +} + +func (w HTTPArmouryParameters) GetRequest() *http.Request { + r0 := w.inner.GetRequest() + return r0 +} + +func (w HTTPArmouryParameters) SetNextPage(ops OperationStore, token string, tokenKey HTTPElement) (*http.Request, error) { + r0, r1 := w.inner.SetNextPage(ops.inner, token, tokenKey.inner) + return r0, r1 +} + +func (w HTTPArmouryParameters) SetRawQuery(p0 string) { + w.inner.SetRawQuery(p0) + return +} + +func (w HTTPArmouryParameters) ToFlatMap() (map[string]interface{}, error) { + r0, r1 := w.inner.ToFlatMap() + return r0, r1 +} + +type HTTPPreparator struct { + inner anysdk.HTTPPreparator +} + +func (w HTTPPreparator) BuildHTTPRequestCtx(p0 anysdk.HTTPPreparatorConfig) (HTTPArmoury, error) { + r0, r1 := w.inner.BuildHTTPRequestCtx(p0) + return HTTPArmoury{inner: r0}, r1 +} + +type HttpParameters struct { + inner anysdk.HttpParameters +} + +func (w HttpParameters) GetInlineParameterFlatMap() (map[string]interface{}, error) { + r0, r1 := w.inner.GetInlineParameterFlatMap() + return r0, r1 +} + +func (w HttpParameters) ToFlatMap() (map[string]interface{}, error) { + r0, r1 := w.inner.ToFlatMap() + return r0, r1 +} + +type HttpPreparatorStream struct { + inner anysdk.HttpPreparatorStream +} + +func (w HttpPreparatorStream) Next() (HTTPPreparator, bool) { + r0, r1 := w.inner.Next() + return HTTPPreparator{inner: r0}, r1 +} + +func (w HttpPreparatorStream) Write(p0 HTTPPreparator) error { + r0 := w.inner.Write(p0.inner) + return r0 +} + +type ITable struct { + inner anysdk.ITable +} + +func (w ITable) GetKey(p0 string) (interface{}, error) { + r0, r1 := w.inner.GetKey(p0) + return r0, r1 +} + +func (w ITable) GetKeyAsSqlVal(p0 string) (sqltypes.Value, error) { + r0, r1 := w.inner.GetKeyAsSqlVal(p0) + return r0, r1 +} + +func (w ITable) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w ITable) KeyExists(p0 string) bool { + r0 := w.inner.KeyExists(p0) + return r0 +} + +type MethodAnalysisOutput struct { + inner anysdk.MethodAnalysisOutput +} + +func (w MethodAnalysisOutput) GetInsertTabulation() Tabulation { + r0 := w.inner.GetInsertTabulation() + return Tabulation{inner: r0} +} + +func (w MethodAnalysisOutput) GetItemSchema() (Schema, bool) { + r0, r1 := w.inner.GetItemSchema() + return Schema{inner: r0}, r1 +} + +func (w MethodAnalysisOutput) GetOrderedStarColumnsNames() ([]string, error) { + r0, r1 := w.inner.GetOrderedStarColumnsNames() + return r0, r1 +} + +func (w MethodAnalysisOutput) GetSelectTabulation() Tabulation { + r0 := w.inner.GetSelectTabulation() + return Tabulation{inner: r0} +} + +func (w MethodAnalysisOutput) IsAwait() bool { + r0 := w.inner.IsAwait() + return r0 +} + +func (w MethodAnalysisOutput) IsNilResponseAllowed() bool { + r0 := w.inner.IsNilResponseAllowed() + return r0 +} + +type MethodAnalyzer struct { + inner anysdk.MethodAnalyzer +} + +func (w MethodAnalyzer) AnalyzeUnaryAction(p0 anysdk.MethodAnalysisInput) (MethodAnalysisOutput, error) { + r0, r1 := w.inner.AnalyzeUnaryAction(p0) + return MethodAnalysisOutput{inner: r0}, r1 +} + +type Methods struct { + inner anysdk.Methods +} + +func (w Methods) OrderMethods() ([]StandardOperationStore, error) { + r0, r1 := w.inner.OrderMethods() + return wrapSlice_StandardOperationStore(r0), r1 +} + +type OperationInverse struct { + inner anysdk.OperationInverse +} + +func (w OperationInverse) GetOperationStore() (StandardOperationStore, bool) { + r0, r1 := w.inner.GetOperationStore() + return StandardOperationStore{inner: r0}, r1 +} + +type OperationStore struct { + inner anysdk.OperationStore +} + +func (w OperationStore) DeprecatedProcessResponse(response *http.Response) (map[string]interface{}, error) { + r0, r1 := w.inner.DeprecatedProcessResponse(response) + return r0, r1 +} + +func (w OperationStore) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w OperationStore) GetNonBodyParameters() map[string]Addressable { + r0 := w.inner.GetNonBodyParameters() + return wrapMapString_Addressable(r0) +} + +func (w OperationStore) GetPaginationRequestTokenSemantic() (TokenSemantic, bool) { + r0, r1 := w.inner.GetPaginationRequestTokenSemantic() + return TokenSemantic{inner: r0}, r1 +} + +func (w OperationStore) GetPaginationResponseTokenSemantic() (TokenSemantic, bool) { + r0, r1 := w.inner.GetPaginationResponseTokenSemantic() + return TokenSemantic{inner: r0}, r1 +} + +func (w OperationStore) GetParameter(paramKey string) (Addressable, bool) { + r0, r1 := w.inner.GetParameter(paramKey) + return Addressable{inner: r0}, r1 +} + +func (w OperationStore) GetRequestBodySchema() (Schema, error) { + r0, r1 := w.inner.GetRequestBodySchema() + return Schema{inner: r0}, r1 +} + +func (w OperationStore) GetRequiredNonBodyParameters() map[string]Addressable { + r0 := w.inner.GetRequiredNonBodyParameters() + return wrapMapString_Addressable(r0) +} + +func (w OperationStore) GetRequiredParameters() map[string]Addressable { + r0 := w.inner.GetRequiredParameters() + return wrapMapString_Addressable(r0) +} + +func (w OperationStore) GetResource() Resource { + r0 := w.inner.GetResource() + return Resource{inner: r0} +} + +func (w OperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { + r0, r1, r2 := w.inner.GetResponseBodySchemaAndMediaType() + return Schema{inner: r0}, r1, r2 +} + +func (w OperationStore) GetSelectItemsKey() string { + r0 := w.inner.GetSelectItemsKey() + return r0 +} + +func (w OperationStore) GetService() anysdk.OpenAPIService { + r0 := w.inner.GetService() + return r0 +} + +func (w OperationStore) IsRequestBodyAttributeRenamed(p0 string) bool { + r0 := w.inner.IsRequestBodyAttributeRenamed(p0) + return r0 +} + +func (w OperationStore) IsRequiredRequestBodyProperty(key string) bool { + r0 := w.inner.IsRequiredRequestBodyProperty(key) + return r0 +} + +func (w OperationStore) ProcessResponse(p0 *http.Response) (ProcessedOperationResponse, error) { + r0, r1 := w.inner.ProcessResponse(p0) + return ProcessedOperationResponse{inner: r0}, r1 +} + +func (w OperationStore) RenameRequestBodyAttribute(p0 string) (string, error) { + r0, r1 := w.inner.RenameRequestBodyAttribute(p0) + return r0, r1 +} + +func (w OperationStore) RevertRequestBodyAttributeRename(p0 string) (string, error) { + r0, r1 := w.inner.RevertRequestBodyAttributeRename(p0) + return r0, r1 +} + +type ProcessedOperationResponse struct { + inner anysdk.ProcessedOperationResponse +} + +func (w ProcessedOperationResponse) GetResponse() (Response, bool) { + r0, r1 := w.inner.GetResponse() + return Response{inner: r0}, r1 +} + +func (w ProcessedOperationResponse) GetReversal() (HTTPPreparator, bool) { + r0, r1 := w.inner.GetReversal() + return HTTPPreparator{inner: r0}, r1 +} + +type Provider struct { + inner anysdk.Provider +} + +func (w Provider) GetAuth() (AuthDTO, bool) { + r0, r1 := w.inner.GetAuth() + return AuthDTO{inner: r0}, r1 +} + +func (w Provider) GetDeleteItemsKey() string { + r0 := w.inner.GetDeleteItemsKey() + return r0 +} + +func (w Provider) GetMinStackQLVersion() string { + r0 := w.inner.GetMinStackQLVersion() + return r0 +} + +func (w Provider) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w Provider) GetProtocolType() (client.ClientProtocolType, error) { + r0, r1 := w.inner.GetProtocolType() + return r0, r1 +} + +type ProviderDescription struct { + inner anysdk.ProviderDescription +} + +func (w ProviderDescription) GetLatestVersion() (string, error) { + r0, r1 := w.inner.GetLatestVersion() + return r0, r1 +} + +type ProviderService struct { + inner anysdk.ProviderService +} + +func (w ProviderService) GetDescription() string { + r0 := w.inner.GetDescription() + return r0 +} + +func (w ProviderService) GetID() string { + r0 := w.inner.GetID() + return r0 +} + +func (w ProviderService) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w ProviderService) GetTitle() string { + r0 := w.inner.GetTitle() + return r0 +} + +func (w ProviderService) GetVersion() string { + r0 := w.inner.GetVersion() + return r0 +} + +func (w ProviderService) IsPreferred() bool { + r0 := w.inner.IsPreferred() + return r0 +} + +type RegistryAPI struct { + inner anysdk.RegistryAPI +} + +func (w RegistryAPI) ClearProviderCache(p0 string) error { + r0 := w.inner.ClearProviderCache(p0) + return r0 +} + +func (w RegistryAPI) GetLatestPublishedVersion(p0 string) (string, error) { + r0, r1 := w.inner.GetLatestPublishedVersion(p0) + return r0, r1 +} + +func (w RegistryAPI) ListAllAvailableProviders() (map[string]ProviderDescription, error) { + r0, r1 := w.inner.ListAllAvailableProviders() + return wrapMapString_ProviderDescription(r0), r1 +} + +func (w RegistryAPI) ListAllProviderVersions(p0 string) (map[string]ProviderDescription, error) { + r0, r1 := w.inner.ListAllProviderVersions(p0) + return wrapMapString_ProviderDescription(r0), r1 +} + +func (w RegistryAPI) ListLocallyAvailableProviders() map[string]ProviderDescription { + r0 := w.inner.ListLocallyAvailableProviders() + return wrapMapString_ProviderDescription(r0) +} + +func (w RegistryAPI) LoadProviderByName(p0 string, p1 string) (Provider, error) { + r0, r1 := w.inner.LoadProviderByName(p0, p1) + return Provider{inner: r0}, r1 +} + +func (w RegistryAPI) PullAndPersistProviderArchive(p0 string, p1 string) error { + r0 := w.inner.PullAndPersistProviderArchive(p0, p1) + return r0 +} + +func (w RegistryAPI) RemoveProviderVersion(p0 string, p1 string) error { + r0 := w.inner.RemoveProviderVersion(p0, p1) + return r0 +} + +type Relation struct { + inner anysdk.Relation +} + +func (w Relation) GetColumnDescriptors() []anysdk.ColumnDescriptor { + r0 := w.inner.GetColumnDescriptors() + return r0 +} + +func (w Relation) GetColumns() []Column { + r0 := w.inner.GetColumns() + return wrapSlice_Column(r0) +} + +type Resource struct { + inner anysdk.Resource +} + +func (w Resource) FindMethod(key string) (StandardOperationStore, error) { + r0, r1 := w.inner.FindMethod(key) + return StandardOperationStore{inner: r0}, r1 +} + +func (w Resource) GetFirstMethodFromSQLVerb(sqlVerb string) (StandardOperationStore, string, bool) { + r0, r1, r2 := w.inner.GetFirstMethodFromSQLVerb(sqlVerb) + return StandardOperationStore{inner: r0}, r1, r2 +} + +func (w Resource) GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb string, parameters map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) { + r0, r1, r2 := w.inner.GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb, parameters) + return StandardOperationStore{inner: r0}, r1, r2 +} + +func (w Resource) GetID() string { + r0 := w.inner.GetID() + return r0 +} + +func (w Resource) GetMethodsMatched() Methods { + r0 := w.inner.GetMethodsMatched() + return Methods{inner: r0} +} + +func (w Resource) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w Resource) GetViewsForSqlDialect(sqlDialect string) ([]View, bool) { + r0, r1 := w.inner.GetViewsForSqlDialect(sqlDialect) + return wrapSlice_View(r0), r1 +} + +func (w Resource) ToMap(extended bool) map[string]interface{} { + r0 := w.inner.ToMap(extended) + return r0 +} + +type SQLExternalColumn struct { + inner anysdk.SQLExternalColumn +} + +func (w SQLExternalColumn) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w SQLExternalColumn) GetOid() uint32 { + r0 := w.inner.GetOid() + return r0 +} + +func (w SQLExternalColumn) GetPrecision() int { + r0 := w.inner.GetPrecision() + return r0 +} + +func (w SQLExternalColumn) GetType() string { + r0 := w.inner.GetType() + return r0 +} + +func (w SQLExternalColumn) GetWidth() int { + r0 := w.inner.GetWidth() + return r0 +} + +type SQLExternalTable struct { + inner anysdk.SQLExternalTable +} + +func (w SQLExternalTable) GetCatalogName() string { + r0 := w.inner.GetCatalogName() + return r0 +} + +func (w SQLExternalTable) GetColumns() []SQLExternalColumn { + r0 := w.inner.GetColumns() + return wrapSlice_SQLExternalColumn(r0) +} + +func (w SQLExternalTable) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w SQLExternalTable) GetSchemaName() string { + r0 := w.inner.GetSchemaName() + return r0 +} + +type Schema struct { + inner anysdk.Schema +} + +func (w Schema) FindByPath(path string, visited map[string]bool) Schema { + r0 := w.inner.FindByPath(path, visited) + return Schema{inner: r0} +} + +func (w Schema) GetAdditionalProperties() (Schema, bool) { + r0, r1 := w.inner.GetAdditionalProperties() + return Schema{inner: r0}, r1 +} + +func (w Schema) GetAllColumns(p0 string) []string { + r0 := w.inner.GetAllColumns(p0) + return r0 +} + +func (w Schema) GetItemsSchema() (Schema, error) { + r0, r1 := w.inner.GetItemsSchema() + return Schema{inner: r0}, r1 +} + +func (w Schema) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w Schema) GetProperties() (anysdk.Schemas, error) { + r0, r1 := w.inner.GetProperties() + return r0, r1 +} + +func (w Schema) GetProperty(propertyKey string) (Schema, bool) { + r0, r1 := w.inner.GetProperty(propertyKey) + return Schema{inner: r0}, r1 +} + +func (w Schema) GetPropertySchema(key string) (Schema, error) { + r0, r1 := w.inner.GetPropertySchema(key) + return Schema{inner: r0}, r1 +} + +func (w Schema) GetSelectSchema(itemsKey string, mediaType string) (Schema, string, error) { + r0, r1, r2 := w.inner.GetSelectSchema(itemsKey, mediaType) + return Schema{inner: r0}, r1, r2 +} + +func (w Schema) GetSelectionName() string { + r0 := w.inner.GetSelectionName() + return r0 +} + +func (w Schema) GetTitle() string { + r0 := w.inner.GetTitle() + return r0 +} + +func (w Schema) GetType() string { + r0 := w.inner.GetType() + return r0 +} + +func (w Schema) IsBoolean() bool { + r0 := w.inner.IsBoolean() + return r0 +} + +func (w Schema) IsFloat() bool { + r0 := w.inner.IsFloat() + return r0 +} + +func (w Schema) IsIntegral() bool { + r0 := w.inner.IsIntegral() + return r0 +} + +func (w Schema) IsReadOnly() bool { + r0 := w.inner.IsReadOnly() + return r0 +} + +func (w Schema) IsRequired(key string) bool { + r0 := w.inner.IsRequired(key) + return r0 +} + +func (w Schema) SetKey(p0 string) { + w.inner.SetKey(p0) + return +} + +func (w Schema) Tabulate(p0 bool, p1 string) Tabulation { + r0 := w.inner.Tabulate(p0, p1) + return Tabulation{inner: r0} +} + +func (w Schema) ToDescriptionMap(extended bool) map[string]interface{} { + r0 := w.inner.ToDescriptionMap(extended) + return r0 +} + +type Service struct { + inner anysdk.Service +} + +func (w Service) GetResource(resourceName string) (Resource, error) { + r0, r1 := w.inner.GetResource(resourceName) + return Resource{inner: r0}, r1 +} + +func (w Service) GetSchema(key string) (Schema, error) { + r0, r1 := w.inner.GetSchema(key) + return Schema{inner: r0}, r1 +} + +func (w Service) GetServers() (openapi3.Servers, bool) { + r0, r1 := w.inner.GetServers() + return r0, r1 +} + +type StandardOperationStore struct { + inner anysdk.StandardOperationStore +} + +func (w StandardOperationStore) GetAddressSpace() (AddressSpace, bool) { + r0, r1 := w.inner.GetAddressSpace() + return AddressSpace{inner: r0}, r1 +} + +func (w StandardOperationStore) GetColumnOrder(extended bool) []string { + r0 := w.inner.GetColumnOrder(extended) + return r0 +} + +func (w StandardOperationStore) GetGraphQL() GraphQL { + r0 := w.inner.GetGraphQL() + return GraphQL{inner: r0} +} + +func (w StandardOperationStore) GetInline() []string { + r0 := w.inner.GetInline() + return r0 +} + +func (w StandardOperationStore) GetInverse() (OperationInverse, bool) { + r0, r1 := w.inner.GetInverse() + return OperationInverse{inner: r0}, r1 +} + +func (w StandardOperationStore) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w StandardOperationStore) GetOptionalParameters() map[string]Addressable { + r0 := w.inner.GetOptionalParameters() + return wrapMapString_Addressable(r0) +} + +func (w StandardOperationStore) GetPaginationRequestTokenSemantic() (TokenSemantic, bool) { + r0, r1 := w.inner.GetPaginationRequestTokenSemantic() + return TokenSemantic{inner: r0}, r1 +} + +func (w StandardOperationStore) GetPaginationResponseTokenSemantic() (TokenSemantic, bool) { + r0, r1 := w.inner.GetPaginationResponseTokenSemantic() + return TokenSemantic{inner: r0}, r1 +} + +func (w StandardOperationStore) GetParameter(paramKey string) (Addressable, bool) { + r0, r1 := w.inner.GetParameter(paramKey) + return Addressable{inner: r0}, r1 +} + +func (w StandardOperationStore) GetProjections() map[string]string { + r0 := w.inner.GetProjections() + return r0 +} + +func (w StandardOperationStore) GetRequest() (ExpectedRequest, bool) { + r0, r1 := w.inner.GetRequest() + return ExpectedRequest{inner: r0}, r1 +} + +func (w StandardOperationStore) GetRequestBodySchema() (Schema, error) { + r0, r1 := w.inner.GetRequestBodySchema() + return Schema{inner: r0}, r1 +} + +func (w StandardOperationStore) GetRequiredParameters() map[string]Addressable { + r0 := w.inner.GetRequiredParameters() + return wrapMapString_Addressable(r0) +} + +func (w StandardOperationStore) GetResponse() (ExpectedResponse, bool) { + r0, r1 := w.inner.GetResponse() + return ExpectedResponse{inner: r0}, r1 +} + +func (w StandardOperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { + r0, r1, r2 := w.inner.GetResponseBodySchemaAndMediaType() + return Schema{inner: r0}, r1, r2 +} + +func (w StandardOperationStore) GetSelectItemsKey() string { + r0 := w.inner.GetSelectItemsKey() + return r0 +} + +func (w StandardOperationStore) GetSelectSchemaAndObjectPath() (Schema, string, error) { + r0, r1, r2 := w.inner.GetSelectSchemaAndObjectPath() + return Schema{inner: r0}, r1, r2 +} + +func (w StandardOperationStore) GetServers() (openapi3.Servers, bool) { + r0, r1 := w.inner.GetServers() + return r0, r1 +} + +func (w StandardOperationStore) IsAwaitable() bool { + r0 := w.inner.IsAwaitable() + return r0 +} + +func (w StandardOperationStore) IsNullary() bool { + r0 := w.inner.IsNullary() + return r0 +} + +func (w StandardOperationStore) ToPresentationMap(extended bool) map[string]interface{} { + r0 := w.inner.ToPresentationMap(extended) + return r0 +} + +type Tabulation struct { + inner anysdk.Tabulation +} + +func (w Tabulation) GetColumns() []anysdk.ColumnDescriptor { + r0 := w.inner.GetColumns() + return r0 +} + +func (w Tabulation) PushBackColumn(col anysdk.ColumnDescriptor) { + w.inner.PushBackColumn(col) + return +} + +func (w Tabulation) RenameColumnsToXml() Tabulation { + r0 := w.inner.RenameColumnsToXml() + return Tabulation{inner: r0} +} + +type TokenSemantic struct { + inner anysdk.TokenSemantic +} + +func (w TokenSemantic) GetKey() string { + r0 := w.inner.GetKey() + return r0 +} + +func (w TokenSemantic) GetLocation() string { + r0 := w.inner.GetLocation() + return r0 +} + +func (w TokenSemantic) GetTransformer() (anysdk.TokenTransformer, error) { + r0, r1 := w.inner.GetTransformer() + return r0, r1 +} + +type Transform struct { + inner anysdk.Transform +} + +func (w Transform) GetBody() string { + r0 := w.inner.GetBody() + return r0 +} + +func (w Transform) GetType() string { + r0 := w.inner.GetType() + return r0 +} + +type View struct { + inner anysdk.View +} + +func (w View) GetDDL() string { + r0 := w.inner.GetDDL() + return r0 +} + +func (w View) GetNameNaive() string { + r0 := w.inner.GetNameNaive() + return r0 +} + +func (w View) GetRequiredParamNames() []string { + r0 := w.inner.GetRequiredParamNames() + return r0 +} + +type AuthUtility struct { + inner auth_util.AuthUtility +} + +func (w AuthUtility) ActivateAuth(authCtx *AuthCtx, principal string, authType string) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + w.inner.ActivateAuth(inner_authCtx, principal, authType) + return +} + +func (w AuthUtility) ApiTokenAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext, enforceBearer bool) (*http.Client, error) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0, r1 := w.inner.ApiTokenAuth(inner_authCtx, httpContext, enforceBearer) + return r0, r1 +} + +func (w AuthUtility) AuthRevoke(authCtx *AuthCtx) error { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0 := w.inner.AuthRevoke(inner_authCtx) + return r0 +} + +func (w AuthUtility) AwsSigningAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0, r1 := w.inner.AwsSigningAuth(inner_authCtx, httpContext) + return r0, r1 +} + +func (w AuthUtility) AzureDefaultAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0, r1 := w.inner.AzureDefaultAuth(inner_authCtx, httpContext) + return r0, r1 +} + +func (w AuthUtility) BasicAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0, r1 := w.inner.BasicAuth(inner_authCtx, httpContext) + return r0, r1 +} + +func (w AuthUtility) CustomAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0, r1 := w.inner.CustomAuth(inner_authCtx, httpContext) + return r0, r1 +} + +func (w AuthUtility) GCloudOAuth(runtimeCtx RuntimeCtx, authCtx *AuthCtx, enforceRevokeFirst bool) (*http.Client, error) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0, r1 := w.inner.GCloudOAuth(runtimeCtx.inner, inner_authCtx, enforceRevokeFirst) + return r0, r1 +} + +func (w AuthUtility) GenericOauthClientCredentials(authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0, r1 := w.inner.GenericOauthClientCredentials(inner_authCtx, scopes, httpContext) + return r0, r1 +} + +func (w AuthUtility) GetCurrentGCloudOauthUser() ([]byte, error) { + r0, r1 := w.inner.GetCurrentGCloudOauthUser() + return r0, r1 +} + +func (w AuthUtility) GoogleOauthServiceAccount(provider string, authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0, r1 := w.inner.GoogleOauthServiceAccount(provider, inner_authCtx, scopes, httpContext) + return r0, r1 +} + +func (w AuthUtility) ParseServiceAccountFile(ac *AuthCtx) (any, error) { + var inner_ac *dto.AuthCtx + if ac != nil { + inner_ac = ac.inner + } + r0, r1 := w.inner.ParseServiceAccountFile(inner_ac) + return r0, r1 +} + +type AnySdkClientConfigurator struct { + inner client.AnySdkClientConfigurator +} + +func (w AnySdkClientConfigurator) Auth(authCtx *AuthCtx, authTypeRequested string, enforceRevokeFirst bool) (client.AnySdkClient, error) { + var inner_authCtx *dto.AuthCtx + if authCtx != nil { + inner_authCtx = authCtx.inner + } + r0, r1 := w.inner.Auth(inner_authCtx, authTypeRequested, enforceRevokeFirst) + return r0, r1 +} + +type AnySdkResponse struct { + inner client.AnySdkResponse +} + +func (w AnySdkResponse) GetHttpResponse() (*http.Response, error) { + r0, r1 := w.inner.GetHttpResponse() + return r0, r1 +} + +type ControlAttributes struct { + inner sqlcontrol.ControlAttributes +} + +func (w ControlAttributes) GetControlGCStatusColumnName() string { + r0 := w.inner.GetControlGCStatusColumnName() + return r0 +} + +func (w ControlAttributes) GetControlGenIDColumnName() string { + r0 := w.inner.GetControlGenIDColumnName() + return r0 +} + +func (w ControlAttributes) GetControlInsIDColumnName() string { + r0 := w.inner.GetControlInsIDColumnName() + return r0 +} + +func (w ControlAttributes) GetControlInsertEncodedIDColumnName() string { + r0 := w.inner.GetControlInsertEncodedIDColumnName() + return r0 +} + +func (w ControlAttributes) GetControlLatestUpdateColumnName() string { + r0 := w.inner.GetControlLatestUpdateColumnName() + return r0 +} + +func (w ControlAttributes) GetControlMaxTxnColumnName() string { + r0 := w.inner.GetControlMaxTxnColumnName() + return r0 +} + +func (w ControlAttributes) GetControlSsnIDColumnName() string { + r0 := w.inner.GetControlSsnIDColumnName() + return r0 +} + +func (w ControlAttributes) GetControlTxnIDColumnName() string { + r0 := w.inner.GetControlTxnIDColumnName() + return r0 +} + +type AuthContexts struct { + inner dto.AuthContexts +} + +func (w AuthContexts) Clone() AuthContexts { + r0 := w.inner.Clone() + return AuthContexts{inner: r0} +} + +type DataFlowCfg struct { + inner dto.DataFlowCfg +} + +func (w DataFlowCfg) GetMaxDependencies() int { + r0 := w.inner.GetMaxDependencies() + return r0 +} + +type NamespaceCfg struct { + inner dto.NamespaceCfg +} + +func (w NamespaceCfg) GetRegex() (*regexp.Regexp, error) { + r0, r1 := w.inner.GetRegex() + return r0, r1 +} + +func (w NamespaceCfg) GetTemplate() (*template.Template, error) { + r0, r1 := w.inner.GetTemplate() + return r0, r1 +} + +type OutputPacket struct { + inner dto.OutputPacket +} + +func (w OutputPacket) GetColumnNames() []string { + r0 := w.inner.GetColumnNames() + return r0 +} + +func (w OutputPacket) GetColumnOIDs() []oid.Oid { + r0 := w.inner.GetColumnOIDs() + return r0 +} + +func (w OutputPacket) GetRawRows() map[int]map[int]interface{} { + r0 := w.inner.GetRawRows() + return r0 +} + +func (w OutputPacket) GetRows() map[string]map[string]interface{} { + r0 := w.inner.GetRows() + return r0 +} + +type PgTLSCfg struct { + inner dto.PgTLSCfg +} + +func (w PgTLSCfg) GetKeyPair() (tls.Certificate, error) { + r0, r1 := w.inner.GetKeyPair() + return r0, r1 +} + +type SQLBackendCfg struct { + inner dto.SQLBackendCfg +} + +func (w SQLBackendCfg) GetDatabaseName() (string, error) { + r0, r1 := w.inner.GetDatabaseName() + return r0, r1 +} + +func (w SQLBackendCfg) GetIntelViewSchemaName() string { + r0 := w.inner.GetIntelViewSchemaName() + return r0 +} + +func (w SQLBackendCfg) GetOpsViewSchemaName() string { + r0 := w.inner.GetOpsViewSchemaName() + return r0 +} + +func (w SQLBackendCfg) GetSQLDialect() string { + r0 := w.inner.GetSQLDialect() + return r0 +} + +func (w SQLBackendCfg) GetSchemaType() string { + r0 := w.inner.GetSchemaType() + return r0 +} + +func (w SQLBackendCfg) GetTableSchemaName() string { + r0 := w.inner.GetTableSchemaName() + return r0 +} + +type SessionContext struct { + inner dto.SessionContext +} + +func (w SessionContext) GetIsolationLevel() constants.IsolationLevel { + r0 := w.inner.GetIsolationLevel() + return r0 +} + +func (w SessionContext) GetRollbackType() constants.RollbackType { + r0 := w.inner.GetRollbackType() + return r0 +} + +func (w SessionContext) UpdateIsolationLevel(p0 string) error { + r0 := w.inner.UpdateIsolationLevel(p0) + return r0 +} + +type TxnCoordinatorCfg struct { + inner dto.TxnCoordinatorCfg +} + +func (w TxnCoordinatorCfg) GetMaxTxnDepth() int { + r0 := w.inner.GetMaxTxnDepth() + return r0 +} + +type GQLReader struct { + inner graphql.GQLReader +} + +func (w GQLReader) Read() ([]map[string]interface{}, error) { + r0, r1 := w.inner.Read() + return r0, r1 +} + +type ExecPayload struct { + inner internaldto.ExecPayload +} + +func (w ExecPayload) GetPayloadMap() map[string]interface{} { + r0 := w.inner.GetPayloadMap() + return r0 +} + +type HTTPElement struct { + inner internaldto.HTTPElement +} + +func (w HTTPElement) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w HTTPElement) GetType() internaldto.HTTPElementType { + r0 := w.inner.GetType() + return r0 +} + +func (w HTTPElement) SetTransformer(transformer func(interface{}) (interface{}, error)) { + w.inner.SetTransformer(transformer) + return +} + +func (w HTTPElement) IsTransformerPresent() bool { + r0 := w.inner.IsTransformerPresent() + return r0 +} + +func (w HTTPElement) Transformer(t interface{}) (interface{}, error) { + r0, r1 := w.inner.Transformer(t) + return r0, r1 +} + +type ExecutionResponse struct { + inner local_template_executor.ExecutionResponse +} + +func (w ExecutionResponse) GetStdErr() (*bytes.Buffer, bool) { + r0, r1 := w.inner.GetStdErr() + return r0, r1 +} + +func (w ExecutionResponse) GetStdOut() (*bytes.Buffer, bool) { + r0, r1 := w.inner.GetStdOut() + return r0, r1 +} + +type Executor struct { + inner local_template_executor.Executor +} + +func (w Executor) Execute(p0 map[string]any) (ExecutionResponse, error) { + r0, r1 := w.inner.Execute(p0) + return ExecutionResponse{inner: r0}, r1 +} + +type NameMangler struct { + inner name_mangle.NameMangler +} + +func (w NameMangler) MangleName(p0 string, p1 ...any) string { + r0 := w.inner.MangleName(p0, p1) + return r0 +} + +type ActionInsertPayload struct { + inner providerinvoker.ActionInsertPayload +} + +func (w ActionInsertPayload) GetItemisationResult() ItemisationResult { + r0 := w.inner.GetItemisationResult() + return ItemisationResult{inner: r0} +} + +func (w ActionInsertPayload) GetParamsUsed() map[string]interface{} { + r0 := w.inner.GetParamsUsed() + return r0 +} + +func (w ActionInsertPayload) GetReqEncoding() string { + r0 := w.inner.GetReqEncoding() + return r0 +} + +func (w ActionInsertPayload) GetTableName() string { + r0 := w.inner.GetTableName() + return r0 +} + +func (w ActionInsertPayload) IsHousekeepingDone() bool { + r0 := w.inner.IsHousekeepingDone() + return r0 +} + +type ActionInsertResult struct { + inner providerinvoker.ActionInsertResult +} + +func (w ActionInsertResult) GetError() (error, bool) { + r0, r1 := w.inner.GetError() + return r0, r1 +} + +func (w ActionInsertResult) IsHousekeepingDone() bool { + r0 := w.inner.IsHousekeepingDone() + return r0 +} + +type InsertPreparator struct { + inner providerinvoker.InsertPreparator +} + +func (w InsertPreparator) ActionInsertPreparation(payload ActionInsertPayload) ActionInsertResult { + r0 := w.inner.ActionInsertPreparation(payload.inner) + return ActionInsertResult{inner: r0} +} + +type Invoker struct { + inner providerinvoker.Invoker +} + +func (w Invoker) Invoke(ctx context.Context, req providerinvoker.Request) (providerinvoker.Result, error) { + r0, r1 := w.inner.Invoke(ctx, req) + return r0, r1 +} + +type ItemisationResult struct { + inner providerinvoker.ItemisationResult +} + +func (w ItemisationResult) GetItems() (interface{}, bool) { + r0, r1 := w.inner.GetItems() + return r0, r1 +} + +type Response struct { + inner response.Response +} + +func (w Response) Error() string { + r0 := w.inner.Error() + return r0 +} + +// TODO: fix this crap +func (w Response) ExtractElement(e httpelement.HTTPElement) (interface{}, error) { + r0, r1 := w.inner.ExtractElement(e) + return r0, r1 +} + +func (w Response) GetHttpResponse() *http.Response { + r0 := w.inner.GetHttpResponse() + return r0 +} + +func (w Response) GetProcessedBody() interface{} { + r0 := w.inner.GetProcessedBody() + return r0 +} + +func (w Response) HasError() bool { + r0 := w.inner.HasError() + return r0 +} + +type StreamTransformer struct { + inner stream_transform.StreamTransformer +} + +func (w StreamTransformer) GetOutStream() io.Reader { + r0 := w.inner.GetOutStream() + return r0 +} + +func (w StreamTransformer) Transform() error { + r0 := w.inner.Transform() + return r0 +} + +type StreamTransformerFactory struct { + inner stream_transform.StreamTransformerFactory +} + +func (w StreamTransformerFactory) GetTransformer(input string) (StreamTransformer, error) { + r0, r1 := w.inner.GetTransformer(input) + return StreamTransformer{inner: r0}, r1 +} + +func (w StreamTransformerFactory) IsTransformable() bool { + r0 := w.inner.IsTransformable() + return r0 +} + +type MapReader struct { + inner streaming.MapReader +} + +func (w MapReader) Read() ([]map[string]interface{}, error) { + r0, r1 := w.inner.Read() + return r0, r1 +} + +type MapStream struct { + inner streaming.MapStream +} + +func (w MapStream) Write(p0 []map[string]interface{}) error { + r0 := w.inner.Write(p0) + return r0 +} + +type MapStreamCollection struct { + inner streaming.MapStreamCollection +} + +func (w MapStreamCollection) Len() int { + r0 := w.inner.Len() + return r0 +} + +func (w MapStreamCollection) Push(p0 MapStream) { + w.inner.Push(p0.inner) + return +} + +type AuthDTO struct { + inner surface.AuthDTO +} + +func (w AuthDTO) GetAccountID() string { + r0 := w.inner.GetAccountID() + return r0 +} + +func (w AuthDTO) GetAccountIDEnvVar() string { + r0 := w.inner.GetAccountIDEnvVar() + return r0 +} + +func (w AuthDTO) GetAuthStyle() int { + r0 := w.inner.GetAuthStyle() + return r0 +} + +func (w AuthDTO) GetClientID() string { + r0 := w.inner.GetClientID() + return r0 +} + +func (w AuthDTO) GetClientIDEnvVar() string { + r0 := w.inner.GetClientIDEnvVar() + return r0 +} + +func (w AuthDTO) GetClientSecret() string { + r0 := w.inner.GetClientSecret() + return r0 +} + +func (w AuthDTO) GetClientSecretEnvVar() string { + r0 := w.inner.GetClientSecretEnvVar() + return r0 +} + +func (w AuthDTO) GetEnvVarAPIKeyStr() string { + r0 := w.inner.GetEnvVarAPIKeyStr() + return r0 +} + +func (w AuthDTO) GetEnvVarAPISecretStr() string { + r0 := w.inner.GetEnvVarAPISecretStr() + return r0 +} + +func (w AuthDTO) GetEnvVarPassword() string { + r0 := w.inner.GetEnvVarPassword() + return r0 +} + +func (w AuthDTO) GetEnvVarUsername() string { + r0 := w.inner.GetEnvVarUsername() + return r0 +} + +func (w AuthDTO) GetGrantType() string { + r0 := w.inner.GetGrantType() + return r0 +} + +func (w AuthDTO) GetInlineBasicCredentials() string { + r0 := w.inner.GetInlineBasicCredentials() + return r0 +} + +func (w AuthDTO) GetKeyEnvVar() string { + r0 := w.inner.GetKeyEnvVar() + return r0 +} + +func (w AuthDTO) GetKeyFilePath() string { + r0 := w.inner.GetKeyFilePath() + return r0 +} + +func (w AuthDTO) GetKeyFilePathEnvVar() string { + r0 := w.inner.GetKeyFilePathEnvVar() + return r0 +} + +func (w AuthDTO) GetKeyID() string { + r0 := w.inner.GetKeyID() + return r0 +} + +func (w AuthDTO) GetKeyIDEnvVar() string { + r0 := w.inner.GetKeyIDEnvVar() + return r0 +} + +func (w AuthDTO) GetLocation() string { + r0 := w.inner.GetLocation() + return r0 +} + +func (w AuthDTO) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w AuthDTO) GetScopes() []string { + r0 := w.inner.GetScopes() + return r0 +} + +func (w AuthDTO) GetSubject() string { + r0 := w.inner.GetSubject() + return r0 +} + +func (w AuthDTO) GetSuccessor() (AuthDTO, bool) { + r0, r1 := w.inner.GetSuccessor() + return AuthDTO{inner: r0}, r1 +} + +func (w AuthDTO) GetTokenURL() string { + r0 := w.inner.GetTokenURL() + return r0 +} + +func (w AuthDTO) GetType() string { + r0 := w.inner.GetType() + return r0 +} + +func (w AuthDTO) GetValuePrefix() string { + r0 := w.inner.GetValuePrefix() + return r0 +} + +func (w AuthDTO) GetValues() url.Values { + r0 := w.inner.GetValues() + return r0 +} + +type IDiscoveryAdapter struct { + inner discovery.IDiscoveryAdapter +} + +func (w IDiscoveryAdapter) GetProvider(providerKey string) (Provider, error) { + r0, r1 := w.inner.GetProvider(providerKey) + return Provider{inner: r0}, r1 +} + +func (w IDiscoveryAdapter) GetResourcesMap(prov Provider, serviceKey string) (map[string]Resource, error) { + r0, r1 := w.inner.GetResourcesMap(prov.inner, serviceKey) + return wrapMapString_Resource(r0), r1 +} + +func (w IDiscoveryAdapter) GetServiceHandlesMap(prov Provider) (map[string]ProviderService, error) { + r0, r1 := w.inner.GetServiceHandlesMap(prov.inner) + return wrapMapString_ProviderService(r0), r1 +} + +func (w IDiscoveryAdapter) GetServiceShard(prov Provider, serviceKey string, resourceKey string) (Service, error) { + r0, r1 := w.inner.GetServiceShard(prov.inner, serviceKey, resourceKey) + return Service{inner: r0}, r1 +} + +func (w IDiscoveryAdapter) PersistStaticExternalSQLDataSource(prov Provider) error { + r0 := w.inner.PersistStaticExternalSQLDataSource(prov.inner) + return r0 +} + +type AddressSpaceFormulator struct { + inner radix_tree_address_space.AddressSpaceFormulator +} + +func (w AddressSpaceFormulator) Formulate() error { + r0 := w.inner.Formulate() + return r0 +} + +func (w AddressSpaceFormulator) GetAddressSpace() AddressSpace { + r0 := w.inner.GetAddressSpace() + return AddressSpace{inner: r0} +} + +type SQLEngine struct { + inner sqlengine.SQLEngine +} + +func (w SQLEngine) CacheStoreGet(p0 string) ([]byte, error) { + r0, r1 := w.inner.CacheStoreGet(p0) + return r0, r1 +} + +func (w SQLEngine) CacheStorePut(p0 string, p1 []byte, p2 string, p3 int) error { + r0 := w.inner.CacheStorePut(p0, p1, p2, p3) + return r0 +} + +func (w SQLEngine) Exec(p0 string, p1 ...interface{}) (sql.Result, error) { + r0, r1 := w.inner.Exec(p0, p1) + return r0, r1 +} + +func (w SQLEngine) ExecInTxn(queries []string) error { + r0 := w.inner.ExecInTxn(queries) + return r0 +} + +func (w SQLEngine) GetCurrentDiscoveryGenerationID(discoveryID string) (int, error) { + r0, r1 := w.inner.GetCurrentDiscoveryGenerationID(discoveryID) + return r0, r1 +} + +func (w SQLEngine) GetCurrentGenerationID() (int, error) { + r0, r1 := w.inner.GetCurrentGenerationID() + return r0, r1 +} + +func (w SQLEngine) GetDB() (*sql.DB, error) { + r0, r1 := w.inner.GetDB() + return r0, r1 +} + +func (w SQLEngine) GetNextDiscoveryGenerationID(discoveryID string) (int, error) { + r0, r1 := w.inner.GetNextDiscoveryGenerationID(discoveryID) + return r0, r1 +} + +func (w SQLEngine) GetNextGenerationID() (int, error) { + r0, r1 := w.inner.GetNextGenerationID() + return r0, r1 +} + +func (w SQLEngine) GetNextSessionID(p0 int) (int, error) { + r0, r1 := w.inner.GetNextSessionID(p0) + return r0, r1 +} + +func (w SQLEngine) GetTx() (*sql.Tx, error) { + r0, r1 := w.inner.GetTx() + return r0, r1 +} + +func (w SQLEngine) Query(p0 string, p1 ...interface{}) (*sql.Rows, error) { + r0, r1 := w.inner.Query(p0, p1) + return r0, r1 +} + +func (w SQLEngine) QueryRow(query string, args ...any) *sql.Row { + r0 := w.inner.QueryRow(query, args) + return r0 +} From 0d40267276e7198588945d31db87c906219a49a2 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Thu, 19 Feb 2026 18:03:08 +1100 Subject: [PATCH 05/64] expanded --- public/formulation/wrappers.go | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 2217f7e..c8281ac 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1666,9 +1666,28 @@ func (w Response) Error() string { return r0 } +// type HTTPElement interface { +// GetName() string +// GetLocation() HTTPElementLocation +// } + +type HTTPHTTPElement struct { + inner httpelement.HTTPElement +} + +func (w HTTPHTTPElement) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w HTTPHTTPElement) GetLocation() httpelement.HTTPElementLocation { + r0 := w.inner.GetLocation() + return r0 +} + // TODO: fix this crap -func (w Response) ExtractElement(e httpelement.HTTPElement) (interface{}, error) { - r0, r1 := w.inner.ExtractElement(e) +func (w Response) ExtractElement(e HTTPHTTPElement) (interface{}, error) { + r0, r1 := w.inner.ExtractElement(e.inner) return r0, r1 } From 4cc0dbe3a876a7cc09d5a9567b57033306aa1309 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Fri, 20 Feb 2026 08:37:12 +1100 Subject: [PATCH 06/64] expanded --- public/formulation/wrappers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index c8281ac..82aa9bc 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -303,6 +303,10 @@ func (w AddressSpace) ToRelation(p0 anysdk.AddressSpaceExpansionConfig) (Relatio return Relation{inner: r0}, r1 } +func DeprecatedNewAddressable(inner anysdk.Addressable) Addressable { + return Addressable{inner: inner} +} + type Addressable struct { inner anysdk.Addressable } From 0aa12b3caba3c7728161e1b647182c3b1315e628 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Fri, 20 Feb 2026 11:00:41 +1100 Subject: [PATCH 07/64] busted-transition-state --- public/formulation/interfaces.go | 588 ++++++++++++++++++++++ public/formulation/wrappers.go | 835 ++++++++++++++++--------------- 2 files changed, 1014 insertions(+), 409 deletions(-) create mode 100644 public/formulation/interfaces.go diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go new file mode 100644 index 0000000..72a8777 --- /dev/null +++ b/public/formulation/interfaces.go @@ -0,0 +1,588 @@ +// Code generated mechanically from wrappers.go (interfaces only) - DO NOT EDIT. +package formulation + +import ( + "bytes" + "context" + "crypto/tls" + "database/sql" + "io" + "net/http" + "net/url" + "regexp" + "text/template" + + "github.com/getkin/kin-openapi/openapi3" + "github.com/lib/pq/oid" + "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/pkg/client" + "github.com/stackql/any-sdk/pkg/constants" + "github.com/stackql/any-sdk/pkg/httpelement" + "github.com/stackql/any-sdk/pkg/internaldto" + "github.com/stackql/any-sdk/pkg/netutils" + "github.com/stackql/any-sdk/pkg/providerinvoker" + "github.com/stackql/stackql-parser/go/sqltypes" +) + +// NOTE: Addressable is already defined as an interface in wrappers.go. + +// AuthMetadata mirrors methods on *AuthMetadata +type AuthMetadata interface { + GetHeaders() []string + ToMap() map[string]interface{} +} + +// AuthCtx mirrors methods on *AuthCtx +// type AuthCtx interface { +// Clone() *AuthCtx +// GetCredentialsBytes() ([]byte, error) +// GetCredentialsSourceDescriptorString() string +// GetSQLCfg() (SQLBackendCfg, bool) +// HasKey() bool +// } + +// RuntimeCtx mirrors methods on RuntimeCtx +type RuntimeCtx interface { + Copy() RuntimeCtx +} + +// AddressSpace mirrors methods on AddressSpace +type AddressSpace interface { + ToRelation(p0 anysdk.AddressSpaceExpansionConfig) (Relation, error) +} + +// Column mirrors methods on Column +type Column interface { + GetName() string + GetSchema() Schema + GetWidth() int +} + +// ExpectedRequest mirrors methods on ExpectedRequest +type ExpectedRequest interface { + GetBodyMediaType() string +} + +// ExpectedResponse mirrors methods on ExpectedResponse +type ExpectedResponse interface { + GetObjectKey() string + GetTransform() (Transform, bool) +} + +// GraphQL mirrors methods on GraphQL +type GraphQL interface { + GetCursorJSONPath() (string, bool) + GetQuery() string + GetResponseJSONPath() (string, bool) +} + +// HTTPArmoury mirrors methods on HTTPArmoury +type HTTPArmoury interface { + GetRequestParams() []HTTPArmouryParameters + SetRequestParams(p0 []HTTPArmouryParameters) +} + +// HTTPArmouryParameters mirrors methods on HTTPArmouryParameters +type HTTPArmouryParameters interface { + Encode() string + GetArgList() client.AnySdkArgList + GetParameters() HttpParameters + GetQuery() url.Values + GetRequest() *http.Request + SetNextPage(ops OperationStore, token string, tokenKey HTTPElement) (*http.Request, error) + SetRawQuery(p0 string) + ToFlatMap() (map[string]interface{}, error) +} + +// HTTPPreparator mirrors methods on HTTPPreparator +type HTTPPreparator interface { + BuildHTTPRequestCtx(p0 anysdk.HTTPPreparatorConfig) (HTTPArmoury, error) +} + +// HttpParameters mirrors methods on HttpParameters +type HttpParameters interface { + GetInlineParameterFlatMap() (map[string]interface{}, error) + ToFlatMap() (map[string]interface{}, error) +} + +// HttpPreparatorStream mirrors methods on HttpPreparatorStream +type HttpPreparatorStream interface { + Next() (HTTPPreparator, bool) + Write(p0 HTTPPreparator) error +} + +// ITable mirrors methods on ITable +type ITable interface { + GetKey(p0 string) (interface{}, error) + GetKeyAsSqlVal(p0 string) (sqltypes.Value, error) + GetName() string + KeyExists(p0 string) bool +} + +// MethodAnalysisOutput mirrors methods on MethodAnalysisOutput +type MethodAnalysisOutput interface { + GetInsertTabulation() Tabulation + GetItemSchema() (Schema, bool) + GetOrderedStarColumnsNames() ([]string, error) + GetSelectTabulation() Tabulation + IsAwait() bool + IsNilResponseAllowed() bool +} + +// MethodAnalyzer mirrors methods on MethodAnalyzer +type MethodAnalyzer interface { + AnalyzeUnaryAction(p0 anysdk.MethodAnalysisInput) (MethodAnalysisOutput, error) +} + +// Methods mirrors methods on Methods +type Methods interface { + OrderMethods() ([]StandardOperationStore, error) +} + +// OperationInverse mirrors methods on OperationInverse +type OperationInverse interface { + GetOperationStore() (StandardOperationStore, bool) +} + +// OperationStore mirrors methods on OperationStore +type OperationStore interface { + DeprecatedProcessResponse(response *http.Response) (map[string]interface{}, error) + GetName() string + GetNonBodyParameters() map[string]Addressable + GetPaginationRequestTokenSemantic() (TokenSemantic, bool) + GetPaginationResponseTokenSemantic() (TokenSemantic, bool) + GetParameter(paramKey string) (Addressable, bool) + GetRequestBodySchema() (Schema, error) + GetRequiredNonBodyParameters() map[string]Addressable + GetRequiredParameters() map[string]Addressable + GetResource() Resource + GetResponseBodySchemaAndMediaType() (Schema, string, error) + GetSelectItemsKey() string + GetService() anysdk.OpenAPIService + IsRequestBodyAttributeRenamed(p0 string) bool + IsRequiredRequestBodyProperty(key string) bool + ProcessResponse(p0 *http.Response) (ProcessedOperationResponse, error) + RenameRequestBodyAttribute(p0 string) (string, error) + RevertRequestBodyAttributeRename(p0 string) (string, error) +} + +// ProcessedOperationResponse mirrors methods on ProcessedOperationResponse +type ProcessedOperationResponse interface { + GetResponse() (Response, bool) + GetReversal() (HTTPPreparator, bool) +} + +// Provider mirrors methods on Provider +type Provider interface { + GetAuth() (AuthDTO, bool) + GetDeleteItemsKey() string + GetMinStackQLVersion() string + GetName() string + GetProtocolType() (client.ClientProtocolType, error) +} + +// ProviderDescription mirrors methods on ProviderDescription +type ProviderDescription interface { + GetLatestVersion() (string, error) +} + +// ProviderService mirrors methods on ProviderService +type ProviderService interface { + GetDescription() string + GetID() string + GetName() string + GetTitle() string + GetVersion() string + IsPreferred() bool +} + +// RegistryAPI mirrors methods on RegistryAPI +type RegistryAPI interface { + ClearProviderCache(p0 string) error + GetLatestPublishedVersion(p0 string) (string, error) + ListAllAvailableProviders() (map[string]ProviderDescription, error) + ListAllProviderVersions(p0 string) (map[string]ProviderDescription, error) + ListLocallyAvailableProviders() map[string]ProviderDescription + LoadProviderByName(p0 string, p1 string) (Provider, error) + PullAndPersistProviderArchive(p0 string, p1 string) error + RemoveProviderVersion(p0 string, p1 string) error +} + +// Relation mirrors methods on Relation +type Relation interface { + GetColumnDescriptors() []anysdk.ColumnDescriptor + GetColumns() []Column +} + +// Resource mirrors methods on Resource +type Resource interface { + FindMethod(key string) (StandardOperationStore, error) + GetFirstMethodFromSQLVerb(sqlVerb string) (StandardOperationStore, string, bool) + GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb string, parameters map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) + GetID() string + GetMethodsMatched() Methods + GetName() string + GetViewsForSqlDialect(sqlDialect string) ([]View, bool) + ToMap(extended bool) map[string]interface{} +} + +// SQLExternalColumn mirrors methods on SQLExternalColumn +type SQLExternalColumn interface { + GetName() string + GetOid() uint32 + GetPrecision() int + GetType() string + GetWidth() int +} + +// SQLExternalTable mirrors methods on SQLExternalTable +type SQLExternalTable interface { + GetCatalogName() string + GetColumns() []SQLExternalColumn + GetName() string + GetSchemaName() string +} + +// Schema mirrors methods on Schema +type Schema interface { + FindByPath(path string, visited map[string]bool) Schema + GetAdditionalProperties() (Schema, bool) + GetAllColumns(p0 string) []string + GetItemsSchema() (Schema, error) + GetName() string + GetProperties() (anysdk.Schemas, error) + GetProperty(propertyKey string) (Schema, bool) + GetPropertySchema(key string) (Schema, error) + GetSelectSchema(itemsKey string, mediaType string) (Schema, string, error) + GetSelectionName() string + GetTitle() string + GetType() string + IsBoolean() bool + IsFloat() bool + IsIntegral() bool + IsReadOnly() bool + IsRequired(key string) bool + SetKey(p0 string) + Tabulate(p0 bool, p1 string) Tabulation + ToDescriptionMap(extended bool) map[string]interface{} +} + +// Service mirrors methods on Service +type Service interface { + GetResource(resourceName string) (Resource, error) + GetSchema(key string) (Schema, error) + GetServers() (openapi3.Servers, bool) +} + +// StandardOperationStore mirrors methods on StandardOperationStore +type StandardOperationStore interface { + GetAddressSpace() (AddressSpace, bool) + GetColumnOrder(extended bool) []string + GetGraphQL() GraphQL + GetInline() []string + GetInverse() (OperationInverse, bool) + GetName() string + GetOptionalParameters() map[string]Addressable + GetPaginationRequestTokenSemantic() (TokenSemantic, bool) + GetPaginationResponseTokenSemantic() (TokenSemantic, bool) + GetParameter(paramKey string) (Addressable, bool) + GetProjections() map[string]string + GetRequest() (ExpectedRequest, bool) + GetRequestBodySchema() (Schema, error) + GetRequiredParameters() map[string]Addressable + GetResponse() (ExpectedResponse, bool) + GetResponseBodySchemaAndMediaType() (Schema, string, error) + GetSelectItemsKey() string + GetSelectSchemaAndObjectPath() (Schema, string, error) + GetServers() (openapi3.Servers, bool) + IsAwaitable() bool + IsNullary() bool + ToPresentationMap(extended bool) map[string]interface{} +} + +// Tabulation mirrors methods on Tabulation +type Tabulation interface { + GetColumns() []anysdk.ColumnDescriptor + PushBackColumn(col anysdk.ColumnDescriptor) + RenameColumnsToXml() Tabulation +} + +// TokenSemantic mirrors methods on TokenSemantic +type TokenSemantic interface { + GetKey() string + GetLocation() string + GetTransformer() (anysdk.TokenTransformer, error) +} + +// Transform mirrors methods on Transform +type Transform interface { + GetBody() string + GetType() string +} + +// View mirrors methods on View +type View interface { + GetDDL() string + GetNameNaive() string + GetRequiredParamNames() []string +} + +// AuthUtility mirrors methods on AuthUtility +type AuthUtility interface { + ActivateAuth(authCtx *AuthCtx, principal string, authType string) + ApiTokenAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext, enforceBearer bool) (*http.Client, error) + AuthRevoke(authCtx *AuthCtx) error + AwsSigningAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) + AzureDefaultAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) + BasicAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) + CustomAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) + GCloudOAuth(runtimeCtx RuntimeCtx, authCtx *AuthCtx, enforceRevokeFirst bool) (*http.Client, error) + GenericOauthClientCredentials(authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) + GetCurrentGCloudOauthUser() ([]byte, error) + GoogleOauthServiceAccount(provider string, authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) + ParseServiceAccountFile(ac *AuthCtx) (any, error) +} + +// AnySdkClientConfigurator mirrors methods on AnySdkClientConfigurator +type AnySdkClientConfigurator interface { + Auth(authCtx *AuthCtx, authTypeRequested string, enforceRevokeFirst bool) (client.AnySdkClient, error) +} + +// AnySdkResponse mirrors methods on AnySdkResponse +type AnySdkResponse interface { + GetHttpResponse() (*http.Response, error) +} + +// ControlAttributes mirrors methods on ControlAttributes +type ControlAttributes interface { + GetControlGCStatusColumnName() string + GetControlGenIDColumnName() string + GetControlInsIDColumnName() string + GetControlInsertEncodedIDColumnName() string + GetControlLatestUpdateColumnName() string + GetControlMaxTxnColumnName() string + GetControlSsnIDColumnName() string + GetControlTxnIDColumnName() string +} + +// AuthContexts mirrors methods on AuthContexts +type AuthContexts interface { + Clone() AuthContexts +} + +// DataFlowCfg mirrors methods on DataFlowCfg +type DataFlowCfg interface { + GetMaxDependencies() int +} + +// NamespaceCfg mirrors methods on NamespaceCfg +type NamespaceCfg interface { + GetRegex() (*regexp.Regexp, error) + GetTemplate() (*template.Template, error) +} + +// OutputPacket mirrors methods on OutputPacket +type OutputPacket interface { + GetColumnNames() []string + GetColumnOIDs() []oid.Oid + GetRawRows() map[int]map[int]interface{} + GetRows() map[string]map[string]interface{} +} + +// PgTLSCfg mirrors methods on PgTLSCfg +type PgTLSCfg interface { + GetKeyPair() (tls.Certificate, error) +} + +// SQLBackendCfg mirrors methods on SQLBackendCfg +type SQLBackendCfg interface { + GetDatabaseName() (string, error) + GetIntelViewSchemaName() string + GetOpsViewSchemaName() string + GetSQLDialect() string + GetSchemaType() string + GetTableSchemaName() string +} + +// SessionContext mirrors methods on SessionContext +type SessionContext interface { + GetIsolationLevel() constants.IsolationLevel + GetRollbackType() constants.RollbackType + UpdateIsolationLevel(p0 string) error +} + +// TxnCoordinatorCfg mirrors methods on TxnCoordinatorCfg +type TxnCoordinatorCfg interface { + GetMaxTxnDepth() int +} + +// GQLReader mirrors methods on GQLReader +type GQLReader interface { + Read() ([]map[string]interface{}, error) +} + +// ExecPayload mirrors methods on ExecPayload +type ExecPayload interface { + GetPayloadMap() map[string]interface{} +} + +// HTTPElement mirrors methods on HTTPElement (internaldto-backed) +type HTTPElement interface { + GetName() string + GetType() internaldto.HTTPElementType + SetTransformer(transformer func(interface{}) (interface{}, error)) + IsTransformerPresent() bool + Transformer(t interface{}) (interface{}, error) +} + +// ExecutionResponse mirrors methods on ExecutionResponse +type ExecutionResponse interface { + GetStdErr() (*bytes.Buffer, bool) + GetStdOut() (*bytes.Buffer, bool) +} + +// Executor mirrors methods on Executor +type Executor interface { + Execute(p0 map[string]any) (ExecutionResponse, error) +} + +// NameMangler mirrors methods on NameMangler +type NameMangler interface { + MangleName(p0 string, p1 ...any) string +} + +// ActionInsertPayload mirrors methods on ActionInsertPayload +type ActionInsertPayload interface { + GetItemisationResult() ItemisationResult + GetParamsUsed() map[string]interface{} + GetReqEncoding() string + GetTableName() string + IsHousekeepingDone() bool +} + +// ActionInsertResult mirrors methods on ActionInsertResult +type ActionInsertResult interface { + GetError() (error, bool) + IsHousekeepingDone() bool +} + +// InsertPreparator mirrors methods on InsertPreparator +type InsertPreparator interface { + ActionInsertPreparation(payload ActionInsertPayload) ActionInsertResult +} + +// Invoker mirrors methods on Invoker +type Invoker interface { + Invoke(ctx context.Context, req providerinvoker.Request) (providerinvoker.Result, error) +} + +// ItemisationResult mirrors methods on ItemisationResult +type ItemisationResult interface { + GetItems() (interface{}, bool) +} + +// Response mirrors methods on Response +type Response interface { + Error() string + ExtractElement(e HTTPHTTPElement) (interface{}, error) + GetHttpResponse() *http.Response + GetProcessedBody() interface{} + HasError() bool +} + +// HTTPHTTPElement mirrors methods on HTTPHTTPElement (httpelement-backed) +type HTTPHTTPElement interface { + GetName() string + GetLocation() httpelement.HTTPElementLocation +} + +// StreamTransformer mirrors methods on StreamTransformer +type StreamTransformer interface { + GetOutStream() io.Reader + Transform() error +} + +// StreamTransformerFactory mirrors methods on StreamTransformerFactory +type StreamTransformerFactory interface { + GetTransformer(input string) (StreamTransformer, error) + IsTransformable() bool +} + +// MapReader mirrors methods on MapReader +type MapReader interface { + Read() ([]map[string]interface{}, error) +} + +// MapStream mirrors methods on MapStream +type MapStream interface { + Write(p0 []map[string]interface{}) error +} + +// MapStreamCollection mirrors methods on MapStreamCollection +type MapStreamCollection interface { + Len() int + Push(p0 MapStream) +} + +// AuthDTO mirrors methods on AuthDTO +type AuthDTO interface { + GetAccountID() string + GetAccountIDEnvVar() string + GetAuthStyle() int + GetClientID() string + GetClientIDEnvVar() string + GetClientSecret() string + GetClientSecretEnvVar() string + GetEnvVarAPIKeyStr() string + GetEnvVarAPISecretStr() string + GetEnvVarPassword() string + GetEnvVarUsername() string + GetGrantType() string + GetInlineBasicCredentials() string + GetKeyEnvVar() string + GetKeyFilePath() string + GetKeyFilePathEnvVar() string + GetKeyID() string + GetKeyIDEnvVar() string + GetLocation() string + GetName() string + GetScopes() []string + GetSubject() string + GetSuccessor() (AuthDTO, bool) + GetTokenURL() string + GetType() string + GetValuePrefix() string + GetValues() url.Values +} + +// IDiscoveryAdapter mirrors methods on IDiscoveryAdapter +type IDiscoveryAdapter interface { + GetProvider(providerKey string) (Provider, error) + GetResourcesMap(prov Provider, serviceKey string) (map[string]Resource, error) + GetServiceHandlesMap(prov Provider) (map[string]ProviderService, error) + GetServiceShard(prov Provider, serviceKey string, resourceKey string) (Service, error) + PersistStaticExternalSQLDataSource(prov Provider) error +} + +// AddressSpaceFormulator mirrors methods on AddressSpaceFormulator +type AddressSpaceFormulator interface { + Formulate() error + GetAddressSpace() AddressSpace +} + +// SQLEngine mirrors methods on SQLEngine +type SQLEngine interface { + CacheStoreGet(p0 string) ([]byte, error) + CacheStorePut(p0 string, p1 []byte, p2 string, p3 int) error + Exec(p0 string, p1 ...interface{}) (sql.Result, error) + ExecInTxn(queries []string) error + GetCurrentDiscoveryGenerationID(discoveryID string) (int, error) + GetCurrentGenerationID() (int, error) + GetDB() (*sql.DB, error) + GetNextDiscoveryGenerationID(discoveryID string) (int, error) + GetNextGenerationID() (int, error) + GetNextSessionID(p0 int) (int, error) + GetTx() (*sql.Tx, error) + Query(p0 string, p1 ...interface{}) (*sql.Rows, error) + QueryRow(query string, args ...any) *sql.Row +} diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 82aa9bc..29adf91 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -43,12 +43,12 @@ func wrapMapString_Addressable(in map[string]anysdk.Addressable) map[string]Addr } out := make(map[string]Addressable, len(in)) for k, v := range in { - out[k] = Addressable{inner: v} + out[k] = &wrappedAddressable{inner: v} } return out } -func unwrapMapString_Addressable(in map[string]Addressable) map[string]anysdk.Addressable { +func unwrapMapString_Addressable(in map[string]*wrappedAddressable) map[string]anysdk.Addressable { if in == nil { return nil } @@ -65,12 +65,12 @@ func wrapMapString_ProviderDescription(in map[string]anysdk.ProviderDescription) } out := make(map[string]ProviderDescription, len(in)) for k, v := range in { - out[k] = ProviderDescription{inner: v} + out[k] = &wrappedProviderDescription{inner: v} } return out } -func unwrapMapString_ProviderDescription(in map[string]ProviderDescription) map[string]anysdk.ProviderDescription { +func unwrapMapString_ProviderDescription(in map[string]*wrappedProviderDescription) map[string]anysdk.ProviderDescription { if in == nil { return nil } @@ -87,12 +87,12 @@ func wrapMapString_ProviderService(in map[string]anysdk.ProviderService) map[str } out := make(map[string]ProviderService, len(in)) for k, v := range in { - out[k] = ProviderService{inner: v} + out[k] = &wrappedProviderService{inner: v} } return out } -func unwrapMapString_ProviderService(in map[string]ProviderService) map[string]anysdk.ProviderService { +func unwrapMapString_ProviderService(in map[string]*wrappedProviderService) map[string]anysdk.ProviderService { if in == nil { return nil } @@ -109,12 +109,12 @@ func wrapMapString_Resource(in map[string]anysdk.Resource) map[string]Resource { } out := make(map[string]Resource, len(in)) for k, v := range in { - out[k] = Resource{inner: v} + out[k] = &wrappedResource{inner: v} } return out } -func unwrapMapString_Resource(in map[string]Resource) map[string]anysdk.Resource { +func unwrapMapString_Resource(in map[string]*wrappedResource) map[string]anysdk.Resource { if in == nil { return nil } @@ -138,12 +138,12 @@ func wrapSlice_Column(in []anysdk.Column) []Column { } out := make([]Column, 0, len(in)) for _, v := range in { - out = append(out, Column{inner: v}) + out = append(out, &wrappedColumn{inner: v}) } return out } -func unwrapSlice_Column(in []Column) []anysdk.Column { +func unwrapSlice_Column(in []*wrappedColumn) []anysdk.Column { if in == nil { return nil } @@ -160,12 +160,12 @@ func wrapSlice_HTTPArmouryParameters(in []anysdk.HTTPArmouryParameters) []HTTPAr } out := make([]HTTPArmouryParameters, 0, len(in)) for _, v := range in { - out = append(out, HTTPArmouryParameters{inner: v}) + out = append(out, &wrappedHTTPArmouryParameters{inner: v}) } return out } -func unwrapSlice_HTTPArmouryParameters(in []HTTPArmouryParameters) []anysdk.HTTPArmouryParameters { +func unwrapSlice_HTTPArmouryParameters(in []*wrappedHTTPArmouryParameters) []anysdk.HTTPArmouryParameters { if in == nil { return nil } @@ -182,12 +182,12 @@ func wrapSlice_SQLExternalColumn(in []anysdk.SQLExternalColumn) []SQLExternalCol } out := make([]SQLExternalColumn, 0, len(in)) for _, v := range in { - out = append(out, SQLExternalColumn{inner: v}) + out = append(out, &wrappedSQLExternalColumn{inner: v}) } return out } -func unwrapSlice_SQLExternalColumn(in []SQLExternalColumn) []anysdk.SQLExternalColumn { +func unwrapSlice_SQLExternalColumn(in []*wrappedSQLExternalColumn) []anysdk.SQLExternalColumn { if in == nil { return nil } @@ -204,12 +204,12 @@ func wrapSlice_StandardOperationStore(in []anysdk.StandardOperationStore) []Stan } out := make([]StandardOperationStore, 0, len(in)) for _, v := range in { - out = append(out, StandardOperationStore{inner: v}) + out = append(out, &wrappedStandardOperationStore{inner: v}) } return out } -func unwrapSlice_StandardOperationStore(in []StandardOperationStore) []anysdk.StandardOperationStore { +func unwrapSlice_StandardOperationStore(in []*wrappedStandardOperationStore) []anysdk.StandardOperationStore { if in == nil { return nil } @@ -226,12 +226,12 @@ func wrapSlice_View(in []anysdk.View) []View { } out := make([]View, 0, len(in)) for _, v := range in { - out = append(out, View{inner: v}) + out = append(out, &wrappedView{inner: v}) } return out } -func unwrapSlice_View(in []View) []anysdk.View { +func unwrapSlice_View(in []*wrappedView) []anysdk.View { if in == nil { return nil } @@ -242,16 +242,16 @@ func unwrapSlice_View(in []View) []anysdk.View { return out } -type AuthMetadata struct { +type wrappedAuthMetadata struct { inner *anysdk.AuthMetadata } -func (w *AuthMetadata) GetHeaders() []string { +func (w *wrappedAuthMetadata) GetHeaders() []string { r0 := w.inner.GetHeaders() return r0 } -func (w *AuthMetadata) ToMap() map[string]interface{} { +func (w *wrappedAuthMetadata) ToMap() map[string]interface{} { r0 := w.inner.ToMap() return r0 } @@ -262,7 +262,7 @@ type AuthCtx struct { func (w *AuthCtx) Clone() *AuthCtx { r0 := w.inner.Clone() - return wrapPtr_AuthCtx(r0) + return &AuthCtx{inner: r0} } func (w *AuthCtx) GetCredentialsBytes() ([]byte, error) { @@ -277,7 +277,7 @@ func (w *AuthCtx) GetCredentialsSourceDescriptorString() string { func (w *AuthCtx) GetSQLCfg() (SQLBackendCfg, bool) { r0, r1 := w.inner.GetSQLCfg() - return SQLBackendCfg{inner: r0}, r1 + return &wrappedSQLBackendCfg{inner: r0}, r1 } func (w *AuthCtx) HasKey() bool { @@ -285,359 +285,376 @@ func (w *AuthCtx) HasKey() bool { return r0 } -type RuntimeCtx struct { +type wrappedRuntimeCtx struct { inner dto.RuntimeCtx } -func (w RuntimeCtx) Copy() RuntimeCtx { +func (w *wrappedRuntimeCtx) Copy() RuntimeCtx { r0 := w.inner.Copy() - return RuntimeCtx{inner: r0} + return &wrappedRuntimeCtx{inner: r0} } -type AddressSpace struct { +type wrappedAddressSpace struct { inner anysdk.AddressSpace } -func (w AddressSpace) ToRelation(p0 anysdk.AddressSpaceExpansionConfig) (Relation, error) { +func (w *wrappedAddressSpace) ToRelation(p0 anysdk.AddressSpaceExpansionConfig) (Relation, error) { r0, r1 := w.inner.ToRelation(p0) - return Relation{inner: r0}, r1 + return &wrappedRelation{inner: r0}, r1 } func DeprecatedNewAddressable(inner anysdk.Addressable) Addressable { - return Addressable{inner: inner} + return newAddressable(inner) } -type Addressable struct { +func newAddressable(inner anysdk.Addressable) Addressable { + return &wrappedAddressable{inner: inner} +} + +type Addressable interface { + ConditionIsValid(lhs string, rhs interface{}) bool + GetName() string + GetType() string +} + +type wrappedAddressable struct { inner anysdk.Addressable } -func (w Addressable) ConditionIsValid(lhs string, rhs interface{}) bool { +func (w *wrappedAddressable) ConditionIsValid(lhs string, rhs interface{}) bool { r0 := w.inner.ConditionIsValid(lhs, rhs) return r0 } -func (w Addressable) GetName() string { +func (w *wrappedAddressable) GetName() string { r0 := w.inner.GetName() return r0 } -func (w Addressable) GetType() string { +func (w *wrappedAddressable) GetType() string { r0 := w.inner.GetType() return r0 } -type Column struct { +type wrappedColumn struct { inner anysdk.Column } -func (w Column) GetName() string { +func (w *wrappedColumn) GetName() string { r0 := w.inner.GetName() return r0 } -func (w Column) GetSchema() Schema { +func (w *wrappedColumn) GetSchema() Schema { r0 := w.inner.GetSchema() - return Schema{inner: r0} + return &wrappedSchema{inner: r0} } -func (w Column) GetWidth() int { +func (w *wrappedColumn) GetWidth() int { r0 := w.inner.GetWidth() return r0 } -type ExpectedRequest struct { +type wrappedExpectedRequest struct { inner anysdk.ExpectedRequest } -func (w ExpectedRequest) GetBodyMediaType() string { +func (w *wrappedExpectedRequest) GetBodyMediaType() string { r0 := w.inner.GetBodyMediaType() return r0 } -type ExpectedResponse struct { +type wrappedExpectedResponse struct { inner anysdk.ExpectedResponse } -func (w ExpectedResponse) GetObjectKey() string { +func (w *wrappedExpectedResponse) GetObjectKey() string { r0 := w.inner.GetObjectKey() return r0 } -func (w ExpectedResponse) GetTransform() (Transform, bool) { +func (w *wrappedExpectedResponse) GetTransform() (Transform, bool) { r0, r1 := w.inner.GetTransform() - return Transform{inner: r0}, r1 + return &wrappedTransform{inner: r0}, r1 } -type GraphQL struct { +type wrappedGraphQL struct { inner anysdk.GraphQL } -func (w GraphQL) GetCursorJSONPath() (string, bool) { +func (w *wrappedGraphQL) GetCursorJSONPath() (string, bool) { r0, r1 := w.inner.GetCursorJSONPath() return r0, r1 } -func (w GraphQL) GetQuery() string { +func (w *wrappedGraphQL) GetQuery() string { r0 := w.inner.GetQuery() return r0 } -func (w GraphQL) GetResponseJSONPath() (string, bool) { +func (w *wrappedGraphQL) GetResponseJSONPath() (string, bool) { r0, r1 := w.inner.GetResponseJSONPath() return r0, r1 } -type HTTPArmoury struct { +type wrappedHTTPArmoury struct { inner anysdk.HTTPArmoury } -func (w HTTPArmoury) GetRequestParams() []HTTPArmouryParameters { +func (w *wrappedHTTPArmoury) GetRequestParams() []HTTPArmouryParameters { r0 := w.inner.GetRequestParams() return wrapSlice_HTTPArmouryParameters(r0) } -func (w HTTPArmoury) SetRequestParams(p0 []HTTPArmouryParameters) { +func (w *wrappedHTTPArmoury) SetRequestParams(p0 []HTTPArmouryParameters) { inner_p0 := unwrapSlice_HTTPArmouryParameters(p0) w.inner.SetRequestParams(inner_p0) return } -type HTTPArmouryParameters struct { +type wrappedHTTPArmouryParameters struct { inner anysdk.HTTPArmouryParameters } -func (w HTTPArmouryParameters) Encode() string { +func (w *wrappedHTTPArmouryParameters) Encode() string { r0 := w.inner.Encode() return r0 } -func (w HTTPArmouryParameters) GetArgList() client.AnySdkArgList { +func (w *wrappedHTTPArmouryParameters) GetArgList() client.AnySdkArgList { r0 := w.inner.GetArgList() return r0 } -func (w HTTPArmouryParameters) GetParameters() HttpParameters { +func (w *wrappedHTTPArmouryParameters) GetParameters() HttpParameters { r0 := w.inner.GetParameters() - return HttpParameters{inner: r0} + return &wrappedHttpParameters{inner: r0} } -func (w HTTPArmouryParameters) GetQuery() url.Values { +func (w *wrappedHTTPArmouryParameters) GetQuery() url.Values { r0 := w.inner.GetQuery() return r0 } -func (w HTTPArmouryParameters) GetRequest() *http.Request { +func (w *wrappedHTTPArmouryParameters) GetRequest() *http.Request { r0 := w.inner.GetRequest() return r0 } -func (w HTTPArmouryParameters) SetNextPage(ops OperationStore, token string, tokenKey HTTPElement) (*http.Request, error) { - r0, r1 := w.inner.SetNextPage(ops.inner, token, tokenKey.inner) - return r0, r1 +func (w *wrappedHTTPArmouryParameters) SetNextPage(ops OperationStore, token string, tokenKey HTTPElement) (*http.Request, error) { + op, isWrapped := ops.(*wrappedOperationStore) + if isWrapped { + r0, r1 := w.inner.SetNextPage(op.inner, token, tokenKey) + return r0, r1 + } + key, isWrapped := tokenKey.(*wrappedHTTPElement) + if isWrapped { + tokenKey = key.inner + } } -func (w HTTPArmouryParameters) SetRawQuery(p0 string) { +func (w *wrappedHTTPArmouryParameters) SetRawQuery(p0 string) { w.inner.SetRawQuery(p0) return } -func (w HTTPArmouryParameters) ToFlatMap() (map[string]interface{}, error) { +func (w *wrappedHTTPArmouryParameters) ToFlatMap() (map[string]interface{}, error) { r0, r1 := w.inner.ToFlatMap() return r0, r1 } -type HTTPPreparator struct { +type wrappedHTTPPreparator struct { inner anysdk.HTTPPreparator } -func (w HTTPPreparator) BuildHTTPRequestCtx(p0 anysdk.HTTPPreparatorConfig) (HTTPArmoury, error) { +func (w *wrappedHTTPPreparator) BuildHTTPRequestCtx(p0 anysdk.HTTPPreparatorConfig) (HTTPArmoury, error) { r0, r1 := w.inner.BuildHTTPRequestCtx(p0) - return HTTPArmoury{inner: r0}, r1 + return &wrappedHTTPArmoury{inner: r0}, r1 } -type HttpParameters struct { +type wrappedHttpParameters struct { inner anysdk.HttpParameters } -func (w HttpParameters) GetInlineParameterFlatMap() (map[string]interface{}, error) { +func (w *wrappedHttpParameters) GetInlineParameterFlatMap() (map[string]interface{}, error) { r0, r1 := w.inner.GetInlineParameterFlatMap() return r0, r1 } -func (w HttpParameters) ToFlatMap() (map[string]interface{}, error) { +func (w *wrappedHttpParameters) ToFlatMap() (map[string]interface{}, error) { r0, r1 := w.inner.ToFlatMap() return r0, r1 } -type HttpPreparatorStream struct { +type wrappedHttpPreparatorStream struct { inner anysdk.HttpPreparatorStream } -func (w HttpPreparatorStream) Next() (HTTPPreparator, bool) { +func (w *wrappedHttpPreparatorStream) Next() (HTTPPreparator, bool) { r0, r1 := w.inner.Next() return HTTPPreparator{inner: r0}, r1 } -func (w HttpPreparatorStream) Write(p0 HTTPPreparator) error { +func (w *wrappedHttpPreparatorStream) Write(p0 *wrappedHTTPPreparator) error { r0 := w.inner.Write(p0.inner) return r0 } -type ITable struct { +type wrappedITable struct { inner anysdk.ITable } -func (w ITable) GetKey(p0 string) (interface{}, error) { +func (w *wrappedITable) GetKey(p0 string) (interface{}, error) { r0, r1 := w.inner.GetKey(p0) return r0, r1 } -func (w ITable) GetKeyAsSqlVal(p0 string) (sqltypes.Value, error) { +func (w *wrappedITable) GetKeyAsSqlVal(p0 string) (sqltypes.Value, error) { r0, r1 := w.inner.GetKeyAsSqlVal(p0) return r0, r1 } -func (w ITable) GetName() string { +func (w *wrappedITable) GetName() string { r0 := w.inner.GetName() return r0 } -func (w ITable) KeyExists(p0 string) bool { +func (w *wrappedITable) KeyExists(p0 string) bool { r0 := w.inner.KeyExists(p0) return r0 } -type MethodAnalysisOutput struct { +type wrappedMethodAnalysisOutput struct { inner anysdk.MethodAnalysisOutput } -func (w MethodAnalysisOutput) GetInsertTabulation() Tabulation { +func (w *wrappedMethodAnalysisOutput) GetInsertTabulation() *wrappedTabulation { r0 := w.inner.GetInsertTabulation() return Tabulation{inner: r0} } -func (w MethodAnalysisOutput) GetItemSchema() (Schema, bool) { +func (w *wrappedMethodAnalysisOutput) GetItemSchema() (Schema, bool) { r0, r1 := w.inner.GetItemSchema() return Schema{inner: r0}, r1 } -func (w MethodAnalysisOutput) GetOrderedStarColumnsNames() ([]string, error) { +func (w *wrappedMethodAnalysisOutput) GetOrderedStarColumnsNames() ([]string, error) { r0, r1 := w.inner.GetOrderedStarColumnsNames() return r0, r1 } -func (w MethodAnalysisOutput) GetSelectTabulation() Tabulation { +func (w *wrappedMethodAnalysisOutput) GetSelectTabulation() *wrappedTabulation { r0 := w.inner.GetSelectTabulation() return Tabulation{inner: r0} } -func (w MethodAnalysisOutput) IsAwait() bool { +func (w *wrappedMethodAnalysisOutput) IsAwait() bool { r0 := w.inner.IsAwait() return r0 } -func (w MethodAnalysisOutput) IsNilResponseAllowed() bool { +func (w *wrappedMethodAnalysisOutput) IsNilResponseAllowed() bool { r0 := w.inner.IsNilResponseAllowed() return r0 } -type MethodAnalyzer struct { +type wrappedMethodAnalyzer struct { inner anysdk.MethodAnalyzer } -func (w MethodAnalyzer) AnalyzeUnaryAction(p0 anysdk.MethodAnalysisInput) (MethodAnalysisOutput, error) { +func (w *wrappedMethodAnalyzer) AnalyzeUnaryAction(p0 anysdk.MethodAnalysisInput) (MethodAnalysisOutput, error) { r0, r1 := w.inner.AnalyzeUnaryAction(p0) return MethodAnalysisOutput{inner: r0}, r1 } -type Methods struct { +type wrappedMethods struct { inner anysdk.Methods } -func (w Methods) OrderMethods() ([]StandardOperationStore, error) { +func (w *wrappedMethods) OrderMethods() ([]*wrappedStandardOperationStore, error) { r0, r1 := w.inner.OrderMethods() return wrapSlice_StandardOperationStore(r0), r1 } -type OperationInverse struct { +type wrappedOperationInverse struct { inner anysdk.OperationInverse } -func (w OperationInverse) GetOperationStore() (StandardOperationStore, bool) { +func (w *wrappedOperationInverse) GetOperationStore() (StandardOperationStore, bool) { r0, r1 := w.inner.GetOperationStore() return StandardOperationStore{inner: r0}, r1 } -type OperationStore struct { +type wrappedOperationStore struct { inner anysdk.OperationStore } -func (w OperationStore) DeprecatedProcessResponse(response *http.Response) (map[string]interface{}, error) { +func (w *wrappedOperationStore) DeprecatedProcessResponse(response *http.Response) (map[string]interface{}, error) { r0, r1 := w.inner.DeprecatedProcessResponse(response) return r0, r1 } -func (w OperationStore) GetName() string { +func (w *wrappedOperationStore) GetName() string { r0 := w.inner.GetName() return r0 } -func (w OperationStore) GetNonBodyParameters() map[string]Addressable { +func (w *wrappedOperationStore) GetNonBodyParameters() map[string]Addressable { r0 := w.inner.GetNonBodyParameters() return wrapMapString_Addressable(r0) } -func (w OperationStore) GetPaginationRequestTokenSemantic() (TokenSemantic, bool) { +func (w *wrappedOperationStore) GetPaginationRequestTokenSemantic() (TokenSemantic, bool) { r0, r1 := w.inner.GetPaginationRequestTokenSemantic() return TokenSemantic{inner: r0}, r1 } -func (w OperationStore) GetPaginationResponseTokenSemantic() (TokenSemantic, bool) { +func (w *wrappedOperationStore) GetPaginationResponseTokenSemantic() (TokenSemantic, bool) { r0, r1 := w.inner.GetPaginationResponseTokenSemantic() return TokenSemantic{inner: r0}, r1 } -func (w OperationStore) GetParameter(paramKey string) (Addressable, bool) { +func (w *wrappedOperationStore) GetParameter(paramKey string) (Addressable, bool) { r0, r1 := w.inner.GetParameter(paramKey) return Addressable{inner: r0}, r1 } -func (w OperationStore) GetRequestBodySchema() (Schema, error) { +func (w *wrappedOperationStore) GetRequestBodySchema() (Schema, error) { r0, r1 := w.inner.GetRequestBodySchema() return Schema{inner: r0}, r1 } -func (w OperationStore) GetRequiredNonBodyParameters() map[string]Addressable { +func (w *wrappedOperationStore) GetRequiredNonBodyParameters() map[string]*wrappedAddressable { r0 := w.inner.GetRequiredNonBodyParameters() return wrapMapString_Addressable(r0) } -func (w OperationStore) GetRequiredParameters() map[string]Addressable { +func (w *wrappedOperationStore) GetRequiredParameters() map[string]*wrappedAddressable { r0 := w.inner.GetRequiredParameters() return wrapMapString_Addressable(r0) } -func (w OperationStore) GetResource() Resource { +func (w *wrappedOperationStore) GetResource() Resource { r0 := w.inner.GetResource() return Resource{inner: r0} } -func (w OperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { +func (w *wrappedOperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { r0, r1, r2 := w.inner.GetResponseBodySchemaAndMediaType() return Schema{inner: r0}, r1, r2 } -func (w OperationStore) GetSelectItemsKey() string { +func (w *wrappedOperationStore) GetSelectItemsKey() string { r0 := w.inner.GetSelectItemsKey() return r0 } -func (w OperationStore) GetService() anysdk.OpenAPIService { +func (w *wrappedOperationStore) GetService() anysdk.OpenAPIService { r0 := w.inner.GetService() return r0 } -func (w OperationStore) IsRequestBodyAttributeRenamed(p0 string) bool { +func (w *wrappedOperationStore) IsRequestBodyAttributeRenamed(p0 string) bool { r0 := w.inner.IsRequestBodyAttributeRenamed(p0) return r0 } @@ -662,560 +679,560 @@ func (w OperationStore) RevertRequestBodyAttributeRename(p0 string) (string, err return r0, r1 } -type ProcessedOperationResponse struct { +type wrappedProcessedOperationResponse struct { inner anysdk.ProcessedOperationResponse } -func (w ProcessedOperationResponse) GetResponse() (Response, bool) { +func (w *wrappedProcessedOperationResponse) GetResponse() (Response, bool) { r0, r1 := w.inner.GetResponse() - return Response{inner: r0}, r1 + return &wrappedResponse{inner: r0}, r1 } -func (w ProcessedOperationResponse) GetReversal() (HTTPPreparator, bool) { +func (w *wrappedProcessedOperationResponse) GetReversal() (HTTPPreparator, bool) { r0, r1 := w.inner.GetReversal() - return HTTPPreparator{inner: r0}, r1 + return &wrappedHTTPPreparator{inner: r0}, r1 } -type Provider struct { +type wrappedProvider struct { inner anysdk.Provider } -func (w Provider) GetAuth() (AuthDTO, bool) { +func (w *wrappedProvider) GetAuth() (AuthDTO, bool) { r0, r1 := w.inner.GetAuth() - return AuthDTO{inner: r0}, r1 + return &wrappedAuthDTO{inner: r0}, r1 } -func (w Provider) GetDeleteItemsKey() string { +func (w *wrappedProvider) GetDeleteItemsKey() string { r0 := w.inner.GetDeleteItemsKey() return r0 } -func (w Provider) GetMinStackQLVersion() string { +func (w *wrappedProvider) GetMinStackQLVersion() string { r0 := w.inner.GetMinStackQLVersion() return r0 } -func (w Provider) GetName() string { +func (w *wrappedProvider) GetName() string { r0 := w.inner.GetName() return r0 } -func (w Provider) GetProtocolType() (client.ClientProtocolType, error) { +func (w *wrappedProvider) GetProtocolType() (client.ClientProtocolType, error) { r0, r1 := w.inner.GetProtocolType() return r0, r1 } -type ProviderDescription struct { +type wrappedProviderDescription struct { inner anysdk.ProviderDescription } -func (w ProviderDescription) GetLatestVersion() (string, error) { +func (w *wrappedProviderDescription) GetLatestVersion() (string, error) { r0, r1 := w.inner.GetLatestVersion() return r0, r1 } -type ProviderService struct { +type wrappedProviderService struct { inner anysdk.ProviderService } -func (w ProviderService) GetDescription() string { +func (w *wrappedProviderService) GetDescription() string { r0 := w.inner.GetDescription() return r0 } -func (w ProviderService) GetID() string { +func (w *wrappedProviderService) GetID() string { r0 := w.inner.GetID() return r0 } -func (w ProviderService) GetName() string { +func (w *wrappedProviderService) GetName() string { r0 := w.inner.GetName() return r0 } -func (w ProviderService) GetTitle() string { +func (w *wrappedProviderService) GetTitle() string { r0 := w.inner.GetTitle() return r0 } -func (w ProviderService) GetVersion() string { +func (w *wrappedProviderService) GetVersion() string { r0 := w.inner.GetVersion() return r0 } -func (w ProviderService) IsPreferred() bool { +func (w *wrappedProviderService) IsPreferred() bool { r0 := w.inner.IsPreferred() return r0 } -type RegistryAPI struct { +type wrappedRegistryAPI struct { inner anysdk.RegistryAPI } -func (w RegistryAPI) ClearProviderCache(p0 string) error { +func (w *wrappedRegistryAPI) ClearProviderCache(p0 string) error { r0 := w.inner.ClearProviderCache(p0) return r0 } -func (w RegistryAPI) GetLatestPublishedVersion(p0 string) (string, error) { +func (w *wrappedRegistryAPI) GetLatestPublishedVersion(p0 string) (string, error) { r0, r1 := w.inner.GetLatestPublishedVersion(p0) return r0, r1 } -func (w RegistryAPI) ListAllAvailableProviders() (map[string]ProviderDescription, error) { +func (w *wrappedRegistryAPI) ListAllAvailableProviders() (map[string]ProviderDescription, error) { r0, r1 := w.inner.ListAllAvailableProviders() return wrapMapString_ProviderDescription(r0), r1 } -func (w RegistryAPI) ListAllProviderVersions(p0 string) (map[string]ProviderDescription, error) { +func (w *wrappedRegistryAPI) ListAllProviderVersions(p0 string) (map[string]ProviderDescription, error) { r0, r1 := w.inner.ListAllProviderVersions(p0) return wrapMapString_ProviderDescription(r0), r1 } -func (w RegistryAPI) ListLocallyAvailableProviders() map[string]ProviderDescription { +func (w *wrappedRegistryAPI) ListLocallyAvailableProviders() map[string]ProviderDescription { r0 := w.inner.ListLocallyAvailableProviders() return wrapMapString_ProviderDescription(r0) } -func (w RegistryAPI) LoadProviderByName(p0 string, p1 string) (Provider, error) { +func (w *wrappedRegistryAPI) LoadProviderByName(p0 string, p1 string) (Provider, error) { r0, r1 := w.inner.LoadProviderByName(p0, p1) - return Provider{inner: r0}, r1 + return &wrappedProvider{inner: r0}, r1 } -func (w RegistryAPI) PullAndPersistProviderArchive(p0 string, p1 string) error { +func (w *wrappedRegistryAPI) PullAndPersistProviderArchive(p0 string, p1 string) error { r0 := w.inner.PullAndPersistProviderArchive(p0, p1) return r0 } -func (w RegistryAPI) RemoveProviderVersion(p0 string, p1 string) error { +func (w *wrappedRegistryAPI) RemoveProviderVersion(p0 string, p1 string) error { r0 := w.inner.RemoveProviderVersion(p0, p1) return r0 } -type Relation struct { +type wrappedRelation struct { inner anysdk.Relation } -func (w Relation) GetColumnDescriptors() []anysdk.ColumnDescriptor { +func (w *wrappedRelation) GetColumnDescriptors() []anysdk.ColumnDescriptor { r0 := w.inner.GetColumnDescriptors() return r0 } -func (w Relation) GetColumns() []Column { +func (w *wrappedRelation) GetColumns() []Column { r0 := w.inner.GetColumns() return wrapSlice_Column(r0) } -type Resource struct { +type wrappedResource struct { inner anysdk.Resource } -func (w Resource) FindMethod(key string) (StandardOperationStore, error) { +func (w *wrappedResource) FindMethod(key string) (StandardOperationStore, error) { r0, r1 := w.inner.FindMethod(key) - return StandardOperationStore{inner: r0}, r1 + return &wrappedStandardOperationStore{inner: r0}, r1 } -func (w Resource) GetFirstMethodFromSQLVerb(sqlVerb string) (StandardOperationStore, string, bool) { +func (w *wrappedResource) GetFirstMethodFromSQLVerb(sqlVerb string) (StandardOperationStore, string, bool) { r0, r1, r2 := w.inner.GetFirstMethodFromSQLVerb(sqlVerb) - return StandardOperationStore{inner: r0}, r1, r2 + return &wrappedStandardOperationStore{inner: r0}, r1, r2 } -func (w Resource) GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb string, parameters map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) { +func (w *wrappedResource) GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb string, parameters map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) { r0, r1, r2 := w.inner.GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb, parameters) - return StandardOperationStore{inner: r0}, r1, r2 + return &wrappedStandardOperationStore{inner: r0}, r1, r2 } -func (w Resource) GetID() string { +func (w *wrappedResource) GetID() string { r0 := w.inner.GetID() return r0 } -func (w Resource) GetMethodsMatched() Methods { +func (w *wrappedResource) GetMethodsMatched() Methods { r0 := w.inner.GetMethodsMatched() - return Methods{inner: r0} + return &wrappedMethods{inner: r0} } -func (w Resource) GetName() string { +func (w *wrappedResource) GetName() string { r0 := w.inner.GetName() return r0 } -func (w Resource) GetViewsForSqlDialect(sqlDialect string) ([]View, bool) { +func (w *wrappedResource) GetViewsForSqlDialect(sqlDialect string) ([]View, bool) { r0, r1 := w.inner.GetViewsForSqlDialect(sqlDialect) return wrapSlice_View(r0), r1 } -func (w Resource) ToMap(extended bool) map[string]interface{} { +func (w *wrappedResource) ToMap(extended bool) map[string]interface{} { r0 := w.inner.ToMap(extended) return r0 } -type SQLExternalColumn struct { +type wrappedSQLExternalColumn struct { inner anysdk.SQLExternalColumn } -func (w SQLExternalColumn) GetName() string { +func (w *wrappedSQLExternalColumn) GetName() string { r0 := w.inner.GetName() return r0 } -func (w SQLExternalColumn) GetOid() uint32 { +func (w *wrappedSQLExternalColumn) GetOid() uint32 { r0 := w.inner.GetOid() return r0 } -func (w SQLExternalColumn) GetPrecision() int { +func (w *wrappedSQLExternalColumn) GetPrecision() int { r0 := w.inner.GetPrecision() return r0 } -func (w SQLExternalColumn) GetType() string { +func (w *wrappedSQLExternalColumn) GetType() string { r0 := w.inner.GetType() return r0 } -func (w SQLExternalColumn) GetWidth() int { +func (w *wrappedSQLExternalColumn) GetWidth() int { r0 := w.inner.GetWidth() return r0 } -type SQLExternalTable struct { +type wrappedSQLExternalTable struct { inner anysdk.SQLExternalTable } -func (w SQLExternalTable) GetCatalogName() string { +func (w *wrappedSQLExternalTable) GetCatalogName() string { r0 := w.inner.GetCatalogName() return r0 } -func (w SQLExternalTable) GetColumns() []SQLExternalColumn { +func (w *wrappedSQLExternalTable) GetColumns() []SQLExternalColumn { r0 := w.inner.GetColumns() return wrapSlice_SQLExternalColumn(r0) } -func (w SQLExternalTable) GetName() string { +func (w *wrappedSQLExternalTable) GetName() string { r0 := w.inner.GetName() return r0 } -func (w SQLExternalTable) GetSchemaName() string { +func (w *wrappedSQLExternalTable) GetSchemaName() string { r0 := w.inner.GetSchemaName() return r0 } -type Schema struct { +type wrappedSchema struct { inner anysdk.Schema } -func (w Schema) FindByPath(path string, visited map[string]bool) Schema { +func (w *wrappedSchema) FindByPath(path string, visited map[string]bool) Schema { r0 := w.inner.FindByPath(path, visited) - return Schema{inner: r0} + return &wrappedSchema{inner: r0} } -func (w Schema) GetAdditionalProperties() (Schema, bool) { +func (w *wrappedSchema) GetAdditionalProperties() (Schema, bool) { r0, r1 := w.inner.GetAdditionalProperties() - return Schema{inner: r0}, r1 + return &wrappedSchema{inner: r0}, r1 } -func (w Schema) GetAllColumns(p0 string) []string { +func (w *wrappedSchema) GetAllColumns(p0 string) []string { r0 := w.inner.GetAllColumns(p0) return r0 } -func (w Schema) GetItemsSchema() (Schema, error) { +func (w *wrappedSchema) GetItemsSchema() (Schema, error) { r0, r1 := w.inner.GetItemsSchema() - return Schema{inner: r0}, r1 + return &wrappedSchema{inner: r0}, r1 } -func (w Schema) GetName() string { +func (w *wrappedSchema) GetName() string { r0 := w.inner.GetName() return r0 } -func (w Schema) GetProperties() (anysdk.Schemas, error) { +func (w *wrappedSchema) GetProperties() (anysdk.Schemas, error) { r0, r1 := w.inner.GetProperties() return r0, r1 } -func (w Schema) GetProperty(propertyKey string) (Schema, bool) { +func (w *wrappedSchema) GetProperty(propertyKey string) (Schema, bool) { r0, r1 := w.inner.GetProperty(propertyKey) - return Schema{inner: r0}, r1 + return &wrappedSchema{inner: r0}, r1 } -func (w Schema) GetPropertySchema(key string) (Schema, error) { +func (w *wrappedSchema) GetPropertySchema(key string) (Schema, error) { r0, r1 := w.inner.GetPropertySchema(key) - return Schema{inner: r0}, r1 + return &wrappedSchema{inner: r0}, r1 } -func (w Schema) GetSelectSchema(itemsKey string, mediaType string) (Schema, string, error) { +func (w *wrappedSchema) GetSelectSchema(itemsKey string, mediaType string) (Schema, string, error) { r0, r1, r2 := w.inner.GetSelectSchema(itemsKey, mediaType) - return Schema{inner: r0}, r1, r2 + return &wrappedSchema{inner: r0}, r1, r2 } -func (w Schema) GetSelectionName() string { +func (w *wrappedSchema) GetSelectionName() string { r0 := w.inner.GetSelectionName() return r0 } -func (w Schema) GetTitle() string { +func (w *wrappedSchema) GetTitle() string { r0 := w.inner.GetTitle() return r0 } -func (w Schema) GetType() string { +func (w *wrappedSchema) GetType() string { r0 := w.inner.GetType() return r0 } -func (w Schema) IsBoolean() bool { +func (w *wrappedSchema) IsBoolean() bool { r0 := w.inner.IsBoolean() return r0 } -func (w Schema) IsFloat() bool { +func (w *wrappedSchema) IsFloat() bool { r0 := w.inner.IsFloat() return r0 } -func (w Schema) IsIntegral() bool { +func (w *wrappedSchema) IsIntegral() bool { r0 := w.inner.IsIntegral() return r0 } -func (w Schema) IsReadOnly() bool { +func (w *wrappedSchema) IsReadOnly() bool { r0 := w.inner.IsReadOnly() return r0 } -func (w Schema) IsRequired(key string) bool { +func (w *wrappedSchema) IsRequired(key string) bool { r0 := w.inner.IsRequired(key) return r0 } -func (w Schema) SetKey(p0 string) { +func (w *wrappedSchema) SetKey(p0 string) { w.inner.SetKey(p0) return } -func (w Schema) Tabulate(p0 bool, p1 string) Tabulation { +func (w *wrappedSchema) Tabulate(p0 bool, p1 string) Tabulation { r0 := w.inner.Tabulate(p0, p1) - return Tabulation{inner: r0} + return &wrappedTabulation{inner: r0} } -func (w Schema) ToDescriptionMap(extended bool) map[string]interface{} { +func (w *wrappedSchema) ToDescriptionMap(extended bool) map[string]interface{} { r0 := w.inner.ToDescriptionMap(extended) return r0 } -type Service struct { +type wrappedService struct { inner anysdk.Service } -func (w Service) GetResource(resourceName string) (Resource, error) { +func (w *wrappedService) GetResource(resourceName string) (Resource, error) { r0, r1 := w.inner.GetResource(resourceName) - return Resource{inner: r0}, r1 + return &wrappedResource{inner: r0}, r1 } -func (w Service) GetSchema(key string) (Schema, error) { +func (w *wrappedService) GetSchema(key string) (Schema, error) { r0, r1 := w.inner.GetSchema(key) - return Schema{inner: r0}, r1 + return &wrappedSchema{inner: r0}, r1 } -func (w Service) GetServers() (openapi3.Servers, bool) { +func (w *wrappedService) GetServers() (openapi3.Servers, bool) { r0, r1 := w.inner.GetServers() return r0, r1 } -type StandardOperationStore struct { +type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } -func (w StandardOperationStore) GetAddressSpace() (AddressSpace, bool) { +func (w *wrappedStandardOperationStore) GetAddressSpace() (AddressSpace, bool) { r0, r1 := w.inner.GetAddressSpace() - return AddressSpace{inner: r0}, r1 + return &wrappedAddressSpace{inner: r0}, r1 } -func (w StandardOperationStore) GetColumnOrder(extended bool) []string { +func (w *wrappedStandardOperationStore) GetColumnOrder(extended bool) []string { r0 := w.inner.GetColumnOrder(extended) return r0 } -func (w StandardOperationStore) GetGraphQL() GraphQL { +func (w *wrappedStandardOperationStore) GetGraphQL() GraphQL { r0 := w.inner.GetGraphQL() - return GraphQL{inner: r0} + return &wrappedGraphQL{inner: r0} } -func (w StandardOperationStore) GetInline() []string { +func (w *wrappedStandardOperationStore) GetInline() []string { r0 := w.inner.GetInline() return r0 } -func (w StandardOperationStore) GetInverse() (OperationInverse, bool) { +func (w *wrappedStandardOperationStore) GetInverse() (OperationInverse, bool) { r0, r1 := w.inner.GetInverse() - return OperationInverse{inner: r0}, r1 + return &wrappedOperationInverse{inner: r0}, r1 } -func (w StandardOperationStore) GetName() string { +func (w *wrappedStandardOperationStore) GetName() string { r0 := w.inner.GetName() return r0 } -func (w StandardOperationStore) GetOptionalParameters() map[string]Addressable { +func (w *wrappedStandardOperationStore) GetOptionalParameters() map[string]Addressable { r0 := w.inner.GetOptionalParameters() return wrapMapString_Addressable(r0) } -func (w StandardOperationStore) GetPaginationRequestTokenSemantic() (TokenSemantic, bool) { +func (w *wrappedStandardOperationStore) GetPaginationRequestTokenSemantic() (TokenSemantic, bool) { r0, r1 := w.inner.GetPaginationRequestTokenSemantic() return TokenSemantic{inner: r0}, r1 } -func (w StandardOperationStore) GetPaginationResponseTokenSemantic() (TokenSemantic, bool) { +func (w *wrappedStandardOperationStore) GetPaginationResponseTokenSemantic() (TokenSemantic, bool) { r0, r1 := w.inner.GetPaginationResponseTokenSemantic() return TokenSemantic{inner: r0}, r1 } -func (w StandardOperationStore) GetParameter(paramKey string) (Addressable, bool) { +func (w *wrappedStandardOperationStore) GetParameter(paramKey string) (Addressable, bool) { r0, r1 := w.inner.GetParameter(paramKey) return Addressable{inner: r0}, r1 } -func (w StandardOperationStore) GetProjections() map[string]string { +func (w *wrappedStandardOperationStore) GetProjections() map[string]string { r0 := w.inner.GetProjections() return r0 } -func (w StandardOperationStore) GetRequest() (ExpectedRequest, bool) { +func (w *wrappedStandardOperationStore) GetRequest() (ExpectedRequest, bool) { r0, r1 := w.inner.GetRequest() return ExpectedRequest{inner: r0}, r1 } -func (w StandardOperationStore) GetRequestBodySchema() (Schema, error) { +func (w *wrappedStandardOperationStore) GetRequestBodySchema() (Schema, error) { r0, r1 := w.inner.GetRequestBodySchema() - return Schema{inner: r0}, r1 + return &wrappedSchema{inner: r0}, r1 } -func (w StandardOperationStore) GetRequiredParameters() map[string]Addressable { +func (w *wrappedStandardOperationStore) GetRequiredParameters() map[string]Addressable { r0 := w.inner.GetRequiredParameters() return wrapMapString_Addressable(r0) } -func (w StandardOperationStore) GetResponse() (ExpectedResponse, bool) { +func (w *wrappedStandardOperationStore) GetResponse() (ExpectedResponse, bool) { r0, r1 := w.inner.GetResponse() return ExpectedResponse{inner: r0}, r1 } -func (w StandardOperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { +func (w *wrappedStandardOperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { r0, r1, r2 := w.inner.GetResponseBodySchemaAndMediaType() - return Schema{inner: r0}, r1, r2 + return &wrappedSchema{inner: r0}, r1, r2 } -func (w StandardOperationStore) GetSelectItemsKey() string { +func (w *wrappedStandardOperationStore) GetSelectItemsKey() string { r0 := w.inner.GetSelectItemsKey() return r0 } -func (w StandardOperationStore) GetSelectSchemaAndObjectPath() (Schema, string, error) { +func (w *wrappedStandardOperationStore) GetSelectSchemaAndObjectPath() (Schema, string, error) { r0, r1, r2 := w.inner.GetSelectSchemaAndObjectPath() - return Schema{inner: r0}, r1, r2 + return &wrappedSchema{inner: r0}, r1, r2 } -func (w StandardOperationStore) GetServers() (openapi3.Servers, bool) { +func (w *wrappedStandardOperationStore) GetServers() (openapi3.Servers, bool) { r0, r1 := w.inner.GetServers() return r0, r1 } -func (w StandardOperationStore) IsAwaitable() bool { +func (w *wrappedStandardOperationStore) IsAwaitable() bool { r0 := w.inner.IsAwaitable() return r0 } -func (w StandardOperationStore) IsNullary() bool { +func (w *wrappedStandardOperationStore) IsNullary() bool { r0 := w.inner.IsNullary() return r0 } -func (w StandardOperationStore) ToPresentationMap(extended bool) map[string]interface{} { +func (w *wrappedStandardOperationStore) ToPresentationMap(extended bool) map[string]interface{} { r0 := w.inner.ToPresentationMap(extended) return r0 } -type Tabulation struct { +type wrappedTabulation struct { inner anysdk.Tabulation } -func (w Tabulation) GetColumns() []anysdk.ColumnDescriptor { +func (w *wrappedTabulation) GetColumns() []anysdk.ColumnDescriptor { r0 := w.inner.GetColumns() return r0 } -func (w Tabulation) PushBackColumn(col anysdk.ColumnDescriptor) { +func (w *wrappedTabulation) PushBackColumn(col anysdk.ColumnDescriptor) { w.inner.PushBackColumn(col) return } -func (w Tabulation) RenameColumnsToXml() Tabulation { +func (w *wrappedTabulation) RenameColumnsToXml() Tabulation { r0 := w.inner.RenameColumnsToXml() - return Tabulation{inner: r0} + return &wrappedTabulation{inner: r0} } -type TokenSemantic struct { +type wrappedTokenSemantic struct { inner anysdk.TokenSemantic } -func (w TokenSemantic) GetKey() string { +func (w *wrappedTokenSemantic) GetKey() string { r0 := w.inner.GetKey() return r0 } -func (w TokenSemantic) GetLocation() string { +func (w *wrappedTokenSemantic) GetLocation() string { r0 := w.inner.GetLocation() return r0 } -func (w TokenSemantic) GetTransformer() (anysdk.TokenTransformer, error) { +func (w *wrappedTokenSemantic) GetTransformer() (anysdk.TokenTransformer, error) { r0, r1 := w.inner.GetTransformer() return r0, r1 } -type Transform struct { +type wrappedTransform struct { inner anysdk.Transform } -func (w Transform) GetBody() string { +func (w *wrappedTransform) GetBody() string { r0 := w.inner.GetBody() return r0 } -func (w Transform) GetType() string { +func (w *wrappedTransform) GetType() string { r0 := w.inner.GetType() return r0 } -type View struct { +type wrappedView struct { inner anysdk.View } -func (w View) GetDDL() string { +func (w *wrappedView) GetDDL() string { r0 := w.inner.GetDDL() return r0 } -func (w View) GetNameNaive() string { +func (w *wrappedView) GetNameNaive() string { r0 := w.inner.GetNameNaive() return r0 } -func (w View) GetRequiredParamNames() []string { +func (w *wrappedView) GetRequiredParamNames() []string { r0 := w.inner.GetRequiredParamNames() return r0 } -type AuthUtility struct { +type wrappedAuthUtility struct { inner auth_util.AuthUtility } -func (w AuthUtility) ActivateAuth(authCtx *AuthCtx, principal string, authType string) { +func (w *wrappedAuthUtility) ActivateAuth(authCtx *wrappedAuthCtx, principal string, authType string) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1224,7 +1241,7 @@ func (w AuthUtility) ActivateAuth(authCtx *AuthCtx, principal string, authType s return } -func (w AuthUtility) ApiTokenAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext, enforceBearer bool) (*http.Client, error) { +func (w *wrappedAuthUtility) ApiTokenAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext, enforceBearer bool) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1233,7 +1250,7 @@ func (w AuthUtility) ApiTokenAuth(authCtx *AuthCtx, httpContext netutils.HTTPCon return r0, r1 } -func (w AuthUtility) AuthRevoke(authCtx *AuthCtx) error { +func (w *wrappedAuthUtility) AuthRevoke(authCtx *wrappedAuthCtx) error { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1242,7 +1259,7 @@ func (w AuthUtility) AuthRevoke(authCtx *AuthCtx) error { return r0 } -func (w AuthUtility) AwsSigningAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) AwsSigningAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1251,7 +1268,7 @@ func (w AuthUtility) AwsSigningAuth(authCtx *AuthCtx, httpContext netutils.HTTPC return r0, r1 } -func (w AuthUtility) AzureDefaultAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) AzureDefaultAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1260,7 +1277,7 @@ func (w AuthUtility) AzureDefaultAuth(authCtx *AuthCtx, httpContext netutils.HTT return r0, r1 } -func (w AuthUtility) BasicAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) BasicAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1269,7 +1286,7 @@ func (w AuthUtility) BasicAuth(authCtx *AuthCtx, httpContext netutils.HTTPContex return r0, r1 } -func (w AuthUtility) CustomAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) CustomAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1278,7 +1295,7 @@ func (w AuthUtility) CustomAuth(authCtx *AuthCtx, httpContext netutils.HTTPConte return r0, r1 } -func (w AuthUtility) GCloudOAuth(runtimeCtx RuntimeCtx, authCtx *AuthCtx, enforceRevokeFirst bool) (*http.Client, error) { +func (w *wrappedAuthUtility) GCloudOAuth(runtimeCtx RuntimeCtx, authCtx *wrappedAuthCtx, enforceRevokeFirst bool) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1287,7 +1304,7 @@ func (w AuthUtility) GCloudOAuth(runtimeCtx RuntimeCtx, authCtx *AuthCtx, enforc return r0, r1 } -func (w AuthUtility) GenericOauthClientCredentials(authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) GenericOauthClientCredentials(authCtx *wrappedAuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1296,12 +1313,12 @@ func (w AuthUtility) GenericOauthClientCredentials(authCtx *AuthCtx, scopes []st return r0, r1 } -func (w AuthUtility) GetCurrentGCloudOauthUser() ([]byte, error) { +func (w *wrappedAuthUtility) GetCurrentGCloudOauthUser() ([]byte, error) { r0, r1 := w.inner.GetCurrentGCloudOauthUser() return r0, r1 } -func (w AuthUtility) GoogleOauthServiceAccount(provider string, authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) GoogleOauthServiceAccount(provider string, authCtx *wrappedAuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1310,7 +1327,7 @@ func (w AuthUtility) GoogleOauthServiceAccount(provider string, authCtx *AuthCtx return r0, r1 } -func (w AuthUtility) ParseServiceAccountFile(ac *AuthCtx) (any, error) { +func (w *wrappedAuthUtility) ParseServiceAccountFile(ac *wrappedAuthCtx) (any, error) { var inner_ac *dto.AuthCtx if ac != nil { inner_ac = ac.inner @@ -1319,11 +1336,11 @@ func (w AuthUtility) ParseServiceAccountFile(ac *AuthCtx) (any, error) { return r0, r1 } -type AnySdkClientConfigurator struct { +type wrappedAnySdkClientConfigurator struct { inner client.AnySdkClientConfigurator } -func (w AnySdkClientConfigurator) Auth(authCtx *AuthCtx, authTypeRequested string, enforceRevokeFirst bool) (client.AnySdkClient, error) { +func (w *wrappedAnySdkClientConfigurator) Auth(authCtx *wrappedAuthCtx, authTypeRequested string, enforceRevokeFirst bool) (client.AnySdkClient, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1332,340 +1349,340 @@ func (w AnySdkClientConfigurator) Auth(authCtx *AuthCtx, authTypeRequested strin return r0, r1 } -type AnySdkResponse struct { +type wrappedAnySdkResponse struct { inner client.AnySdkResponse } -func (w AnySdkResponse) GetHttpResponse() (*http.Response, error) { +func (w *wrappedAnySdkResponse) GetHttpResponse() (*http.Response, error) { r0, r1 := w.inner.GetHttpResponse() return r0, r1 } -type ControlAttributes struct { +type wrappedControlAttributes struct { inner sqlcontrol.ControlAttributes } -func (w ControlAttributes) GetControlGCStatusColumnName() string { +func (w *wrappedControlAttributes) GetControlGCStatusColumnName() string { r0 := w.inner.GetControlGCStatusColumnName() return r0 } -func (w ControlAttributes) GetControlGenIDColumnName() string { +func (w *wrappedControlAttributes) GetControlGenIDColumnName() string { r0 := w.inner.GetControlGenIDColumnName() return r0 } -func (w ControlAttributes) GetControlInsIDColumnName() string { +func (w *wrappedControlAttributes) GetControlInsIDColumnName() string { r0 := w.inner.GetControlInsIDColumnName() return r0 } -func (w ControlAttributes) GetControlInsertEncodedIDColumnName() string { +func (w *wrappedControlAttributes) GetControlInsertEncodedIDColumnName() string { r0 := w.inner.GetControlInsertEncodedIDColumnName() return r0 } -func (w ControlAttributes) GetControlLatestUpdateColumnName() string { +func (w *wrappedControlAttributes) GetControlLatestUpdateColumnName() string { r0 := w.inner.GetControlLatestUpdateColumnName() return r0 } -func (w ControlAttributes) GetControlMaxTxnColumnName() string { +func (w *wrappedControlAttributes) GetControlMaxTxnColumnName() string { r0 := w.inner.GetControlMaxTxnColumnName() return r0 } -func (w ControlAttributes) GetControlSsnIDColumnName() string { +func (w *wrappedControlAttributes) GetControlSsnIDColumnName() string { r0 := w.inner.GetControlSsnIDColumnName() return r0 } -func (w ControlAttributes) GetControlTxnIDColumnName() string { +func (w *wrappedControlAttributes) GetControlTxnIDColumnName() string { r0 := w.inner.GetControlTxnIDColumnName() return r0 } -type AuthContexts struct { +type wrappedAuthContexts struct { inner dto.AuthContexts } -func (w AuthContexts) Clone() AuthContexts { +func (w *wrappedAuthContexts) Clone() AuthContexts { r0 := w.inner.Clone() - return AuthContexts{inner: r0} + return &wrappedAuthContexts{inner: r0} } -type DataFlowCfg struct { +type wrappedDataFlowCfg struct { inner dto.DataFlowCfg } -func (w DataFlowCfg) GetMaxDependencies() int { +func (w *wrappedDataFlowCfg) GetMaxDependencies() int { r0 := w.inner.GetMaxDependencies() return r0 } -type NamespaceCfg struct { +type wrappedNamespaceCfg struct { inner dto.NamespaceCfg } -func (w NamespaceCfg) GetRegex() (*regexp.Regexp, error) { +func (w *wrappedNamespaceCfg) GetRegex() (*regexp.Regexp, error) { r0, r1 := w.inner.GetRegex() return r0, r1 } -func (w NamespaceCfg) GetTemplate() (*template.Template, error) { +func (w *wrappedNamespaceCfg) GetTemplate() (*template.Template, error) { r0, r1 := w.inner.GetTemplate() return r0, r1 } -type OutputPacket struct { +type wrappedOutputPacket struct { inner dto.OutputPacket } -func (w OutputPacket) GetColumnNames() []string { +func (w *wrappedOutputPacket) GetColumnNames() []string { r0 := w.inner.GetColumnNames() return r0 } -func (w OutputPacket) GetColumnOIDs() []oid.Oid { +func (w *wrappedOutputPacket) GetColumnOIDs() []oid.Oid { r0 := w.inner.GetColumnOIDs() return r0 } -func (w OutputPacket) GetRawRows() map[int]map[int]interface{} { +func (w *wrappedOutputPacket) GetRawRows() map[int]map[int]interface{} { r0 := w.inner.GetRawRows() return r0 } -func (w OutputPacket) GetRows() map[string]map[string]interface{} { +func (w *wrappedOutputPacket) GetRows() map[string]map[string]interface{} { r0 := w.inner.GetRows() return r0 } -type PgTLSCfg struct { +type wrappedPgTLSCfg struct { inner dto.PgTLSCfg } -func (w PgTLSCfg) GetKeyPair() (tls.Certificate, error) { +func (w *wrappedPgTLSCfg) GetKeyPair() (tls.Certificate, error) { r0, r1 := w.inner.GetKeyPair() return r0, r1 } -type SQLBackendCfg struct { +type wrappedSQLBackendCfg struct { inner dto.SQLBackendCfg } -func (w SQLBackendCfg) GetDatabaseName() (string, error) { +func (w *wrappedSQLBackendCfg) GetDatabaseName() (string, error) { r0, r1 := w.inner.GetDatabaseName() return r0, r1 } -func (w SQLBackendCfg) GetIntelViewSchemaName() string { +func (w *wrappedSQLBackendCfg) GetIntelViewSchemaName() string { r0 := w.inner.GetIntelViewSchemaName() return r0 } -func (w SQLBackendCfg) GetOpsViewSchemaName() string { +func (w *wrappedSQLBackendCfg) GetOpsViewSchemaName() string { r0 := w.inner.GetOpsViewSchemaName() return r0 } -func (w SQLBackendCfg) GetSQLDialect() string { +func (w *wrappedSQLBackendCfg) GetSQLDialect() string { r0 := w.inner.GetSQLDialect() return r0 } -func (w SQLBackendCfg) GetSchemaType() string { +func (w *wrappedSQLBackendCfg) GetSchemaType() string { r0 := w.inner.GetSchemaType() return r0 } -func (w SQLBackendCfg) GetTableSchemaName() string { +func (w *wrappedSQLBackendCfg) GetTableSchemaName() string { r0 := w.inner.GetTableSchemaName() return r0 } -type SessionContext struct { +type wrappedSessionContext struct { inner dto.SessionContext } -func (w SessionContext) GetIsolationLevel() constants.IsolationLevel { +func (w *wrappedSessionContext) GetIsolationLevel() constants.IsolationLevel { r0 := w.inner.GetIsolationLevel() return r0 } -func (w SessionContext) GetRollbackType() constants.RollbackType { +func (w *wrappedSessionContext) GetRollbackType() constants.RollbackType { r0 := w.inner.GetRollbackType() return r0 } -func (w SessionContext) UpdateIsolationLevel(p0 string) error { +func (w *wrappedSessionContext) UpdateIsolationLevel(p0 string) error { r0 := w.inner.UpdateIsolationLevel(p0) return r0 } -type TxnCoordinatorCfg struct { +type wrappedTxnCoordinatorCfg struct { inner dto.TxnCoordinatorCfg } -func (w TxnCoordinatorCfg) GetMaxTxnDepth() int { +func (w *wrappedTxnCoordinatorCfg) GetMaxTxnDepth() int { r0 := w.inner.GetMaxTxnDepth() return r0 } -type GQLReader struct { +type wrappedGQLReader struct { inner graphql.GQLReader } -func (w GQLReader) Read() ([]map[string]interface{}, error) { +func (w *wrappedGQLReader) Read() ([]map[string]interface{}, error) { r0, r1 := w.inner.Read() return r0, r1 } -type ExecPayload struct { +type wrappedExecPayload struct { inner internaldto.ExecPayload } -func (w ExecPayload) GetPayloadMap() map[string]interface{} { +func (w *wrappedExecPayload) GetPayloadMap() map[string]interface{} { r0 := w.inner.GetPayloadMap() return r0 } -type HTTPElement struct { +type wrappedHTTPElement struct { inner internaldto.HTTPElement } -func (w HTTPElement) GetName() string { +func (w *wrappedHTTPElement) GetName() string { r0 := w.inner.GetName() return r0 } -func (w HTTPElement) GetType() internaldto.HTTPElementType { +func (w *wrappedHTTPElement) GetType() internaldto.HTTPElementType { r0 := w.inner.GetType() return r0 } -func (w HTTPElement) SetTransformer(transformer func(interface{}) (interface{}, error)) { +func (w *wrappedHTTPElement) SetTransformer(transformer func(interface{}) (interface{}, error)) { w.inner.SetTransformer(transformer) return } -func (w HTTPElement) IsTransformerPresent() bool { +func (w *wrappedHTTPElement) IsTransformerPresent() bool { r0 := w.inner.IsTransformerPresent() return r0 } -func (w HTTPElement) Transformer(t interface{}) (interface{}, error) { +func (w *wrappedHTTPElement) Transformer(t interface{}) (interface{}, error) { r0, r1 := w.inner.Transformer(t) return r0, r1 } -type ExecutionResponse struct { +type wrappedExecutionResponse struct { inner local_template_executor.ExecutionResponse } -func (w ExecutionResponse) GetStdErr() (*bytes.Buffer, bool) { +func (w *wrappedExecutionResponse) GetStdErr() (*bytes.Buffer, bool) { r0, r1 := w.inner.GetStdErr() return r0, r1 } -func (w ExecutionResponse) GetStdOut() (*bytes.Buffer, bool) { +func (w *wrappedExecutionResponse) GetStdOut() (*bytes.Buffer, bool) { r0, r1 := w.inner.GetStdOut() return r0, r1 } -type Executor struct { +type wrappedExecutor struct { inner local_template_executor.Executor } -func (w Executor) Execute(p0 map[string]any) (ExecutionResponse, error) { +func (w *wrappedExecutor) Execute(p0 map[string]any) (ExecutionResponse, error) { r0, r1 := w.inner.Execute(p0) - return ExecutionResponse{inner: r0}, r1 + return &wrappedExecutionResponse{inner: r0}, r1 } -type NameMangler struct { +type wrappedNameMangler struct { inner name_mangle.NameMangler } -func (w NameMangler) MangleName(p0 string, p1 ...any) string { +func (w *wrappedNameMangler) MangleName(p0 string, p1 ...any) string { r0 := w.inner.MangleName(p0, p1) return r0 } -type ActionInsertPayload struct { +type wrappedActionInsertPayload struct { inner providerinvoker.ActionInsertPayload } -func (w ActionInsertPayload) GetItemisationResult() ItemisationResult { +func (w *wrappedActionInsertPayload) GetItemisationResult() ItemisationResult { r0 := w.inner.GetItemisationResult() - return ItemisationResult{inner: r0} + return &wrappedItemisationResult{inner: r0} } -func (w ActionInsertPayload) GetParamsUsed() map[string]interface{} { +func (w *wrappedActionInsertPayload) GetParamsUsed() map[string]interface{} { r0 := w.inner.GetParamsUsed() return r0 } -func (w ActionInsertPayload) GetReqEncoding() string { +func (w *wrappedActionInsertPayload) GetReqEncoding() string { r0 := w.inner.GetReqEncoding() return r0 } -func (w ActionInsertPayload) GetTableName() string { +func (w *wrappedActionInsertPayload) GetTableName() string { r0 := w.inner.GetTableName() return r0 } -func (w ActionInsertPayload) IsHousekeepingDone() bool { +func (w *wrappedActionInsertPayload) IsHousekeepingDone() bool { r0 := w.inner.IsHousekeepingDone() return r0 } -type ActionInsertResult struct { +type wrappedActionInsertResult struct { inner providerinvoker.ActionInsertResult } -func (w ActionInsertResult) GetError() (error, bool) { +func (w *wrappedActionInsertResult) GetError() (error, bool) { r0, r1 := w.inner.GetError() return r0, r1 } -func (w ActionInsertResult) IsHousekeepingDone() bool { +func (w *wrappedActionInsertResult) IsHousekeepingDone() bool { r0 := w.inner.IsHousekeepingDone() return r0 } -type InsertPreparator struct { +type wrappedInsertPreparator struct { inner providerinvoker.InsertPreparator } -func (w InsertPreparator) ActionInsertPreparation(payload ActionInsertPayload) ActionInsertResult { +func (w *wrappedInsertPreparator) ActionInsertPreparation(payload *wrappedActionInsertPayload) ActionInsertResult { r0 := w.inner.ActionInsertPreparation(payload.inner) - return ActionInsertResult{inner: r0} + return &wrappedActionInsertResult{inner: r0} } -type Invoker struct { +type wrappedInvoker struct { inner providerinvoker.Invoker } -func (w Invoker) Invoke(ctx context.Context, req providerinvoker.Request) (providerinvoker.Result, error) { +func (w *wrappedInvoker) Invoke(ctx context.Context, req providerinvoker.Request) (providerinvoker.Result, error) { r0, r1 := w.inner.Invoke(ctx, req) return r0, r1 } -type ItemisationResult struct { +type wrappedItemisationResult struct { inner providerinvoker.ItemisationResult } -func (w ItemisationResult) GetItems() (interface{}, bool) { +func (w *wrappedItemisationResult) GetItems() (interface{}, bool) { r0, r1 := w.inner.GetItems() return r0, r1 } -type Response struct { +type wrappedResponse struct { inner response.Response } -func (w Response) Error() string { +func (w *wrappedResponse) Error() string { r0 := w.inner.Error() return r0 } @@ -1675,348 +1692,348 @@ func (w Response) Error() string { // GetLocation() HTTPElementLocation // } -type HTTPHTTPElement struct { +type wrappedHTTPHTTPElement struct { inner httpelement.HTTPElement } -func (w HTTPHTTPElement) GetName() string { +func (w *wrappedHTTPHTTPElement) GetName() string { r0 := w.inner.GetName() return r0 } -func (w HTTPHTTPElement) GetLocation() httpelement.HTTPElementLocation { +func (w *wrappedHTTPHTTPElement) GetLocation() httpelement.HTTPElementLocation { r0 := w.inner.GetLocation() return r0 } // TODO: fix this crap -func (w Response) ExtractElement(e HTTPHTTPElement) (interface{}, error) { +func (w *wrappedResponse) ExtractElement(e *wrappedHTTPHTTPElement) (interface{}, error) { r0, r1 := w.inner.ExtractElement(e.inner) return r0, r1 } -func (w Response) GetHttpResponse() *http.Response { +func (w *wrappedResponse) GetHttpResponse() *http.Response { r0 := w.inner.GetHttpResponse() return r0 } -func (w Response) GetProcessedBody() interface{} { +func (w *wrappedResponse) GetProcessedBody() interface{} { r0 := w.inner.GetProcessedBody() return r0 } -func (w Response) HasError() bool { +func (w *wrappedResponse) HasError() bool { r0 := w.inner.HasError() return r0 } -type StreamTransformer struct { +type wrappedStreamTransformer struct { inner stream_transform.StreamTransformer } -func (w StreamTransformer) GetOutStream() io.Reader { +func (w *wrappedStreamTransformer) GetOutStream() io.Reader { r0 := w.inner.GetOutStream() return r0 } -func (w StreamTransformer) Transform() error { +func (w *wrappedStreamTransformer) Transform() error { r0 := w.inner.Transform() return r0 } -type StreamTransformerFactory struct { +type wrappedStreamTransformerFactory struct { inner stream_transform.StreamTransformerFactory } -func (w StreamTransformerFactory) GetTransformer(input string) (StreamTransformer, error) { +func (w *wrappedStreamTransformerFactory) GetTransformer(input string) (StreamTransformer, error) { r0, r1 := w.inner.GetTransformer(input) - return StreamTransformer{inner: r0}, r1 + return &wrappedStreamTransformer{inner: r0}, r1 } -func (w StreamTransformerFactory) IsTransformable() bool { +func (w *wrappedStreamTransformerFactory) IsTransformable() bool { r0 := w.inner.IsTransformable() return r0 } -type MapReader struct { +type wrappedMapReader struct { inner streaming.MapReader } -func (w MapReader) Read() ([]map[string]interface{}, error) { +func (w *wrappedMapReader) Read() ([]map[string]interface{}, error) { r0, r1 := w.inner.Read() return r0, r1 } -type MapStream struct { +type wrappedMapStream struct { inner streaming.MapStream } -func (w MapStream) Write(p0 []map[string]interface{}) error { +func (w *wrappedMapStream) Write(p0 []map[string]interface{}) error { r0 := w.inner.Write(p0) return r0 } -type MapStreamCollection struct { +type wrappedMapStreamCollection struct { inner streaming.MapStreamCollection } -func (w MapStreamCollection) Len() int { +func (w *wrappedMapStreamCollection) Len() int { r0 := w.inner.Len() return r0 } -func (w MapStreamCollection) Push(p0 MapStream) { +func (w *wrappedMapStreamCollection) Push(p0 *wrappedMapStream) { w.inner.Push(p0.inner) return } -type AuthDTO struct { +type wrappedAuthDTO struct { inner surface.AuthDTO } -func (w AuthDTO) GetAccountID() string { +func (w *wrappedAuthDTO) GetAccountID() string { r0 := w.inner.GetAccountID() return r0 } -func (w AuthDTO) GetAccountIDEnvVar() string { +func (w *wrappedAuthDTO) GetAccountIDEnvVar() string { r0 := w.inner.GetAccountIDEnvVar() return r0 } -func (w AuthDTO) GetAuthStyle() int { +func (w *wrappedAuthDTO) GetAuthStyle() int { r0 := w.inner.GetAuthStyle() return r0 } -func (w AuthDTO) GetClientID() string { +func (w *wrappedAuthDTO) GetClientID() string { r0 := w.inner.GetClientID() return r0 } -func (w AuthDTO) GetClientIDEnvVar() string { +func (w *wrappedAuthDTO) GetClientIDEnvVar() string { r0 := w.inner.GetClientIDEnvVar() return r0 } -func (w AuthDTO) GetClientSecret() string { +func (w *wrappedAuthDTO) GetClientSecret() string { r0 := w.inner.GetClientSecret() return r0 } -func (w AuthDTO) GetClientSecretEnvVar() string { +func (w *wrappedAuthDTO) GetClientSecretEnvVar() string { r0 := w.inner.GetClientSecretEnvVar() return r0 } -func (w AuthDTO) GetEnvVarAPIKeyStr() string { +func (w *wrappedAuthDTO) GetEnvVarAPIKeyStr() string { r0 := w.inner.GetEnvVarAPIKeyStr() return r0 } -func (w AuthDTO) GetEnvVarAPISecretStr() string { +func (w *wrappedAuthDTO) GetEnvVarAPISecretStr() string { r0 := w.inner.GetEnvVarAPISecretStr() return r0 } -func (w AuthDTO) GetEnvVarPassword() string { +func (w *wrappedAuthDTO) GetEnvVarPassword() string { r0 := w.inner.GetEnvVarPassword() return r0 } -func (w AuthDTO) GetEnvVarUsername() string { +func (w *wrappedAuthDTO) GetEnvVarUsername() string { r0 := w.inner.GetEnvVarUsername() return r0 } -func (w AuthDTO) GetGrantType() string { +func (w *wrappedAuthDTO) GetGrantType() string { r0 := w.inner.GetGrantType() return r0 } -func (w AuthDTO) GetInlineBasicCredentials() string { +func (w *wrappedAuthDTO) GetInlineBasicCredentials() string { r0 := w.inner.GetInlineBasicCredentials() return r0 } -func (w AuthDTO) GetKeyEnvVar() string { +func (w *wrappedAuthDTO) GetKeyEnvVar() string { r0 := w.inner.GetKeyEnvVar() return r0 } -func (w AuthDTO) GetKeyFilePath() string { +func (w *wrappedAuthDTO) GetKeyFilePath() string { r0 := w.inner.GetKeyFilePath() return r0 } -func (w AuthDTO) GetKeyFilePathEnvVar() string { +func (w *wrappedAuthDTO) GetKeyFilePathEnvVar() string { r0 := w.inner.GetKeyFilePathEnvVar() return r0 } -func (w AuthDTO) GetKeyID() string { +func (w *wrappedAuthDTO) GetKeyID() string { r0 := w.inner.GetKeyID() return r0 } -func (w AuthDTO) GetKeyIDEnvVar() string { +func (w *wrappedAuthDTO) GetKeyIDEnvVar() string { r0 := w.inner.GetKeyIDEnvVar() return r0 } -func (w AuthDTO) GetLocation() string { +func (w *wrappedAuthDTO) GetLocation() string { r0 := w.inner.GetLocation() return r0 } -func (w AuthDTO) GetName() string { +func (w *wrappedAuthDTO) GetName() string { r0 := w.inner.GetName() return r0 } -func (w AuthDTO) GetScopes() []string { +func (w *wrappedAuthDTO) GetScopes() []string { r0 := w.inner.GetScopes() return r0 } -func (w AuthDTO) GetSubject() string { +func (w *wrappedAuthDTO) GetSubject() string { r0 := w.inner.GetSubject() return r0 } -func (w AuthDTO) GetSuccessor() (AuthDTO, bool) { +func (w *wrappedAuthDTO) GetSuccessor() (AuthDTO, bool) { r0, r1 := w.inner.GetSuccessor() return AuthDTO{inner: r0}, r1 } -func (w AuthDTO) GetTokenURL() string { +func (w *wrappedAuthDTO) GetTokenURL() string { r0 := w.inner.GetTokenURL() return r0 } -func (w AuthDTO) GetType() string { +func (w *wrappedAuthDTO) GetType() string { r0 := w.inner.GetType() return r0 } -func (w AuthDTO) GetValuePrefix() string { +func (w *wrappedAuthDTO) GetValuePrefix() string { r0 := w.inner.GetValuePrefix() return r0 } -func (w AuthDTO) GetValues() url.Values { +func (w *wrappedAuthDTO) GetValues() url.Values { r0 := w.inner.GetValues() return r0 } -type IDiscoveryAdapter struct { +type wrappedIDiscoveryAdapter struct { inner discovery.IDiscoveryAdapter } -func (w IDiscoveryAdapter) GetProvider(providerKey string) (Provider, error) { +func (w *wrappedIDiscoveryAdapter) GetProvider(providerKey string) (Provider, error) { r0, r1 := w.inner.GetProvider(providerKey) - return Provider{inner: r0}, r1 + return &wrappedProvider{inner: r0}, r1 } -func (w IDiscoveryAdapter) GetResourcesMap(prov Provider, serviceKey string) (map[string]Resource, error) { +func (w *wrappedIDiscoveryAdapter) GetResourcesMap(prov *wrappedProvider, serviceKey string) (map[string]Resource, error) { r0, r1 := w.inner.GetResourcesMap(prov.inner, serviceKey) return wrapMapString_Resource(r0), r1 } -func (w IDiscoveryAdapter) GetServiceHandlesMap(prov Provider) (map[string]ProviderService, error) { +func (w *wrappedIDiscoveryAdapter) GetServiceHandlesMap(prov *wrappedProvider) (map[string]ProviderService, error) { r0, r1 := w.inner.GetServiceHandlesMap(prov.inner) return wrapMapString_ProviderService(r0), r1 } -func (w IDiscoveryAdapter) GetServiceShard(prov Provider, serviceKey string, resourceKey string) (Service, error) { +func (w *wrappedIDiscoveryAdapter) GetServiceShard(prov *wrappedProvider, serviceKey string, resourceKey string) (Service, error) { r0, r1 := w.inner.GetServiceShard(prov.inner, serviceKey, resourceKey) - return Service{inner: r0}, r1 + return &wrappedService{inner: r0}, r1 } -func (w IDiscoveryAdapter) PersistStaticExternalSQLDataSource(prov Provider) error { +func (w *wrappedIDiscoveryAdapter) PersistStaticExternalSQLDataSource(prov *wrappedProvider) error { r0 := w.inner.PersistStaticExternalSQLDataSource(prov.inner) return r0 } -type AddressSpaceFormulator struct { +type wrappedAddressSpaceFormulator struct { inner radix_tree_address_space.AddressSpaceFormulator } -func (w AddressSpaceFormulator) Formulate() error { +func (w *wrappedAddressSpaceFormulator) Formulate() error { r0 := w.inner.Formulate() return r0 } -func (w AddressSpaceFormulator) GetAddressSpace() AddressSpace { +func (w *wrappedAddressSpaceFormulator) GetAddressSpace() AddressSpace { r0 := w.inner.GetAddressSpace() - return AddressSpace{inner: r0} + return &wrappedAddressSpace{inner: r0} } -type SQLEngine struct { +type wrappedSQLEngine struct { inner sqlengine.SQLEngine } -func (w SQLEngine) CacheStoreGet(p0 string) ([]byte, error) { +func (w *wrappedSQLEngine) CacheStoreGet(p0 string) ([]byte, error) { r0, r1 := w.inner.CacheStoreGet(p0) return r0, r1 } -func (w SQLEngine) CacheStorePut(p0 string, p1 []byte, p2 string, p3 int) error { +func (w *wrappedSQLEngine) CacheStorePut(p0 string, p1 []byte, p2 string, p3 int) error { r0 := w.inner.CacheStorePut(p0, p1, p2, p3) return r0 } -func (w SQLEngine) Exec(p0 string, p1 ...interface{}) (sql.Result, error) { +func (w *wrappedSQLEngine) Exec(p0 string, p1 ...interface{}) (sql.Result, error) { r0, r1 := w.inner.Exec(p0, p1) return r0, r1 } -func (w SQLEngine) ExecInTxn(queries []string) error { +func (w *wrappedSQLEngine) ExecInTxn(queries []string) error { r0 := w.inner.ExecInTxn(queries) return r0 } -func (w SQLEngine) GetCurrentDiscoveryGenerationID(discoveryID string) (int, error) { +func (w *wrappedSQLEngine) GetCurrentDiscoveryGenerationID(discoveryID string) (int, error) { r0, r1 := w.inner.GetCurrentDiscoveryGenerationID(discoveryID) return r0, r1 } -func (w SQLEngine) GetCurrentGenerationID() (int, error) { +func (w *wrappedSQLEngine) GetCurrentGenerationID() (int, error) { r0, r1 := w.inner.GetCurrentGenerationID() return r0, r1 } -func (w SQLEngine) GetDB() (*sql.DB, error) { +func (w *wrappedSQLEngine) GetDB() (*sql.DB, error) { r0, r1 := w.inner.GetDB() return r0, r1 } -func (w SQLEngine) GetNextDiscoveryGenerationID(discoveryID string) (int, error) { +func (w *wrappedSQLEngine) GetNextDiscoveryGenerationID(discoveryID string) (int, error) { r0, r1 := w.inner.GetNextDiscoveryGenerationID(discoveryID) return r0, r1 } -func (w SQLEngine) GetNextGenerationID() (int, error) { +func (w *wrappedSQLEngine) GetNextGenerationID() (int, error) { r0, r1 := w.inner.GetNextGenerationID() return r0, r1 } -func (w SQLEngine) GetNextSessionID(p0 int) (int, error) { +func (w *wrappedSQLEngine) GetNextSessionID(p0 int) (int, error) { r0, r1 := w.inner.GetNextSessionID(p0) return r0, r1 } -func (w SQLEngine) GetTx() (*sql.Tx, error) { +func (w *wrappedSQLEngine) GetTx() (*sql.Tx, error) { r0, r1 := w.inner.GetTx() return r0, r1 } -func (w SQLEngine) Query(p0 string, p1 ...interface{}) (*sql.Rows, error) { +func (w *wrappedSQLEngine) Query(p0 string, p1 ...interface{}) (*sql.Rows, error) { r0, r1 := w.inner.Query(p0, p1) return r0, r1 } -func (w SQLEngine) QueryRow(query string, args ...any) *sql.Row { +func (w *wrappedSQLEngine) QueryRow(query string, args ...any) *sql.Row { r0 := w.inner.QueryRow(query, args) return r0 } From 34f67699bcaaf4fe8ba88416ad5f09cf78194609 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Fri, 20 Feb 2026 11:13:18 +1100 Subject: [PATCH 08/64] compile-and-tests-pass --- public/formulation/wrappers.go | 103 +++++++++++++++++---------------- 1 file changed, 54 insertions(+), 49 deletions(-) diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 29adf91..024de62 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -6,6 +6,7 @@ import ( "context" "crypto/tls" "database/sql" + "fmt" "io" "net/http" "net/url" @@ -165,12 +166,13 @@ func wrapSlice_HTTPArmouryParameters(in []anysdk.HTTPArmouryParameters) []HTTPAr return out } -func unwrapSlice_HTTPArmouryParameters(in []*wrappedHTTPArmouryParameters) []anysdk.HTTPArmouryParameters { +func unwrapSlice_HTTPArmouryParameters(in []HTTPArmouryParameters) []anysdk.HTTPArmouryParameters { if in == nil { return nil } out := make([]anysdk.HTTPArmouryParameters, 0, len(in)) for _, v := range in { + v := v.(*wrappedHTTPArmouryParameters) out = append(out, v.inner) } return out @@ -447,10 +449,7 @@ func (w *wrappedHTTPArmouryParameters) SetNextPage(ops OperationStore, token str r0, r1 := w.inner.SetNextPage(op.inner, token, tokenKey) return r0, r1 } - key, isWrapped := tokenKey.(*wrappedHTTPElement) - if isWrapped { - tokenKey = key.inner - } + return nil, fmt.Errorf("invalid OperationStore type: expected *wrappedOperationStore, got %T", ops) } func (w *wrappedHTTPArmouryParameters) SetRawQuery(p0 string) { @@ -492,7 +491,7 @@ type wrappedHttpPreparatorStream struct { func (w *wrappedHttpPreparatorStream) Next() (HTTPPreparator, bool) { r0, r1 := w.inner.Next() - return HTTPPreparator{inner: r0}, r1 + return &wrappedHTTPPreparator{inner: r0}, r1 } func (w *wrappedHttpPreparatorStream) Write(p0 *wrappedHTTPPreparator) error { @@ -528,14 +527,14 @@ type wrappedMethodAnalysisOutput struct { inner anysdk.MethodAnalysisOutput } -func (w *wrappedMethodAnalysisOutput) GetInsertTabulation() *wrappedTabulation { +func (w *wrappedMethodAnalysisOutput) GetInsertTabulation() Tabulation { r0 := w.inner.GetInsertTabulation() - return Tabulation{inner: r0} + return &wrappedTabulation{inner: r0} } func (w *wrappedMethodAnalysisOutput) GetItemSchema() (Schema, bool) { r0, r1 := w.inner.GetItemSchema() - return Schema{inner: r0}, r1 + return &wrappedSchema{inner: r0}, r1 } func (w *wrappedMethodAnalysisOutput) GetOrderedStarColumnsNames() ([]string, error) { @@ -543,9 +542,9 @@ func (w *wrappedMethodAnalysisOutput) GetOrderedStarColumnsNames() ([]string, er return r0, r1 } -func (w *wrappedMethodAnalysisOutput) GetSelectTabulation() *wrappedTabulation { +func (w *wrappedMethodAnalysisOutput) GetSelectTabulation() Tabulation { r0 := w.inner.GetSelectTabulation() - return Tabulation{inner: r0} + return &wrappedTabulation{inner: r0} } func (w *wrappedMethodAnalysisOutput) IsAwait() bool { @@ -564,14 +563,14 @@ type wrappedMethodAnalyzer struct { func (w *wrappedMethodAnalyzer) AnalyzeUnaryAction(p0 anysdk.MethodAnalysisInput) (MethodAnalysisOutput, error) { r0, r1 := w.inner.AnalyzeUnaryAction(p0) - return MethodAnalysisOutput{inner: r0}, r1 + return &wrappedMethodAnalysisOutput{inner: r0}, r1 } type wrappedMethods struct { inner anysdk.Methods } -func (w *wrappedMethods) OrderMethods() ([]*wrappedStandardOperationStore, error) { +func (w *wrappedMethods) OrderMethods() ([]StandardOperationStore, error) { r0, r1 := w.inner.OrderMethods() return wrapSlice_StandardOperationStore(r0), r1 } @@ -582,7 +581,7 @@ type wrappedOperationInverse struct { func (w *wrappedOperationInverse) GetOperationStore() (StandardOperationStore, bool) { r0, r1 := w.inner.GetOperationStore() - return StandardOperationStore{inner: r0}, r1 + return &wrappedStandardOperationStore{inner: r0}, r1 } type wrappedOperationStore struct { @@ -606,42 +605,42 @@ func (w *wrappedOperationStore) GetNonBodyParameters() map[string]Addressable { func (w *wrappedOperationStore) GetPaginationRequestTokenSemantic() (TokenSemantic, bool) { r0, r1 := w.inner.GetPaginationRequestTokenSemantic() - return TokenSemantic{inner: r0}, r1 + return &wrappedTokenSemantic{inner: r0}, r1 } func (w *wrappedOperationStore) GetPaginationResponseTokenSemantic() (TokenSemantic, bool) { r0, r1 := w.inner.GetPaginationResponseTokenSemantic() - return TokenSemantic{inner: r0}, r1 + return &wrappedTokenSemantic{inner: r0}, r1 } func (w *wrappedOperationStore) GetParameter(paramKey string) (Addressable, bool) { r0, r1 := w.inner.GetParameter(paramKey) - return Addressable{inner: r0}, r1 + return &wrappedAddressable{inner: r0}, r1 } func (w *wrappedOperationStore) GetRequestBodySchema() (Schema, error) { r0, r1 := w.inner.GetRequestBodySchema() - return Schema{inner: r0}, r1 + return &wrappedSchema{inner: r0}, r1 } -func (w *wrappedOperationStore) GetRequiredNonBodyParameters() map[string]*wrappedAddressable { +func (w *wrappedOperationStore) GetRequiredNonBodyParameters() map[string]Addressable { r0 := w.inner.GetRequiredNonBodyParameters() return wrapMapString_Addressable(r0) } -func (w *wrappedOperationStore) GetRequiredParameters() map[string]*wrappedAddressable { +func (w *wrappedOperationStore) GetRequiredParameters() map[string]Addressable { r0 := w.inner.GetRequiredParameters() return wrapMapString_Addressable(r0) } func (w *wrappedOperationStore) GetResource() Resource { r0 := w.inner.GetResource() - return Resource{inner: r0} + return &wrappedResource{inner: r0} } func (w *wrappedOperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { r0, r1, r2 := w.inner.GetResponseBodySchemaAndMediaType() - return Schema{inner: r0}, r1, r2 + return &wrappedSchema{inner: r0}, r1, r2 } func (w *wrappedOperationStore) GetSelectItemsKey() string { @@ -659,22 +658,22 @@ func (w *wrappedOperationStore) IsRequestBodyAttributeRenamed(p0 string) bool { return r0 } -func (w OperationStore) IsRequiredRequestBodyProperty(key string) bool { +func (w *wrappedOperationStore) IsRequiredRequestBodyProperty(key string) bool { r0 := w.inner.IsRequiredRequestBodyProperty(key) return r0 } -func (w OperationStore) ProcessResponse(p0 *http.Response) (ProcessedOperationResponse, error) { +func (w *wrappedOperationStore) ProcessResponse(p0 *http.Response) (ProcessedOperationResponse, error) { r0, r1 := w.inner.ProcessResponse(p0) - return ProcessedOperationResponse{inner: r0}, r1 + return &wrappedProcessedOperationResponse{inner: r0}, r1 } -func (w OperationStore) RenameRequestBodyAttribute(p0 string) (string, error) { +func (w *wrappedOperationStore) RenameRequestBodyAttribute(p0 string) (string, error) { r0, r1 := w.inner.RenameRequestBodyAttribute(p0) return r0, r1 } -func (w OperationStore) RevertRequestBodyAttributeRename(p0 string) (string, error) { +func (w *wrappedOperationStore) RevertRequestBodyAttributeRename(p0 string) (string, error) { r0, r1 := w.inner.RevertRequestBodyAttributeRename(p0) return r0, r1 } @@ -1084,17 +1083,17 @@ func (w *wrappedStandardOperationStore) GetOptionalParameters() map[string]Addre func (w *wrappedStandardOperationStore) GetPaginationRequestTokenSemantic() (TokenSemantic, bool) { r0, r1 := w.inner.GetPaginationRequestTokenSemantic() - return TokenSemantic{inner: r0}, r1 + return &wrappedTokenSemantic{inner: r0}, r1 } func (w *wrappedStandardOperationStore) GetPaginationResponseTokenSemantic() (TokenSemantic, bool) { r0, r1 := w.inner.GetPaginationResponseTokenSemantic() - return TokenSemantic{inner: r0}, r1 + return &wrappedTokenSemantic{inner: r0}, r1 } func (w *wrappedStandardOperationStore) GetParameter(paramKey string) (Addressable, bool) { r0, r1 := w.inner.GetParameter(paramKey) - return Addressable{inner: r0}, r1 + return &wrappedAddressable{inner: r0}, r1 } func (w *wrappedStandardOperationStore) GetProjections() map[string]string { @@ -1104,7 +1103,7 @@ func (w *wrappedStandardOperationStore) GetProjections() map[string]string { func (w *wrappedStandardOperationStore) GetRequest() (ExpectedRequest, bool) { r0, r1 := w.inner.GetRequest() - return ExpectedRequest{inner: r0}, r1 + return &wrappedExpectedRequest{inner: r0}, r1 } func (w *wrappedStandardOperationStore) GetRequestBodySchema() (Schema, error) { @@ -1119,7 +1118,7 @@ func (w *wrappedStandardOperationStore) GetRequiredParameters() map[string]Addre func (w *wrappedStandardOperationStore) GetResponse() (ExpectedResponse, bool) { r0, r1 := w.inner.GetResponse() - return ExpectedResponse{inner: r0}, r1 + return &wrappedExpectedResponse{inner: r0}, r1 } func (w *wrappedStandardOperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { @@ -1232,7 +1231,7 @@ type wrappedAuthUtility struct { inner auth_util.AuthUtility } -func (w *wrappedAuthUtility) ActivateAuth(authCtx *wrappedAuthCtx, principal string, authType string) { +func (w *wrappedAuthUtility) ActivateAuth(authCtx *AuthCtx, principal string, authType string) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1241,7 +1240,7 @@ func (w *wrappedAuthUtility) ActivateAuth(authCtx *wrappedAuthCtx, principal str return } -func (w *wrappedAuthUtility) ApiTokenAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext, enforceBearer bool) (*http.Client, error) { +func (w *wrappedAuthUtility) ApiTokenAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext, enforceBearer bool) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1250,7 +1249,7 @@ func (w *wrappedAuthUtility) ApiTokenAuth(authCtx *wrappedAuthCtx, httpContext n return r0, r1 } -func (w *wrappedAuthUtility) AuthRevoke(authCtx *wrappedAuthCtx) error { +func (w *wrappedAuthUtility) AuthRevoke(authCtx *AuthCtx) error { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1259,7 +1258,7 @@ func (w *wrappedAuthUtility) AuthRevoke(authCtx *wrappedAuthCtx) error { return r0 } -func (w *wrappedAuthUtility) AwsSigningAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) AwsSigningAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1268,7 +1267,7 @@ func (w *wrappedAuthUtility) AwsSigningAuth(authCtx *wrappedAuthCtx, httpContext return r0, r1 } -func (w *wrappedAuthUtility) AzureDefaultAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) AzureDefaultAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1277,7 +1276,7 @@ func (w *wrappedAuthUtility) AzureDefaultAuth(authCtx *wrappedAuthCtx, httpConte return r0, r1 } -func (w *wrappedAuthUtility) BasicAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) BasicAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1286,7 +1285,7 @@ func (w *wrappedAuthUtility) BasicAuth(authCtx *wrappedAuthCtx, httpContext netu return r0, r1 } -func (w *wrappedAuthUtility) CustomAuth(authCtx *wrappedAuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) CustomAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1295,16 +1294,20 @@ func (w *wrappedAuthUtility) CustomAuth(authCtx *wrappedAuthCtx, httpContext net return r0, r1 } -func (w *wrappedAuthUtility) GCloudOAuth(runtimeCtx RuntimeCtx, authCtx *wrappedAuthCtx, enforceRevokeFirst bool) (*http.Client, error) { +func (w *wrappedAuthUtility) GCloudOAuth(runtimeCtx RuntimeCtx, authCtx *AuthCtx, enforceRevokeFirst bool) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner } - r0, r1 := w.inner.GCloudOAuth(runtimeCtx.inner, inner_authCtx, enforceRevokeFirst) + wrappedRuntimeCtx, isWrapped := runtimeCtx.(*wrappedRuntimeCtx) + if !isWrapped { + return nil, fmt.Errorf("invalid RuntimeCtx type: expected *wrappedRuntimeCtx, got %T", runtimeCtx) + } + r0, r1 := w.inner.GCloudOAuth(wrappedRuntimeCtx.inner, inner_authCtx, enforceRevokeFirst) return r0, r1 } -func (w *wrappedAuthUtility) GenericOauthClientCredentials(authCtx *wrappedAuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) GenericOauthClientCredentials(authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1318,7 +1321,7 @@ func (w *wrappedAuthUtility) GetCurrentGCloudOauthUser() ([]byte, error) { return r0, r1 } -func (w *wrappedAuthUtility) GoogleOauthServiceAccount(provider string, authCtx *wrappedAuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { +func (w *wrappedAuthUtility) GoogleOauthServiceAccount(provider string, authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1327,7 +1330,7 @@ func (w *wrappedAuthUtility) GoogleOauthServiceAccount(provider string, authCtx return r0, r1 } -func (w *wrappedAuthUtility) ParseServiceAccountFile(ac *wrappedAuthCtx) (any, error) { +func (w *wrappedAuthUtility) ParseServiceAccountFile(ac *AuthCtx) (any, error) { var inner_ac *dto.AuthCtx if ac != nil { inner_ac = ac.inner @@ -1340,7 +1343,7 @@ type wrappedAnySdkClientConfigurator struct { inner client.AnySdkClientConfigurator } -func (w *wrappedAnySdkClientConfigurator) Auth(authCtx *wrappedAuthCtx, authTypeRequested string, enforceRevokeFirst bool) (client.AnySdkClient, error) { +func (w *wrappedAnySdkClientConfigurator) Auth(authCtx *AuthCtx, authTypeRequested string, enforceRevokeFirst bool) (client.AnySdkClient, error) { var inner_authCtx *dto.AuthCtx if authCtx != nil { inner_authCtx = authCtx.inner @@ -1707,9 +1710,11 @@ func (w *wrappedHTTPHTTPElement) GetLocation() httpelement.HTTPElementLocation { } // TODO: fix this crap -func (w *wrappedResponse) ExtractElement(e *wrappedHTTPHTTPElement) (interface{}, error) { - r0, r1 := w.inner.ExtractElement(e.inner) - return r0, r1 +func (w *wrappedResponse) ExtractElement(e HTTPHTTPElement) (interface{}, error) { + if innerElement, ok := e.(*wrappedHTTPHTTPElement); ok { + return w.inner.ExtractElement(innerElement.inner) + } + return nil, fmt.Errorf("invalid HTTP element type: expected *wrappedHTTPHTTPElement, got %T", e) } func (w *wrappedResponse) GetHttpResponse() *http.Response { @@ -1903,7 +1908,7 @@ func (w *wrappedAuthDTO) GetSubject() string { func (w *wrappedAuthDTO) GetSuccessor() (AuthDTO, bool) { r0, r1 := w.inner.GetSuccessor() - return AuthDTO{inner: r0}, r1 + return &wrappedAuthDTO{inner: r0}, r1 } func (w *wrappedAuthDTO) GetTokenURL() string { From b61b4550a5ebadd5ac16548a187b2df9e16c3bba Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 16:45:34 +1100 Subject: [PATCH 09/64] compile-and-tests-pass --- public/formulation/formulation.go | 141 +++++++++++++++++++++++++----- public/formulation/interfaces.go | 44 ++++++++++ public/formulation/wrappers.go | 65 ++++++++++++-- 3 files changed, 223 insertions(+), 27 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index a5c4279..08f4db7 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -1,7 +1,14 @@ package formulation import ( + "io" + "net/http" + + "github.com/sirupsen/logrus" "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/pkg/client" + "github.com/stackql/any-sdk/pkg/dto" + "github.com/stackql/any-sdk/pkg/streaming" "github.com/stackql/stackql-parser/go/vt/sqlparser" ) @@ -38,44 +45,136 @@ type ColumnDescriptor interface { GetRepresentativeSchema() anysdk.Schema GetSchema() anysdk.Schema GetVal() *sqlparser.SQLVal + unwrap() anysdk.ColumnDescriptor } -func NewColumnDescriptor(alias string, name string, qualifier string, decoratedCol string, node sqlparser.SQLNode, schema anysdk.Schema, val *sqlparser.SQLVal) ColumnDescriptor { - rv := anysdk.NewColumnDescriptor(alias, name, qualifier, decoratedCol, node, schema, val) - return rv.(ColumnDescriptor) +type wrappedColumnDescriptor struct { + inner anysdk.ColumnDescriptor } -// type SQLExternalColumn interface { -// GetName() string -// GetType() string -// GetOid() uint32 -// GetWidth() int -// GetPrecision() int -// } +func (w *wrappedColumnDescriptor) unwrap() anysdk.ColumnDescriptor { + return w.inner +} + +func (w *wrappedColumnDescriptor) GetVal() *sqlparser.SQLVal { + return w.inner.GetVal() +} + +func (w *wrappedColumnDescriptor) GetNode() sqlparser.SQLNode { + return w.inner.GetNode() +} + +func (w *wrappedColumnDescriptor) GetDecoratedCol() string { + return w.inner.GetDecoratedCol() +} + +func (w *wrappedColumnDescriptor) GetQualifier() string { + return w.inner.GetQualifier() +} + +func (w *wrappedColumnDescriptor) GetRepresentativeSchema() anysdk.Schema { + return w.inner.GetRepresentativeSchema() +} + +func (w *wrappedColumnDescriptor) GetSchema() anysdk.Schema { + return w.inner.GetSchema() +} + +func (w *wrappedColumnDescriptor) GetAlias() string { + return w.inner.GetAlias() +} + +func (w *wrappedColumnDescriptor) GetName() string { + return w.inner.GetName() +} + +func (w *wrappedColumnDescriptor) GetIdentifier() string { + return w.inner.GetIdentifier() +} + +func newColDescriptorFromAnySdkColumnDescriptor(c anysdk.ColumnDescriptor) ColumnDescriptor { + return &wrappedColumnDescriptor{inner: c} +} + +func NewColumnDescriptor(alias string, name string, qualifier string, decoratedCol string, node sqlparser.SQLNode, schema Schema, val *sqlparser.SQLVal) ColumnDescriptor { + rv := anysdk.NewColumnDescriptor(alias, name, qualifier, decoratedCol, node, schema.unwrap(), val) + return newColDescriptorFromAnySdkColumnDescriptor(rv) +} func NewMethodAnalysisInput( - method anysdk.OperationStore, - service anysdk.Service, + method OperationStore, + service Service, isNilResponseAllowed bool, columns []ColumnDescriptor, isAwait bool, ) anysdk.MethodAnalysisInput { cols := make([]anysdk.ColumnDescriptor, len(columns)) for i, c := range columns { - cols[i] = c.(anysdk.ColumnDescriptor) + cols[i] = c.unwrap() } return anysdk.NewMethodAnalysisInput( - method, - service, + method.unwrap(), + service.unwrap(), isNilResponseAllowed, cols, isAwait, ) } -// type SQLExternalTable interface { -// GetCatalogName() string -// GetSchemaName() string -// GetName() string -// GetColumns() []SQLExternalColumn -// } +func NewHTTPPreparator( + prov Provider, + svc Service, + m OperationStore, + paramMap map[int]map[string]interface{}, + parameters streaming.MapStream, + execContext ExecContext, + logger *logrus.Logger, +) HTTPPreparator { + return newHTTPPreparatorFromAnySdkHTTPPreparator( + anysdk.NewHTTPPreparator( + prov.unwrap(), + svc.unwrap(), + m.unwrap(), + paramMap, + parameters, + execContext.unwrap(), + logger, + ), + ) +} + +func CallFromSignature( + cc client.AnySdkClientConfigurator, + runtimeCtx dto.RuntimeCtx, + authCtx *dto.AuthCtx, + authTypeRequested string, + enforceRevokeFirst bool, + outErrFile io.Writer, + prov Provider, + designation client.AnySdkDesignation, + argList client.AnySdkArgList, +) (client.AnySdkResponse, error) { + return anysdk.CallFromSignature( + cc, + runtimeCtx, + authCtx, + authTypeRequested, + enforceRevokeFirst, + outErrFile, + prov.unwrap(), + designation, + argList, + ) +} + +func NewAnySdkOpStoreDesignation(method OperationStore) client.AnySdkDesignation { + return anysdk.NewAnySdkOpStoreDesignation(method.unwrap()) +} + +func NewRegistry(registryCfg RegistryConfig, transport http.RoundTripper) (RegistryAPI, error) { + rv, err := anysdk.NewRegistry(registryCfg.toAnySdkRegistryConfig(), transport) + if err != nil { + return nil, err + } + return &wrappedRegistryAPI{inner: rv}, nil +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 72a8777..2cbd4ea 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -22,6 +22,7 @@ import ( "github.com/stackql/any-sdk/pkg/netutils" "github.com/stackql/any-sdk/pkg/providerinvoker" "github.com/stackql/stackql-parser/go/sqltypes" + "github.com/stackql/stackql-provider-registry/signing/Ed25519/app/edcrypto" ) // NOTE: Addressable is already defined as an interface in wrappers.go. @@ -99,6 +100,12 @@ type HTTPPreparator interface { BuildHTTPRequestCtx(p0 anysdk.HTTPPreparatorConfig) (HTTPArmoury, error) } +func newHTTPPreparatorFromAnySdkHTTPPreparator(inner anysdk.HTTPPreparator) HTTPPreparator { + return &wrappedHTTPPreparator{ + inner: inner, + } +} + // HttpParameters mirrors methods on HttpParameters type HttpParameters interface { GetInlineParameterFlatMap() (map[string]interface{}, error) @@ -164,6 +171,7 @@ type OperationStore interface { ProcessResponse(p0 *http.Response) (ProcessedOperationResponse, error) RenameRequestBodyAttribute(p0 string) (string, error) RevertRequestBodyAttributeRename(p0 string) (string, error) + unwrap() anysdk.OperationStore } // ProcessedOperationResponse mirrors methods on ProcessedOperationResponse @@ -179,6 +187,33 @@ type Provider interface { GetMinStackQLVersion() string GetName() string GetProtocolType() (client.ClientProtocolType, error) + unwrap() anysdk.Provider +} + +type ExecContext interface { + GetExecPayload() internaldto.ExecPayload + GetResource() Resource + unwrap() anysdk.ExecContext +} + +type RegistryConfig struct { + RegistryURL string `json:"url" yaml:"url"` + SrcPrefix *string `json:"srcPrefix" yaml:"srcPrefix"` + DistPrefix *string `json:"distPrefix" yaml:"distPrefix"` + AllowSrcDownload bool `json:"allowSrcDownload" yaml:"allowSrcDownload"` + LocalDocRoot string `json:"localDocRoot" yaml:"localDocRoot"` + VerifyConfig *edcrypto.VerifierConfig `json:"verifyConfig" yaml:"verifyConfig"` +} + +func (rc RegistryConfig) toAnySdkRegistryConfig() anysdk.RegistryConfig { + return anysdk.RegistryConfig{ + RegistryURL: rc.RegistryURL, + SrcPrefix: rc.SrcPrefix, + DistPrefix: rc.DistPrefix, + AllowSrcDownload: rc.AllowSrcDownload, + LocalDocRoot: rc.LocalDocRoot, + VerifyConfig: rc.VerifyConfig, + } } // ProviderDescription mirrors methods on ProviderDescription @@ -196,6 +231,12 @@ type ProviderService interface { IsPreferred() bool } +type MethodSet interface { + GetFirstMatch(params map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) + GetFirstNamespaceMatch(params map[string]any) (StandardOperationStore, map[string]any, bool) + GetFirst() (StandardOperationStore, string, bool) +} + // RegistryAPI mirrors methods on RegistryAPI type RegistryAPI interface { ClearProviderCache(p0 string) error @@ -265,6 +306,7 @@ type Schema interface { SetKey(p0 string) Tabulate(p0 bool, p1 string) Tabulation ToDescriptionMap(extended bool) map[string]interface{} + unwrap() anysdk.Schema } // Service mirrors methods on Service @@ -272,6 +314,7 @@ type Service interface { GetResource(resourceName string) (Resource, error) GetSchema(key string) (Schema, error) GetServers() (openapi3.Servers, bool) + unwrap() anysdk.Service } // StandardOperationStore mirrors methods on StandardOperationStore @@ -298,6 +341,7 @@ type StandardOperationStore interface { IsAwaitable() bool IsNullary() bool ToPresentationMap(extended bool) map[string]interface{} + unwrap() anysdk.StandardOperationStore } // Tabulation mirrors methods on Tabulation diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 024de62..99a260b 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -444,12 +444,8 @@ func (w *wrappedHTTPArmouryParameters) GetRequest() *http.Request { } func (w *wrappedHTTPArmouryParameters) SetNextPage(ops OperationStore, token string, tokenKey HTTPElement) (*http.Request, error) { - op, isWrapped := ops.(*wrappedOperationStore) - if isWrapped { - r0, r1 := w.inner.SetNextPage(op.inner, token, tokenKey) - return r0, r1 - } - return nil, fmt.Errorf("invalid OperationStore type: expected *wrappedOperationStore, got %T", ops) + r0, r1 := w.inner.SetNextPage(ops.unwrap(), token, tokenKey) + return r0, r1 } func (w *wrappedHTTPArmouryParameters) SetRawQuery(p0 string) { @@ -588,6 +584,10 @@ type wrappedOperationStore struct { inner anysdk.OperationStore } +func (w *wrappedOperationStore) unwrap() anysdk.OperationStore { + return w.inner +} + func (w *wrappedOperationStore) DeprecatedProcessResponse(response *http.Response) (map[string]interface{}, error) { r0, r1 := w.inner.DeprecatedProcessResponse(response) return r0, r1 @@ -692,10 +692,32 @@ func (w *wrappedProcessedOperationResponse) GetReversal() (HTTPPreparator, bool) return &wrappedHTTPPreparator{inner: r0}, r1 } +type wrappedExecContext struct { + inner anysdk.ExecContext +} + +func (w *wrappedExecContext) GetExecPayload() internaldto.ExecPayload { + r0 := w.inner.GetExecPayload() + return r0 +} + +func (w *wrappedExecContext) GetResource() Resource { + r0 := w.inner.GetResource() + return &wrappedResource{inner: r0} +} + +func (w *wrappedExecContext) unwrap() anysdk.ExecContext { + return w.inner +} + type wrappedProvider struct { inner anysdk.Provider } +func (w *wrappedProvider) unwrap() anysdk.Provider { + return w.inner +} + func (w *wrappedProvider) GetAuth() (AuthDTO, bool) { r0, r1 := w.inner.GetAuth() return &wrappedAuthDTO{inner: r0}, r1 @@ -923,6 +945,10 @@ type wrappedSchema struct { inner anysdk.Schema } +func (w *wrappedSchema) unwrap() anysdk.Schema { + return w.inner +} + func (w *wrappedSchema) FindByPath(path string, visited map[string]bool) Schema { r0 := w.inner.FindByPath(path, visited) return &wrappedSchema{inner: r0} @@ -1027,6 +1053,10 @@ type wrappedService struct { inner anysdk.Service } +func (w *wrappedService) unwrap() anysdk.Service { + return w.inner +} + func (w *wrappedService) GetResource(resourceName string) (Resource, error) { r0, r1 := w.inner.GetResource(resourceName) return &wrappedResource{inner: r0}, r1 @@ -1046,6 +1076,10 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) unwrap() anysdk.StandardOperationStore { + return w.inner +} + func (w *wrappedStandardOperationStore) GetAddressSpace() (AddressSpace, bool) { r0, r1 := w.inner.GetAddressSpace() return &wrappedAddressSpace{inner: r0}, r1 @@ -2042,3 +2076,22 @@ func (w *wrappedSQLEngine) QueryRow(query string, args ...any) *sql.Row { r0 := w.inner.QueryRow(query, args) return r0 } + +type wrappedMethodSet struct { + inner anysdk.MethodSet +} + +func (w *wrappedMethodSet) GetFirstMatch(params map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) { + r0, r1, r2 := w.inner.GetFirstMatch(params) + return &wrappedStandardOperationStore{inner: r0}, r1, r2 +} + +func (w *wrappedMethodSet) GetFirstNamespaceMatch(params map[string]any) (StandardOperationStore, map[string]any, bool) { + r0, r1, r2 := w.inner.GetFirstNamespaceMatch(params) + return &wrappedStandardOperationStore{inner: r0}, r1, r2 +} + +func (w *wrappedMethodSet) GetFirst() (StandardOperationStore, string, bool) { + r0, r1, r2 := w.inner.GetFirst() + return &wrappedStandardOperationStore{inner: r0}, r1, r2 +} From 5848d18ce76d20d16c544df320432471af143813 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 17:36:40 +1100 Subject: [PATCH 10/64] compile-and-tests-pass --- public/formulation/formulation.go | 5 ++ public/formulation/interfaces.go | 30 ++----- public/formulation/wrappers.go | 143 +++++++++++++++++------------- 3 files changed, 91 insertions(+), 87 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 08f4db7..86f3c66 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -178,3 +178,8 @@ func NewRegistry(registryCfg RegistryConfig, transport http.RoundTripper) (Regis } return &wrappedRegistryAPI{inner: rv}, nil } + +func NewStringSchema(svc OpenAPIService, key string, path string) Schema { + raw := anysdk.NewStringSchema(svc.unwrapOpenapi3Service(), key, path) + return newWrappedSchemaFromAnySdkSchema(raw) +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 2cbd4ea..8dcfcbc 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -284,6 +284,11 @@ type SQLExternalTable interface { GetSchemaName() string } +type OpenAPIService interface { + Service + unwrapOpenapi3Service() anysdk.OpenAPIService +} + // Schema mirrors methods on Schema type Schema interface { FindByPath(path string, visited map[string]bool) Schema @@ -319,29 +324,8 @@ type Service interface { // StandardOperationStore mirrors methods on StandardOperationStore type StandardOperationStore interface { - GetAddressSpace() (AddressSpace, bool) - GetColumnOrder(extended bool) []string - GetGraphQL() GraphQL - GetInline() []string - GetInverse() (OperationInverse, bool) - GetName() string - GetOptionalParameters() map[string]Addressable - GetPaginationRequestTokenSemantic() (TokenSemantic, bool) - GetPaginationResponseTokenSemantic() (TokenSemantic, bool) - GetParameter(paramKey string) (Addressable, bool) - GetProjections() map[string]string - GetRequest() (ExpectedRequest, bool) - GetRequestBodySchema() (Schema, error) - GetRequiredParameters() map[string]Addressable - GetResponse() (ExpectedResponse, bool) - GetResponseBodySchemaAndMediaType() (Schema, string, error) - GetSelectItemsKey() string - GetSelectSchemaAndObjectPath() (Schema, string, error) - GetServers() (openapi3.Servers, bool) - IsAwaitable() bool - IsNullary() bool - ToPresentationMap(extended bool) map[string]interface{} - unwrap() anysdk.StandardOperationStore + OperationStore + unwrapStandardOperationStore() anysdk.StandardOperationStore } // Tabulation mirrors methods on Tabulation diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 99a260b..663cfdc 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -349,7 +349,7 @@ func (w *wrappedColumn) GetName() string { func (w *wrappedColumn) GetSchema() Schema { r0 := w.inner.GetSchema() - return &wrappedSchema{inner: r0} + return newWrappedSchemaFromAnySdkSchema(r0) } func (w *wrappedColumn) GetWidth() int { @@ -528,9 +528,13 @@ func (w *wrappedMethodAnalysisOutput) GetInsertTabulation() Tabulation { return &wrappedTabulation{inner: r0} } +func newWrappedSchemaFromAnySdkSchema(inner anysdk.Schema) Schema { + return &wrappedSchema{inner: inner} +} + func (w *wrappedMethodAnalysisOutput) GetItemSchema() (Schema, bool) { r0, r1 := w.inner.GetItemSchema() - return &wrappedSchema{inner: r0}, r1 + return newWrappedSchemaFromAnySdkSchema(r0), r1 } func (w *wrappedMethodAnalysisOutput) GetOrderedStarColumnsNames() ([]string, error) { @@ -620,7 +624,7 @@ func (w *wrappedOperationStore) GetParameter(paramKey string) (Addressable, bool func (w *wrappedOperationStore) GetRequestBodySchema() (Schema, error) { r0, r1 := w.inner.GetRequestBodySchema() - return &wrappedSchema{inner: r0}, r1 + return newWrappedSchemaFromAnySdkSchema(r0), r1 } func (w *wrappedOperationStore) GetRequiredNonBodyParameters() map[string]Addressable { @@ -640,7 +644,7 @@ func (w *wrappedOperationStore) GetResource() Resource { func (w *wrappedOperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { r0, r1, r2 := w.inner.GetResponseBodySchemaAndMediaType() - return &wrappedSchema{inner: r0}, r1, r2 + return newWrappedSchemaFromAnySdkSchema(r0), r1, r2 } func (w *wrappedOperationStore) GetSelectItemsKey() string { @@ -951,12 +955,12 @@ func (w *wrappedSchema) unwrap() anysdk.Schema { func (w *wrappedSchema) FindByPath(path string, visited map[string]bool) Schema { r0 := w.inner.FindByPath(path, visited) - return &wrappedSchema{inner: r0} + return newWrappedSchemaFromAnySdkSchema(r0) } func (w *wrappedSchema) GetAdditionalProperties() (Schema, bool) { r0, r1 := w.inner.GetAdditionalProperties() - return &wrappedSchema{inner: r0}, r1 + return newWrappedSchemaFromAnySdkSchema(r0), r1 } func (w *wrappedSchema) GetAllColumns(p0 string) []string { @@ -966,7 +970,7 @@ func (w *wrappedSchema) GetAllColumns(p0 string) []string { func (w *wrappedSchema) GetItemsSchema() (Schema, error) { r0, r1 := w.inner.GetItemsSchema() - return &wrappedSchema{inner: r0}, r1 + return newWrappedSchemaFromAnySdkSchema(r0), r1 } func (w *wrappedSchema) GetName() string { @@ -981,17 +985,17 @@ func (w *wrappedSchema) GetProperties() (anysdk.Schemas, error) { func (w *wrappedSchema) GetProperty(propertyKey string) (Schema, bool) { r0, r1 := w.inner.GetProperty(propertyKey) - return &wrappedSchema{inner: r0}, r1 + return newWrappedSchemaFromAnySdkSchema(r0), r1 } func (w *wrappedSchema) GetPropertySchema(key string) (Schema, error) { r0, r1 := w.inner.GetPropertySchema(key) - return &wrappedSchema{inner: r0}, r1 + return newWrappedSchemaFromAnySdkSchema(r0), r1 } func (w *wrappedSchema) GetSelectSchema(itemsKey string, mediaType string) (Schema, string, error) { r0, r1, r2 := w.inner.GetSelectSchema(itemsKey, mediaType) - return &wrappedSchema{inner: r0}, r1, r2 + return newWrappedSchemaFromAnySdkSchema(r0), r1, r2 } func (w *wrappedSchema) GetSelectionName() string { @@ -1064,7 +1068,7 @@ func (w *wrappedService) GetResource(resourceName string) (Resource, error) { func (w *wrappedService) GetSchema(key string) (Schema, error) { r0, r1 := w.inner.GetSchema(key) - return &wrappedSchema{inner: r0}, r1 + return newWrappedSchemaFromAnySdkSchema(r0), r1 } func (w *wrappedService) GetServers() (openapi3.Servers, bool) { @@ -1076,33 +1080,17 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } -func (w *wrappedStandardOperationStore) unwrap() anysdk.StandardOperationStore { +func (w *wrappedStandardOperationStore) unwrap() anysdk.OperationStore { return w.inner } -func (w *wrappedStandardOperationStore) GetAddressSpace() (AddressSpace, bool) { - r0, r1 := w.inner.GetAddressSpace() - return &wrappedAddressSpace{inner: r0}, r1 -} - -func (w *wrappedStandardOperationStore) GetColumnOrder(extended bool) []string { - r0 := w.inner.GetColumnOrder(extended) - return r0 -} - -func (w *wrappedStandardOperationStore) GetGraphQL() GraphQL { - r0 := w.inner.GetGraphQL() - return &wrappedGraphQL{inner: r0} -} - -func (w *wrappedStandardOperationStore) GetInline() []string { - r0 := w.inner.GetInline() - return r0 +func (w *wrappedStandardOperationStore) unwrapStandardOperationStore() anysdk.StandardOperationStore { + return w.inner } -func (w *wrappedStandardOperationStore) GetInverse() (OperationInverse, bool) { - r0, r1 := w.inner.GetInverse() - return &wrappedOperationInverse{inner: r0}, r1 +func (w *wrappedStandardOperationStore) DeprecatedProcessResponse(response *http.Response) (map[string]interface{}, error) { + r0, r1 := w.inner.DeprecatedProcessResponse(response) + return r0, r1 } func (w *wrappedStandardOperationStore) GetName() string { @@ -1110,8 +1098,8 @@ func (w *wrappedStandardOperationStore) GetName() string { return r0 } -func (w *wrappedStandardOperationStore) GetOptionalParameters() map[string]Addressable { - r0 := w.inner.GetOptionalParameters() +func (w *wrappedStandardOperationStore) GetNonBodyParameters() map[string]Addressable { + r0 := w.inner.GetNonBodyParameters() return wrapMapString_Addressable(r0) } @@ -1130,19 +1118,14 @@ func (w *wrappedStandardOperationStore) GetParameter(paramKey string) (Addressab return &wrappedAddressable{inner: r0}, r1 } -func (w *wrappedStandardOperationStore) GetProjections() map[string]string { - r0 := w.inner.GetProjections() - return r0 -} - -func (w *wrappedStandardOperationStore) GetRequest() (ExpectedRequest, bool) { - r0, r1 := w.inner.GetRequest() - return &wrappedExpectedRequest{inner: r0}, r1 -} - func (w *wrappedStandardOperationStore) GetRequestBodySchema() (Schema, error) { r0, r1 := w.inner.GetRequestBodySchema() - return &wrappedSchema{inner: r0}, r1 + return newWrappedSchemaFromAnySdkSchema(r0), r1 +} + +func (w *wrappedStandardOperationStore) GetRequiredNonBodyParameters() map[string]Addressable { + r0 := w.inner.GetRequiredNonBodyParameters() + return wrapMapString_Addressable(r0) } func (w *wrappedStandardOperationStore) GetRequiredParameters() map[string]Addressable { @@ -1150,14 +1133,14 @@ func (w *wrappedStandardOperationStore) GetRequiredParameters() map[string]Addre return wrapMapString_Addressable(r0) } -func (w *wrappedStandardOperationStore) GetResponse() (ExpectedResponse, bool) { - r0, r1 := w.inner.GetResponse() - return &wrappedExpectedResponse{inner: r0}, r1 +func (w *wrappedStandardOperationStore) GetResource() Resource { + r0 := w.inner.GetResource() + return &wrappedResource{inner: r0} } func (w *wrappedStandardOperationStore) GetResponseBodySchemaAndMediaType() (Schema, string, error) { r0, r1, r2 := w.inner.GetResponseBodySchemaAndMediaType() - return &wrappedSchema{inner: r0}, r1, r2 + return newWrappedSchemaFromAnySdkSchema(r0), r1, r2 } func (w *wrappedStandardOperationStore) GetSelectItemsKey() string { @@ -1165,29 +1148,34 @@ func (w *wrappedStandardOperationStore) GetSelectItemsKey() string { return r0 } -func (w *wrappedStandardOperationStore) GetSelectSchemaAndObjectPath() (Schema, string, error) { - r0, r1, r2 := w.inner.GetSelectSchemaAndObjectPath() - return &wrappedSchema{inner: r0}, r1, r2 +func (w *wrappedStandardOperationStore) GetService() anysdk.OpenAPIService { + r0 := w.inner.GetService() + return r0 } -func (w *wrappedStandardOperationStore) GetServers() (openapi3.Servers, bool) { - r0, r1 := w.inner.GetServers() - return r0, r1 +func (w *wrappedStandardOperationStore) IsRequestBodyAttributeRenamed(p0 string) bool { + r0 := w.inner.IsRequestBodyAttributeRenamed(p0) + return r0 } -func (w *wrappedStandardOperationStore) IsAwaitable() bool { - r0 := w.inner.IsAwaitable() +func (w *wrappedStandardOperationStore) IsRequiredRequestBodyProperty(key string) bool { + r0 := w.inner.IsRequiredRequestBodyProperty(key) return r0 } -func (w *wrappedStandardOperationStore) IsNullary() bool { - r0 := w.inner.IsNullary() - return r0 +func (w *wrappedStandardOperationStore) ProcessResponse(p0 *http.Response) (ProcessedOperationResponse, error) { + r0, r1 := w.inner.ProcessResponse(p0) + return &wrappedProcessedOperationResponse{inner: r0}, r1 } -func (w *wrappedStandardOperationStore) ToPresentationMap(extended bool) map[string]interface{} { - r0 := w.inner.ToPresentationMap(extended) - return r0 +func (w *wrappedStandardOperationStore) RenameRequestBodyAttribute(p0 string) (string, error) { + r0, r1 := w.inner.RenameRequestBodyAttribute(p0) + return r0, r1 +} + +func (w *wrappedStandardOperationStore) RevertRequestBodyAttributeRename(p0 string) (string, error) { + r0, r1 := w.inner.RevertRequestBodyAttributeRename(p0) + return r0, r1 } type wrappedTabulation struct { @@ -2095,3 +2083,30 @@ func (w *wrappedMethodSet) GetFirst() (StandardOperationStore, string, bool) { r0, r1, r2 := w.inner.GetFirst() return &wrappedStandardOperationStore{inner: r0}, r1, r2 } + +type wrappedOpenAPIService struct { + inner anysdk.OpenAPIService +} + +func (w *wrappedOpenAPIService) unwrapOpenapi3Service() anysdk.OpenAPIService { + return w.inner +} + +func (w *wrappedOpenAPIService) unwrap() anysdk.Service { + return w.inner +} + +func (w *wrappedOpenAPIService) GetResource(resourceName string) (Resource, error) { + r0, r1 := w.inner.GetResource(resourceName) + return &wrappedResource{inner: r0}, r1 +} + +func (w *wrappedOpenAPIService) GetSchema(key string) (Schema, error) { + r0, r1 := w.inner.GetSchema(key) + return newWrappedSchemaFromAnySdkSchema(r0), r1 +} + +func (w *wrappedOpenAPIService) GetServers() (openapi3.Servers, bool) { + r0, r1 := w.inner.GetServers() + return r0, r1 +} From 6b5cff4735acb945a44c21dbc362c24c00239270 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 17:47:13 +1100 Subject: [PATCH 11/64] compile-and-tests-pass --- public/formulation/interfaces.go | 2 +- public/formulation/wrappers.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 8dcfcbc..44ede41 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -165,7 +165,7 @@ type OperationStore interface { GetResource() Resource GetResponseBodySchemaAndMediaType() (Schema, string, error) GetSelectItemsKey() string - GetService() anysdk.OpenAPIService + GetService() OpenAPIService IsRequestBodyAttributeRenamed(p0 string) bool IsRequiredRequestBodyProperty(key string) bool ProcessResponse(p0 *http.Response) (ProcessedOperationResponse, error) diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 663cfdc..acdd50f 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1148,9 +1148,9 @@ func (w *wrappedStandardOperationStore) GetSelectItemsKey() string { return r0 } -func (w *wrappedStandardOperationStore) GetService() anysdk.OpenAPIService { +func (w *wrappedStandardOperationStore) GetService() OpenAPIService { r0 := w.inner.GetService() - return r0 + return &wrappedOpenAPIService{inner: r0} } func (w *wrappedStandardOperationStore) IsRequestBodyAttributeRenamed(p0 string) bool { From a3455ea0148963d674abb21e1c480b7e1a680cf7 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 17:54:59 +1100 Subject: [PATCH 12/64] compile-and-tests-pass --- public/formulation/formulation.go | 11 +++++++++++ public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 5 +++++ 3 files changed, 17 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 86f3c66..4aa6212 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -183,3 +183,14 @@ func NewStringSchema(svc OpenAPIService, key string, path string) Schema { raw := anysdk.NewStringSchema(svc.unwrapOpenapi3Service(), key, path) return newWrappedSchemaFromAnySdkSchema(raw) } + +func LoadProviderAndServiceFromPaths( + provFilePath string, + svcFilePath string, +) (Service, error) { + svc, err := anysdk.LoadProviderAndServiceFromPaths(provFilePath, svcFilePath) + if err != nil { + return nil, err + } + return &wrappedService{inner: svc}, nil +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 44ede41..94e502f 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -325,6 +325,7 @@ type Service interface { // StandardOperationStore mirrors methods on StandardOperationStore type StandardOperationStore interface { OperationStore + GetServers() (openapi3.Servers, bool) unwrapStandardOperationStore() anysdk.StandardOperationStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index acdd50f..23e2ea8 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1080,6 +1080,11 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) GetServers() (openapi3.Servers, bool) { + r0, r1 := w.inner.GetServers() + return r0, r1 +} + func (w *wrappedStandardOperationStore) unwrap() anysdk.OperationStore { return w.inner } From 8355ee7e5532bfe3be35618d4d15cab6696f64f8 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 18:10:44 +1100 Subject: [PATCH 13/64] compile-and-tests-pass --- public/formulation/interfaces.go | 12 ++++++++---- public/formulation/wrappers.go | 27 +++++++++++++++++++-------- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 94e502f..67cb06c 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -296,7 +296,7 @@ type Schema interface { GetAllColumns(p0 string) []string GetItemsSchema() (Schema, error) GetName() string - GetProperties() (anysdk.Schemas, error) + GetProperties() (Schemas, error) GetProperty(propertyKey string) (Schema, bool) GetPropertySchema(key string) (Schema, error) GetSelectSchema(itemsKey string, mediaType string) (Schema, string, error) @@ -314,6 +314,8 @@ type Schema interface { unwrap() anysdk.Schema } +type Schemas map[string]Schema + // Service mirrors methods on Service type Service interface { GetResource(resourceName string) (Resource, error) @@ -331,16 +333,18 @@ type StandardOperationStore interface { // Tabulation mirrors methods on Tabulation type Tabulation interface { - GetColumns() []anysdk.ColumnDescriptor - PushBackColumn(col anysdk.ColumnDescriptor) + GetColumns() []ColumnDescriptor + PushBackColumn(col ColumnDescriptor) RenameColumnsToXml() Tabulation } +type TokenTransformer func(interface{}) (interface{}, error) + // TokenSemantic mirrors methods on TokenSemantic type TokenSemantic interface { GetKey() string GetLocation() string - GetTransformer() (anysdk.TokenTransformer, error) + GetTransformer() (TokenTransformer, error) } // Transform mirrors methods on Transform diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 23e2ea8..256dfcb 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -978,9 +978,16 @@ func (w *wrappedSchema) GetName() string { return r0 } -func (w *wrappedSchema) GetProperties() (anysdk.Schemas, error) { +func (w *wrappedSchema) GetProperties() (Schemas, error) { r0, r1 := w.inner.GetProperties() - return r0, r1 + if r1 != nil { + return nil, r1 + } + rv := make(Schemas, len(r0)) + for k, v := range r0 { + rv[k] = newWrappedSchemaFromAnySdkSchema(v) + } + return rv, nil } func (w *wrappedSchema) GetProperty(propertyKey string) (Schema, bool) { @@ -1187,13 +1194,17 @@ type wrappedTabulation struct { inner anysdk.Tabulation } -func (w *wrappedTabulation) GetColumns() []anysdk.ColumnDescriptor { +func (w *wrappedTabulation) GetColumns() []ColumnDescriptor { r0 := w.inner.GetColumns() - return r0 + rv := make([]ColumnDescriptor, len(r0)) + for i, v := range r0 { + rv[i] = &wrappedColumnDescriptor{inner: v} + } + return rv } -func (w *wrappedTabulation) PushBackColumn(col anysdk.ColumnDescriptor) { - w.inner.PushBackColumn(col) +func (w *wrappedTabulation) PushBackColumn(col ColumnDescriptor) { + w.inner.PushBackColumn(col.unwrap()) return } @@ -1216,9 +1227,9 @@ func (w *wrappedTokenSemantic) GetLocation() string { return r0 } -func (w *wrappedTokenSemantic) GetTransformer() (anysdk.TokenTransformer, error) { +func (w *wrappedTokenSemantic) GetTransformer() (TokenTransformer, error) { r0, r1 := w.inner.GetTransformer() - return r0, r1 + return TokenTransformer(r0), r1 } type wrappedTransform struct { From 4591220a3c50bbec213c8de498a0b713ac1251ea Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 20:34:45 +1100 Subject: [PATCH 14/64] compile-and-tests-pass --- public/formulation/formulation.go | 12 ++++++------ public/formulation/interfaces.go | 2 +- public/formulation/wrappers.go | 8 ++++++-- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 4aa6212..1b8c92d 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -42,8 +42,8 @@ type ColumnDescriptor interface { GetName() string GetNode() sqlparser.SQLNode GetQualifier() string - GetRepresentativeSchema() anysdk.Schema - GetSchema() anysdk.Schema + GetRepresentativeSchema() Schema + GetSchema() Schema GetVal() *sqlparser.SQLVal unwrap() anysdk.ColumnDescriptor } @@ -72,12 +72,12 @@ func (w *wrappedColumnDescriptor) GetQualifier() string { return w.inner.GetQualifier() } -func (w *wrappedColumnDescriptor) GetRepresentativeSchema() anysdk.Schema { - return w.inner.GetRepresentativeSchema() +func (w *wrappedColumnDescriptor) GetRepresentativeSchema() Schema { + return newWrappedSchemaFromAnySdkSchema(w.inner.GetRepresentativeSchema()) } -func (w *wrappedColumnDescriptor) GetSchema() anysdk.Schema { - return w.inner.GetSchema() +func (w *wrappedColumnDescriptor) GetSchema() Schema { + return newWrappedSchemaFromAnySdkSchema(w.inner.GetSchema()) } func (w *wrappedColumnDescriptor) GetAlias() string { diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 67cb06c..f22ba5c 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -251,7 +251,7 @@ type RegistryAPI interface { // Relation mirrors methods on Relation type Relation interface { - GetColumnDescriptors() []anysdk.ColumnDescriptor + GetColumnDescriptors() []ColumnDescriptor GetColumns() []Column } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 256dfcb..d07185a 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -838,9 +838,13 @@ type wrappedRelation struct { inner anysdk.Relation } -func (w *wrappedRelation) GetColumnDescriptors() []anysdk.ColumnDescriptor { +func (w *wrappedRelation) GetColumnDescriptors() []ColumnDescriptor { r0 := w.inner.GetColumnDescriptors() - return r0 + rv := make([]ColumnDescriptor, len(r0)) + for i, v := range r0 { + rv[i] = &wrappedColumnDescriptor{inner: v} + } + return rv } func (w *wrappedRelation) GetColumns() []Column { From dcf61cdcc660e16faaef251421122f82709324d4 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 21:11:18 +1100 Subject: [PATCH 15/64] compile-and-tests-pass --- public/formulation/formulation.go | 10 ++++++++++ public/formulation/interfaces.go | 2 ++ public/formulation/wrappers.go | 28 ++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 1b8c92d..dfc6a00 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -9,6 +9,7 @@ import ( "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/streaming" + "github.com/stackql/any-sdk/public/persistence" "github.com/stackql/stackql-parser/go/vt/sqlparser" ) @@ -48,6 +49,15 @@ type ColumnDescriptor interface { unwrap() anysdk.ColumnDescriptor } +type PersistenceSystem interface { + GetSystemName() string + HandleExternalTables(providerName string, externalTables map[string]SQLExternalTable) error + HandleViewCollection([]View) error + CacheStoreGet(key string) ([]byte, error) + CacheStorePut(key string, value []byte, expiration string, ttl int) error + unwrap() persistence.PersistenceSystem +} + type wrappedColumnDescriptor struct { inner anysdk.ColumnDescriptor } diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index f22ba5c..e8695ea 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -219,6 +219,7 @@ func (rc RegistryConfig) toAnySdkRegistryConfig() anysdk.RegistryConfig { // ProviderDescription mirrors methods on ProviderDescription type ProviderDescription interface { GetLatestVersion() (string, error) + Versions() []string } // ProviderService mirrors methods on ProviderService @@ -282,6 +283,7 @@ type SQLExternalTable interface { GetColumns() []SQLExternalColumn GetName() string GetSchemaName() string + unwrap() anysdk.SQLExternalTable } type OpenAPIService interface { diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index d07185a..f135392 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -33,6 +33,7 @@ import ( "github.com/stackql/any-sdk/pkg/streaming" "github.com/stackql/any-sdk/pkg/surface" "github.com/stackql/any-sdk/public/discovery" + "github.com/stackql/any-sdk/public/persistence" "github.com/stackql/any-sdk/public/radix_tree_address_space" "github.com/stackql/any-sdk/public/sqlengine" "github.com/stackql/stackql-parser/go/sqltypes" @@ -244,6 +245,24 @@ func unwrapSlice_View(in []*wrappedView) []anysdk.View { return out } +type wrappedPersistenceSystem struct { + inner persistence.PersistenceSystem +} + +func (w *wrappedPersistenceSystem) GetSystemName() string { + r0 := w.inner.GetSystemName() + return r0 +} + +func (w *wrappedPersistenceSystem) HandleExternalTables(providerName string, externalTables map[string]SQLExternalTable) error { + inner_externalTables := make(map[string]anysdk.SQLExternalTable, len(externalTables)) + for k, v := range externalTables { + inner_externalTables[k] = v.unwrap() + } + r0 := w.inner.HandleExternalTables(providerName, inner_externalTables) + return r0 +} + type wrappedAuthMetadata struct { inner *anysdk.AuthMetadata } @@ -756,6 +775,11 @@ func (w *wrappedProviderDescription) GetLatestVersion() (string, error) { return r0, r1 } +func (w *wrappedProviderDescription) Versions() []string { + r0 := w.inner.Versions + return r0 +} + type wrappedProviderService struct { inner anysdk.ProviderService } @@ -949,6 +973,10 @@ func (w *wrappedSQLExternalTable) GetSchemaName() string { return r0 } +func (w *wrappedSQLExternalTable) unwrap() anysdk.SQLExternalTable { + return w.inner +} + type wrappedSchema struct { inner anysdk.Schema } From cd1cd394a69a71b8b5bc7cb9fab6e45861271610 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 21:15:50 +1100 Subject: [PATCH 16/64] compile-and-tests-pass --- public/formulation/wrappers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index f135392..d2aa866 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -263,6 +263,10 @@ func (w *wrappedPersistenceSystem) HandleExternalTables(providerName string, ext return r0 } +func (w *wrappedPersistenceSystem) unwrap() persistence.PersistenceSystem { + return w.inner +} + type wrappedAuthMetadata struct { inner *anysdk.AuthMetadata } From 85025eeb6736865c7c68ee2c275508dc44ba0310 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 21:47:05 +1100 Subject: [PATCH 17/64] compile-and-tests-pass --- public/formulation/formulation.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index dfc6a00..e3a7b74 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -9,7 +9,6 @@ import ( "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/streaming" - "github.com/stackql/any-sdk/public/persistence" "github.com/stackql/stackql-parser/go/vt/sqlparser" ) @@ -55,7 +54,7 @@ type PersistenceSystem interface { HandleViewCollection([]View) error CacheStoreGet(key string) ([]byte, error) CacheStorePut(key string, value []byte, expiration string, ttl int) error - unwrap() persistence.PersistenceSystem + // unwrap() persistence.PersistenceSystem } type wrappedColumnDescriptor struct { From 15776cb2a1ab2bff54b4720877be640fd9dc3fd0 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sat, 21 Feb 2026 21:56:02 +1100 Subject: [PATCH 18/64] compile-and-tests-pass --- public/formulation/formulation.go | 10 ++++++++++ public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 24 ++++++++++++++++++++++-- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index e3a7b74..a65385d 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -9,9 +9,19 @@ import ( "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/streaming" + "github.com/stackql/any-sdk/public/persistence" + "github.com/stackql/any-sdk/public/sqlengine" "github.com/stackql/stackql-parser/go/vt/sqlparser" ) +func NewSQLPersistenceSystem(systemType string, sqlEngine sqlengine.SQLEngine) (PersistenceSystem, error) { + anySdkPersistenceSystem, err := persistence.NewSQLPersistenceSystem(systemType, sqlEngine) + if err != nil { + return nil, err + } + return &wrappedPersistenceSystem{inner: anySdkPersistenceSystem}, nil +} + type ArmouryGenerator interface { GetHTTPArmoury() (anysdk.HTTPArmoury, error) } diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index e8695ea..45e373c 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -360,6 +360,7 @@ type View interface { GetDDL() string GetNameNaive() string GetRequiredParamNames() []string + unwrap() anysdk.View } // AuthUtility mirrors methods on AuthUtility diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index d2aa866..50c4967 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -234,13 +234,13 @@ func wrapSlice_View(in []anysdk.View) []View { return out } -func unwrapSlice_View(in []*wrappedView) []anysdk.View { +func unwrapSlice_View(in []View) []anysdk.View { if in == nil { return nil } out := make([]anysdk.View, 0, len(in)) for _, v := range in { - out = append(out, v.inner) + out = append(out, v.unwrap()) } return out } @@ -249,6 +249,22 @@ type wrappedPersistenceSystem struct { inner persistence.PersistenceSystem } +func (w *wrappedPersistenceSystem) CacheStoreGet(key string) ([]byte, error) { + r0, r1 := w.inner.CacheStoreGet(key) + return r0, r1 +} + +func (w *wrappedPersistenceSystem) CacheStorePut(key string, value []byte, expiration string, ttl int) error { + r0 := w.inner.CacheStorePut(key, value, expiration, ttl) + return r0 +} + +func (w *wrappedPersistenceSystem) HandleViewCollection(p0 []View) error { + inner_p0 := unwrapSlice_View(p0) + r0 := w.inner.HandleViewCollection(inner_p0) + return r0 +} + func (w *wrappedPersistenceSystem) GetSystemName() string { r0 := w.inner.GetSystemName() return r0 @@ -1301,6 +1317,10 @@ func (w *wrappedView) GetRequiredParamNames() []string { return r0 } +func (w *wrappedView) unwrap() anysdk.View { + return w.inner +} + type wrappedAuthUtility struct { inner auth_util.AuthUtility } From 6912c8cf3c0fba44e03ae5937da6d18ce0327638 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 10:44:26 +1100 Subject: [PATCH 19/64] compile-and-tests-pass --- public/formulation/formulation.go | 27 ++++++++++++++ public/formulation/interfaces.go | 23 +++++++++++- public/formulation/wrappers.go | 61 ++++++++++++++++++++++++++++++- 3 files changed, 108 insertions(+), 3 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index a65385d..51d7218 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -10,6 +10,7 @@ import ( "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/streaming" "github.com/stackql/any-sdk/public/persistence" + "github.com/stackql/any-sdk/public/radix_tree_address_space" "github.com/stackql/any-sdk/public/sqlengine" "github.com/stackql/stackql-parser/go/vt/sqlparser" ) @@ -198,6 +199,10 @@ func NewRegistry(registryCfg RegistryConfig, transport http.RoundTripper) (Regis return &wrappedRegistryAPI{inner: rv}, nil } +var DefaultLinkHeaderTransformer = anysdk.DefaultLinkHeaderTransformer + +var NewAnySdkClientConfigurator = anysdk.NewAnySdkClientConfigurator + func NewStringSchema(svc OpenAPIService, key string, path string) Schema { raw := anysdk.NewStringSchema(svc.unwrapOpenapi3Service(), key, path) return newWrappedSchemaFromAnySdkSchema(raw) @@ -213,3 +218,25 @@ func LoadProviderAndServiceFromPaths( } return &wrappedService{inner: svc}, nil } + +func NewAddressSpaceFormulator( + grammar AddressSpaceGrammar, + provider Provider, + service Service, + resource Resource, + method StandardOperationStore, + aliasedUnionSelectKeys map[string]string, + isAwait bool, +) AddressSpaceFormulator { + return &wrappedAddressSpaceFormulator{ + inner: radix_tree_address_space.NewAddressSpaceFormulator( + grammar, + provider.unwrap(), + service.unwrap(), + resource.unwrap(), + method.unwrapStandardOperationStore(), + aliasedUnionSelectKeys, + isAwait, + ), + } +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 45e373c..c2b2f28 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -21,6 +21,7 @@ import ( "github.com/stackql/any-sdk/pkg/internaldto" "github.com/stackql/any-sdk/pkg/netutils" "github.com/stackql/any-sdk/pkg/providerinvoker" + "github.com/stackql/any-sdk/public/radix_tree_address_space" "github.com/stackql/stackql-parser/go/sqltypes" "github.com/stackql/stackql-provider-registry/signing/Ed25519/app/edcrypto" ) @@ -48,8 +49,26 @@ type RuntimeCtx interface { } // AddressSpace mirrors methods on AddressSpace +type AddressSpaceExpansionConfig interface { + IsAsync() bool + IsLegacy() bool + IsAllowNilResponse() bool + unwrap() anysdk.AddressSpaceExpansionConfig +} + +// AddressSpaceGrammar defines the search DSL +type AddressSpaceGrammar radix_tree_address_space.AddressSpaceGrammar + type AddressSpace interface { - ToRelation(p0 anysdk.AddressSpaceExpansionConfig) (Relation, error) + GetGlobalSelectSchemas() map[string]Schema + DereferenceAddress(address string) (any, bool) + WriteToAddress(address string, val any) error + ReadFromAddress(address string) (any, bool) + ResolveSignature(map[string]any) (bool, map[string]any) + Invoke(...any) error + ToMap(AddressSpaceExpansionConfig) (map[string]any, error) + ToRelation(AddressSpaceExpansionConfig) (Relation, error) + unwrap() anysdk.AddressSpace } // Column mirrors methods on Column @@ -171,6 +190,7 @@ type OperationStore interface { ProcessResponse(p0 *http.Response) (ProcessedOperationResponse, error) RenameRequestBodyAttribute(p0 string) (string, error) RevertRequestBodyAttributeRename(p0 string) (string, error) + GetProjections() map[string]string unwrap() anysdk.OperationStore } @@ -266,6 +286,7 @@ type Resource interface { GetName() string GetViewsForSqlDialect(sqlDialect string) ([]View, bool) ToMap(extended bool) map[string]interface{} + unwrap() anysdk.Resource } // SQLExternalColumn mirrors methods on SQLExternalColumn diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 50c4967..012d35e 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -339,11 +339,54 @@ type wrappedAddressSpace struct { inner anysdk.AddressSpace } -func (w *wrappedAddressSpace) ToRelation(p0 anysdk.AddressSpaceExpansionConfig) (Relation, error) { - r0, r1 := w.inner.ToRelation(p0) +func (w *wrappedAddressSpace) ToRelation(p0 AddressSpaceExpansionConfig) (Relation, error) { + r0, r1 := w.inner.ToRelation(p0.unwrap()) return &wrappedRelation{inner: r0}, r1 } +func (w *wrappedAddressSpace) GetGlobalSelectSchemas() map[string]Schema { + r0 := w.inner.GetGlobalSelectSchemas() + rv := make(map[string]Schema, len(r0)) + for k, v := range r0 { + rv[k] = newWrappedSchemaFromAnySdkSchema(v) + } + return rv +} + +func (w *wrappedAddressSpace) DereferenceAddress(address string) (any, bool) { + r0, r1 := w.inner.DereferenceAddress(address) + return r0, r1 +} + +func (w *wrappedAddressSpace) WriteToAddress(address string, val any) error { + r0 := w.inner.WriteToAddress(address, val) + return r0 +} + +func (w *wrappedAddressSpace) ReadFromAddress(address string) (any, bool) { + r0, r1 := w.inner.ReadFromAddress(address) + return r0, r1 +} + +func (w *wrappedAddressSpace) ResolveSignature(signature map[string]any) (bool, map[string]any) { + r0, r1 := w.inner.ResolveSignature(signature) + return r0, r1 +} + +func (w *wrappedAddressSpace) Invoke(args ...any) error { + r0 := w.inner.Invoke(args...) + return r0 +} + +func (w *wrappedAddressSpace) ToMap(config AddressSpaceExpansionConfig) (map[string]any, error) { + r0, r1 := w.inner.ToMap(config) + return r0, r1 +} + +func (w *wrappedAddressSpace) unwrap() anysdk.AddressSpace { + return w.inner +} + func DeprecatedNewAddressable(inner anysdk.Addressable) Addressable { return newAddressable(inner) } @@ -627,6 +670,11 @@ type wrappedOperationStore struct { inner anysdk.OperationStore } +func (w *wrappedOperationStore) GetProjections() map[string]string { + r0 := w.inner.GetProjections() + return r0 +} + func (w *wrappedOperationStore) unwrap() anysdk.OperationStore { return w.inner } @@ -900,6 +948,10 @@ type wrappedResource struct { inner anysdk.Resource } +func (w *wrappedResource) unwrap() anysdk.Resource { + return w.inner +} + func (w *wrappedResource) FindMethod(key string) (StandardOperationStore, error) { r0, r1 := w.inner.FindMethod(key) return &wrappedStandardOperationStore{inner: r0}, r1 @@ -1139,6 +1191,11 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) GetProjections() map[string]string { + r0 := w.inner.GetProjections() + return r0 +} + func (w *wrappedStandardOperationStore) GetServers() (openapi3.Servers, bool) { r0, r1 := w.inner.GetServers() return r0, r1 From 5da58425a483057bdec572a1e6a2d5bd1fb4ca86 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 11:00:20 +1100 Subject: [PATCH 20/64] compile-and-tests-pass --- public/formulation/formulation.go | 10 ++++++++++ public/formulation/wrappers.go | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 51d7218..23e3318 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -208,6 +208,16 @@ func NewStringSchema(svc OpenAPIService, key string, path string) Schema { return newWrappedSchemaFromAnySdkSchema(raw) } +func NewStandardAddressSpaceExpansionConfig( + isAsync bool, + isLegacy bool, + isAllowNilResponse bool, +) AddressSpaceExpansionConfig { + return &wrappedAddressSpaceExpansionConfig{ + inner: radix_tree_address_space.NewStandardAddressSpaceExpansionConfig(isAsync, isLegacy, isAllowNilResponse), + } +} + func LoadProviderAndServiceFromPaths( provFilePath string, svcFilePath string, diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 012d35e..befc207 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -335,6 +335,29 @@ func (w *wrappedRuntimeCtx) Copy() RuntimeCtx { return &wrappedRuntimeCtx{inner: r0} } +type wrappedAddressSpaceExpansionConfig struct { + inner anysdk.AddressSpaceExpansionConfig +} + +func (w *wrappedAddressSpaceExpansionConfig) unwrap() anysdk.AddressSpaceExpansionConfig { + return w.inner +} + +func (w *wrappedAddressSpaceExpansionConfig) IsAsync() bool { + r0 := w.inner.IsAsync() + return r0 +} + +func (w *wrappedAddressSpaceExpansionConfig) IsLegacy() bool { + r0 := w.inner.IsLegacy() + return r0 +} + +func (w *wrappedAddressSpaceExpansionConfig) IsAllowNilResponse() bool { + r0 := w.inner.IsAllowNilResponse() + return r0 +} + type wrappedAddressSpace struct { inner anysdk.AddressSpace } From bacd22368d65122b7e5aa663665c891764268625 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 11:05:12 +1100 Subject: [PATCH 21/64] compile-and-tests-pass --- public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index c2b2f28..ffb776e 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -191,6 +191,7 @@ type OperationStore interface { RenameRequestBodyAttribute(p0 string) (string, error) RevertRequestBodyAttributeRename(p0 string) (string, error) GetProjections() map[string]string + GetAddressSpace() (AddressSpace, bool) unwrap() anysdk.OperationStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index befc207..80d9412 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -693,6 +693,11 @@ type wrappedOperationStore struct { inner anysdk.OperationStore } +func (w *wrappedOperationStore) GetAddressSpace() (AddressSpace, bool) { + r0, r1 := w.inner.GetAddressSpace() + return &wrappedAddressSpace{inner: r0}, r1 +} + func (w *wrappedOperationStore) GetProjections() map[string]string { r0 := w.inner.GetProjections() return r0 @@ -1214,6 +1219,11 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) GetAddressSpace() (AddressSpace, bool) { + r0, r1 := w.inner.GetAddressSpace() + return &wrappedAddressSpace{inner: r0}, r1 +} + func (w *wrappedStandardOperationStore) GetProjections() map[string]string { r0 := w.inner.GetProjections() return r0 From 8ce317fedec662b5af07967e311d3c8a2141ce73 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 11:22:18 +1100 Subject: [PATCH 22/64] compile-and-tests-pass --- public/formulation/interfaces.go | 3 +++ public/formulation/wrappers.go | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index ffb776e..2c4b7c2 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -94,6 +94,7 @@ type GraphQL interface { GetCursorJSONPath() (string, bool) GetQuery() string GetResponseJSONPath() (string, bool) + unwrap() anysdk.GraphQL } // HTTPArmoury mirrors methods on HTTPArmoury @@ -192,6 +193,7 @@ type OperationStore interface { RevertRequestBodyAttributeRename(p0 string) (string, error) GetProjections() map[string]string GetAddressSpace() (AddressSpace, bool) + GetGraphQL() GraphQL unwrap() anysdk.OperationStore } @@ -257,6 +259,7 @@ type MethodSet interface { GetFirstMatch(params map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) GetFirstNamespaceMatch(params map[string]any) (StandardOperationStore, map[string]any, bool) GetFirst() (StandardOperationStore, string, bool) + Size() int } // RegistryAPI mirrors methods on RegistryAPI diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 80d9412..6654cc4 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -504,6 +504,10 @@ func (w *wrappedGraphQL) GetResponseJSONPath() (string, bool) { return r0, r1 } +func (w *wrappedGraphQL) unwrap() anysdk.GraphQL { + return w.inner +} + type wrappedHTTPArmoury struct { inner anysdk.HTTPArmoury } @@ -693,6 +697,11 @@ type wrappedOperationStore struct { inner anysdk.OperationStore } +func (w *wrappedOperationStore) GetGraphQL() GraphQL { + r0 := w.inner.GetGraphQL() + return &wrappedGraphQL{inner: r0} +} + func (w *wrappedOperationStore) GetAddressSpace() (AddressSpace, bool) { r0, r1 := w.inner.GetAddressSpace() return &wrappedAddressSpace{inner: r0}, r1 @@ -1219,6 +1228,11 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) GetGraphQL() GraphQL { + r0 := w.inner.GetGraphQL() + return &wrappedGraphQL{inner: r0} +} + func (w *wrappedStandardOperationStore) GetAddressSpace() (AddressSpace, bool) { r0, r1 := w.inner.GetAddressSpace() return &wrappedAddressSpace{inner: r0}, r1 @@ -2227,10 +2241,25 @@ func (w *wrappedSQLEngine) QueryRow(query string, args ...any) *sql.Row { return r0 } +/* +type GraphQL interface { + GetCursorJSONPath() (string, bool) + GetQuery() string + GetResponseJSONPath() (string, bool) + unwrap() anysdk.GraphQL +} + +*/ + type wrappedMethodSet struct { inner anysdk.MethodSet } +func (w *wrappedMethodSet) Size() int { + r0 := len(w.inner) + return r0 +} + func (w *wrappedMethodSet) GetFirstMatch(params map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) { r0, r1, r2 := w.inner.GetFirstMatch(params) return &wrappedStandardOperationStore{inner: r0}, r1, r2 From 8570e5b6e65e06d067ae25f3159da1be9bb94f26 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 12:00:21 +1100 Subject: [PATCH 23/64] compile-and-tests-pass --- public/formulation/formulation.go | 70 ++++-------- public/formulation/interfaces.go | 25 +++++ public/formulation/wrappers.go | 172 ++++++++++++++++++++++++++++++ 3 files changed, 219 insertions(+), 48 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 23e3318..8f8c3fb 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -9,6 +9,7 @@ import ( "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/streaming" + "github.com/stackql/any-sdk/public/discovery" "github.com/stackql/any-sdk/public/persistence" "github.com/stackql/any-sdk/public/radix_tree_address_space" "github.com/stackql/any-sdk/public/sqlengine" @@ -68,54 +69,6 @@ type PersistenceSystem interface { // unwrap() persistence.PersistenceSystem } -type wrappedColumnDescriptor struct { - inner anysdk.ColumnDescriptor -} - -func (w *wrappedColumnDescriptor) unwrap() anysdk.ColumnDescriptor { - return w.inner -} - -func (w *wrappedColumnDescriptor) GetVal() *sqlparser.SQLVal { - return w.inner.GetVal() -} - -func (w *wrappedColumnDescriptor) GetNode() sqlparser.SQLNode { - return w.inner.GetNode() -} - -func (w *wrappedColumnDescriptor) GetDecoratedCol() string { - return w.inner.GetDecoratedCol() -} - -func (w *wrappedColumnDescriptor) GetQualifier() string { - return w.inner.GetQualifier() -} - -func (w *wrappedColumnDescriptor) GetRepresentativeSchema() Schema { - return newWrappedSchemaFromAnySdkSchema(w.inner.GetRepresentativeSchema()) -} - -func (w *wrappedColumnDescriptor) GetSchema() Schema { - return newWrappedSchemaFromAnySdkSchema(w.inner.GetSchema()) -} - -func (w *wrappedColumnDescriptor) GetAlias() string { - return w.inner.GetAlias() -} - -func (w *wrappedColumnDescriptor) GetName() string { - return w.inner.GetName() -} - -func (w *wrappedColumnDescriptor) GetIdentifier() string { - return w.inner.GetIdentifier() -} - -func newColDescriptorFromAnySdkColumnDescriptor(c anysdk.ColumnDescriptor) ColumnDescriptor { - return &wrappedColumnDescriptor{inner: c} -} - func NewColumnDescriptor(alias string, name string, qualifier string, decoratedCol string, node sqlparser.SQLNode, schema Schema, val *sqlparser.SQLVal) ColumnDescriptor { rv := anysdk.NewColumnDescriptor(alias, name, qualifier, decoratedCol, node, schema.unwrap(), val) return newColDescriptorFromAnySdkColumnDescriptor(rv) @@ -250,3 +203,24 @@ func NewAddressSpaceFormulator( ), } } + +func NewBasicDiscoveryAdapter( + alias string, + apiDiscoveryDocURL string, + discoveryStore IDiscoveryStore, + runtimeCtx *dto.RuntimeCtx, + registry RegistryAPI, + persistenceSystem PersistenceSystem, +) IDiscoveryAdapter { + reverseWrappedSystem := &reverseWrappedPersistenceSystem{inner: persistenceSystem} + return &wrappedDiscoveryAdapter{ + inner: discovery.NewBasicDiscoveryAdapter( + alias, + apiDiscoveryDocURL, + discoveryStore.unwrap(), + runtimeCtx, + registry.unwrap(), + reverseWrappedSystem, + ), + } +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 2c4b7c2..29081c4 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -21,6 +21,7 @@ import ( "github.com/stackql/any-sdk/pkg/internaldto" "github.com/stackql/any-sdk/pkg/netutils" "github.com/stackql/any-sdk/pkg/providerinvoker" + "github.com/stackql/any-sdk/public/discovery" "github.com/stackql/any-sdk/public/radix_tree_address_space" "github.com/stackql/stackql-parser/go/sqltypes" "github.com/stackql/stackql-provider-registry/signing/Ed25519/app/edcrypto" @@ -253,6 +254,7 @@ type ProviderService interface { GetTitle() string GetVersion() string IsPreferred() bool + unwrap() anysdk.ProviderService } type MethodSet interface { @@ -272,6 +274,7 @@ type RegistryAPI interface { LoadProviderByName(p0 string, p1 string) (Provider, error) PullAndPersistProviderArchive(p0 string, p1 string) error RemoveProviderVersion(p0 string, p1 string) error + unwrap() anysdk.RegistryAPI } // Relation mirrors methods on Relation @@ -623,6 +626,7 @@ type IDiscoveryAdapter interface { GetServiceHandlesMap(prov Provider) (map[string]ProviderService, error) GetServiceShard(prov Provider, serviceKey string, resourceKey string) (Service, error) PersistStaticExternalSQLDataSource(prov Provider) error + unwrap() discovery.IDiscoveryAdapter } // AddressSpaceFormulator mirrors methods on AddressSpaceFormulator @@ -647,3 +651,24 @@ type SQLEngine interface { Query(p0 string, p1 ...interface{}) (*sql.Rows, error) QueryRow(query string, args ...any) *sql.Row } + +type ResourceRegister interface { + // + // GetServiceDocPath() *ServiceRef + ObtainServiceDocUrl(resourceKey string) string + SetProviderService(ps ProviderService) + SetProvider(p Provider) + GetResources() map[string]Resource + GetResource(string) (Resource, bool) + unwrap() anysdk.ResourceRegister +} + +type IDiscoveryStore interface { + ProcessProviderDiscoveryDoc(string, string) (Provider, error) + processResourcesDiscoveryDoc( + Provider, + ProviderService, + string) (ResourceRegister, error) + PersistServiceShard(Provider, ProviderService, string) (Service, error) + unwrap() discovery.IDiscoveryStore +} diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 6654cc4..790c3ca 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -37,6 +37,7 @@ import ( "github.com/stackql/any-sdk/public/radix_tree_address_space" "github.com/stackql/any-sdk/public/sqlengine" "github.com/stackql/stackql-parser/go/sqltypes" + "github.com/stackql/stackql-parser/go/vt/sqlparser" ) func wrapMapString_Addressable(in map[string]anysdk.Addressable) map[string]Addressable { @@ -889,6 +890,10 @@ type wrappedProviderService struct { inner anysdk.ProviderService } +func (w *wrappedProviderService) unwrap() anysdk.ProviderService { + return w.inner +} + func (w *wrappedProviderService) GetDescription() string { r0 := w.inner.GetDescription() return r0 @@ -923,6 +928,10 @@ type wrappedRegistryAPI struct { inner anysdk.RegistryAPI } +func (w *wrappedRegistryAPI) unwrap() anysdk.RegistryAPI { + return w.inner +} + func (w *wrappedRegistryAPI) ClearProviderCache(p0 string) error { r0 := w.inner.ClearProviderCache(p0) return r0 @@ -2301,3 +2310,166 @@ func (w *wrappedOpenAPIService) GetServers() (openapi3.Servers, bool) { r0, r1 := w.inner.GetServers() return r0, r1 } + +/* +type ResourceRegister interface { + // + // GetServiceDocPath() *ServiceRef + ObtainServiceDocUrl(resourceKey string) string + SetProviderService(ps ProviderService) + SetProvider(p Provider) + GetResources() map[string]Resource + GetResource(string) (Resource, bool) + unwrap() anysdk.ResourceRegister +} +*/ + +type wrappedResourceRegister struct { + inner anysdk.ResourceRegister +} + +func (w *wrappedResourceRegister) ObtainServiceDocUrl(resourceKey string) string { + r0 := w.inner.ObtainServiceDocUrl(resourceKey) + return r0 +} + +func (w *wrappedResourceRegister) SetProviderService(ps ProviderService) { + w.inner.SetProviderService(ps.unwrap()) + return +} + +func (w *wrappedResourceRegister) SetProvider(p Provider) { + w.inner.SetProvider(p.unwrap()) + return +} + +func (w *wrappedResourceRegister) GetResources() map[string]Resource { + r0 := w.inner.GetResources() + return wrapMapString_Resource(r0) +} + +func (w *wrappedResourceRegister) GetResource(resourceKey string) (Resource, bool) { + r0, r1 := w.inner.GetResource(resourceKey) + return &wrappedResource{inner: r0}, r1 +} + +func (w *wrappedResourceRegister) unwrap() anysdk.ResourceRegister { + return w.inner +} + +type wrappedDiscoveryAdapter struct { + inner discovery.IDiscoveryAdapter +} + +func (w *wrappedDiscoveryAdapter) unwrap() discovery.IDiscoveryAdapter { + return w.inner +} + +func (w *wrappedDiscoveryAdapter) GetProvider(providerKey string) (Provider, error) { + r0, r1 := w.inner.GetProvider(providerKey) + return &wrappedProvider{inner: r0}, r1 +} + +func (w *wrappedDiscoveryAdapter) GetResourcesMap(prov Provider, serviceKey string) (map[string]Resource, error) { + r0, r1 := w.inner.GetResourcesMap(prov.unwrap(), serviceKey) + return wrapMapString_Resource(r0), r1 +} + +func (w *wrappedDiscoveryAdapter) GetServiceHandlesMap(prov Provider) (map[string]ProviderService, error) { + r0, r1 := w.inner.GetServiceHandlesMap(prov.unwrap()) + return wrapMapString_ProviderService(r0), r1 +} + +func (w *wrappedDiscoveryAdapter) GetServiceShard(prov Provider, serviceKey string, resourceKey string) (Service, error) { + r0, r1 := w.inner.GetServiceShard(prov.unwrap(), serviceKey, resourceKey) + return &wrappedService{inner: r0}, r1 +} + +func (w *wrappedDiscoveryAdapter) PersistStaticExternalSQLDataSource(prov Provider) error { + r0 := w.inner.PersistStaticExternalSQLDataSource(prov.unwrap()) + return r0 +} + +var ( + _ persistence.PersistenceSystem = &reverseWrappedPersistenceSystem{} +) + +type reverseWrappedPersistenceSystem struct { + inner PersistenceSystem +} + +func (w *reverseWrappedPersistenceSystem) GetSystemName() string { + return w.inner.GetSystemName() +} + +func (w *reverseWrappedPersistenceSystem) HandleExternalTables(providerName string, externalTables map[string]anysdk.SQLExternalTable) error { + internalTables := make(map[string]SQLExternalTable, len(externalTables)) + for k, v := range externalTables { + internalTables[k] = &wrappedSQLExternalTable{inner: v} + } + return w.inner.HandleExternalTables(providerName, internalTables) +} + +func (w *reverseWrappedPersistenceSystem) HandleViewCollection(views []anysdk.View) error { + localViews := make([]View, len(views)) + for i, v := range views { + localViews[i] = &wrappedView{inner: v} + } + return w.inner.HandleViewCollection(localViews) +} + +func (w *reverseWrappedPersistenceSystem) CacheStoreGet(key string) ([]byte, error) { + return w.inner.CacheStoreGet(key) +} + +func (w *reverseWrappedPersistenceSystem) CacheStorePut(key string, value []byte, expiration string, ttl int) error { + return w.inner.CacheStorePut(key, value, expiration, ttl) +} + +type wrappedColumnDescriptor struct { + inner anysdk.ColumnDescriptor +} + +func (w *wrappedColumnDescriptor) unwrap() anysdk.ColumnDescriptor { + return w.inner +} + +func (w *wrappedColumnDescriptor) GetVal() *sqlparser.SQLVal { + return w.inner.GetVal() +} + +func (w *wrappedColumnDescriptor) GetNode() sqlparser.SQLNode { + return w.inner.GetNode() +} + +func (w *wrappedColumnDescriptor) GetDecoratedCol() string { + return w.inner.GetDecoratedCol() +} + +func (w *wrappedColumnDescriptor) GetQualifier() string { + return w.inner.GetQualifier() +} + +func (w *wrappedColumnDescriptor) GetRepresentativeSchema() Schema { + return newWrappedSchemaFromAnySdkSchema(w.inner.GetRepresentativeSchema()) +} + +func (w *wrappedColumnDescriptor) GetSchema() Schema { + return newWrappedSchemaFromAnySdkSchema(w.inner.GetSchema()) +} + +func (w *wrappedColumnDescriptor) GetAlias() string { + return w.inner.GetAlias() +} + +func (w *wrappedColumnDescriptor) GetName() string { + return w.inner.GetName() +} + +func (w *wrappedColumnDescriptor) GetIdentifier() string { + return w.inner.GetIdentifier() +} + +func newColDescriptorFromAnySdkColumnDescriptor(c anysdk.ColumnDescriptor) ColumnDescriptor { + return &wrappedColumnDescriptor{inner: c} +} From cbdd8ffd889f8c89d5ef9b3d221d9e0482839282 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 12:15:44 +1100 Subject: [PATCH 24/64] compile-and-tests-pass --- public/formulation/formulation.go | 22 ++++++++++++++++++++++ public/formulation/interfaces.go | 17 ----------------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 8f8c3fb..7d20128 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -224,3 +224,25 @@ func NewBasicDiscoveryAdapter( ), } } + +type AuthMetadata struct { + Principal string `json:"principal"` + Type string `json:"type"` + Source string `json:"source"` +} + +func (am *AuthMetadata) ToMap() map[string]interface{} { + return map[string]interface{}{ + "principal": am.Principal, + "type": am.Type, + "source": am.Source, + } +} + +func (am *AuthMetadata) GetHeaders() []string { + return []string{ + "principal", + "type", + "source", + } +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 29081c4..036c2d5 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -27,23 +27,6 @@ import ( "github.com/stackql/stackql-provider-registry/signing/Ed25519/app/edcrypto" ) -// NOTE: Addressable is already defined as an interface in wrappers.go. - -// AuthMetadata mirrors methods on *AuthMetadata -type AuthMetadata interface { - GetHeaders() []string - ToMap() map[string]interface{} -} - -// AuthCtx mirrors methods on *AuthCtx -// type AuthCtx interface { -// Clone() *AuthCtx -// GetCredentialsBytes() ([]byte, error) -// GetCredentialsSourceDescriptorString() string -// GetSQLCfg() (SQLBackendCfg, bool) -// HasKey() bool -// } - // RuntimeCtx mirrors methods on RuntimeCtx type RuntimeCtx interface { Copy() RuntimeCtx From c3934e7c635054d816a93ebd59de051d52bc33c3 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 12:22:19 +1100 Subject: [PATCH 25/64] slow --- public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 036c2d5..f93f28b 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -178,6 +178,7 @@ type OperationStore interface { GetProjections() map[string]string GetAddressSpace() (AddressSpace, bool) GetGraphQL() GraphQL + IsAwaitable() bool unwrap() anysdk.OperationStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 790c3ca..d312e32 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -698,6 +698,11 @@ type wrappedOperationStore struct { inner anysdk.OperationStore } +func (w *wrappedOperationStore) IsAwaitable() bool { + r0 := w.inner.IsAwaitable() + return r0 +} + func (w *wrappedOperationStore) GetGraphQL() GraphQL { r0 := w.inner.GetGraphQL() return &wrappedGraphQL{inner: r0} @@ -1237,6 +1242,11 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) IsAwaitable() bool { + r0 := w.inner.IsAwaitable() + return r0 +} + func (w *wrappedStandardOperationStore) GetGraphQL() GraphQL { r0 := w.inner.GetGraphQL() return &wrappedGraphQL{inner: r0} From 124061f1ef4123e199b77fa5821f644383380b73 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 13:15:47 +1100 Subject: [PATCH 26/64] slow --- public/formulation/formulation.go | 4 ++++ public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 7d20128..ea60d86 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -246,3 +246,7 @@ func (am *AuthMetadata) GetHeaders() []string { "source", } } + +func NewMethodAnalyzer() MethodAnalyzer { + return &wrappedMethodAnalyzer{} +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index f93f28b..6e4f911 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -143,6 +143,7 @@ type MethodAnalysisOutput interface { // MethodAnalyzer mirrors methods on MethodAnalyzer type MethodAnalyzer interface { AnalyzeUnaryAction(p0 anysdk.MethodAnalysisInput) (MethodAnalysisOutput, error) + unwrap() anysdk.MethodAnalyzer } // Methods mirrors methods on Methods diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index d312e32..e3c209a 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -671,6 +671,10 @@ type wrappedMethodAnalyzer struct { inner anysdk.MethodAnalyzer } +func (w *wrappedMethodAnalyzer) unwrap() anysdk.MethodAnalyzer { + return w.inner +} + func (w *wrappedMethodAnalyzer) AnalyzeUnaryAction(p0 anysdk.MethodAnalysisInput) (MethodAnalysisOutput, error) { r0, r1 := w.inner.AnalyzeUnaryAction(p0) return &wrappedMethodAnalysisOutput{inner: r0}, r1 From 2822a52661e45605ebf702e7cc39e95d1390b62e Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 13:31:36 +1100 Subject: [PATCH 27/64] slow --- public/formulation/formulation.go | 6 +++++ public/formulation/interfaces.go | 10 ++++++++ public/formulation/wrappers.go | 42 +++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index ea60d86..0a1b11e 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -250,3 +250,9 @@ func (am *AuthMetadata) GetHeaders() []string { func NewMethodAnalyzer() MethodAnalyzer { return &wrappedMethodAnalyzer{} } + +func NewHTTPPreparatorConfig(isFromAnnotation bool) HTTPPreparatorConfig { + return &wrappedHTTPPreparatorConfig{ + inner: anysdk.NewHTTPPreparatorConfig(isFromAnnotation), + } +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 6e4f911..6109898 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -71,6 +71,7 @@ type ExpectedRequest interface { type ExpectedResponse interface { GetObjectKey() string GetTransform() (Transform, bool) + unwrap() anysdk.ExpectedResponse } // GraphQL mirrors methods on GraphQL @@ -180,6 +181,8 @@ type OperationStore interface { GetAddressSpace() (AddressSpace, bool) GetGraphQL() GraphQL IsAwaitable() bool + GetSelectSchemaAndObjectPath() (Schema, string, error) + GetResponse() (ExpectedResponse, bool) unwrap() anysdk.OperationStore } @@ -657,3 +660,10 @@ type IDiscoveryStore interface { PersistServiceShard(Provider, ProviderService, string) (Service, error) unwrap() discovery.IDiscoveryStore } + +type HTTPPreparatorConfig interface { + IsFromAnnotation() bool + unwrap() anysdk.HTTPPreparatorConfig +} + +var AnonymousColumnName = anysdk.AnonymousColumnName diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index e3c209a..fe5068d 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -476,6 +476,10 @@ type wrappedExpectedResponse struct { inner anysdk.ExpectedResponse } +func (w *wrappedExpectedResponse) unwrap() anysdk.ExpectedResponse { + return w.inner +} + func (w *wrappedExpectedResponse) GetObjectKey() string { r0 := w.inner.GetObjectKey() return r0 @@ -702,6 +706,16 @@ type wrappedOperationStore struct { inner anysdk.OperationStore } +func (w *wrappedOperationStore) GetSelectSchemaAndObjectPath() (Schema, string, error) { + r0, r1, r2 := w.inner.GetSelectSchemaAndObjectPath() + return newWrappedSchemaFromAnySdkSchema(r0), r1, r2 +} + +func (w *wrappedOperationStore) GetResponse() (ExpectedResponse, bool) { + r0, r1 := w.inner.GetResponse() + return &wrappedExpectedResponse{inner: r0}, r1 +} + func (w *wrappedOperationStore) IsAwaitable() bool { r0 := w.inner.IsAwaitable() return r0 @@ -1246,6 +1260,21 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +/* +GetSelectSchemaAndObjectPath() (Schema, string, error) + GetResponse() (ExpectedResponse, bool) +*/ + +func (w *wrappedStandardOperationStore) GetSelectSchemaAndObjectPath() (Schema, string, error) { + r0, r1, r2 := w.inner.GetSelectSchemaAndObjectPath() + return newWrappedSchemaFromAnySdkSchema(r0), r1, r2 +} + +func (w *wrappedStandardOperationStore) GetResponse() (ExpectedResponse, bool) { + r0, r1 := w.inner.GetResponse() + return &wrappedExpectedResponse{inner: r0}, r1 +} + func (w *wrappedStandardOperationStore) IsAwaitable() bool { r0 := w.inner.IsAwaitable() return r0 @@ -2487,3 +2516,16 @@ func (w *wrappedColumnDescriptor) GetIdentifier() string { func newColDescriptorFromAnySdkColumnDescriptor(c anysdk.ColumnDescriptor) ColumnDescriptor { return &wrappedColumnDescriptor{inner: c} } + +type wrappedHTTPPreparatorConfig struct { + inner anysdk.HTTPPreparatorConfig +} + +func (w *wrappedHTTPPreparatorConfig) IsFromAnnotation() bool { + r0 := w.inner.IsFromAnnotation() + return r0 +} + +func (w *wrappedHTTPPreparatorConfig) unwrap() anysdk.HTTPPreparatorConfig { + return w.inner +} From a91aa8cc16861089a9523ad455a568f03dc098fa Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 13:43:05 +1100 Subject: [PATCH 28/64] one-more --- public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 6109898..0a78e74 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -183,6 +183,7 @@ type OperationStore interface { IsAwaitable() bool GetSelectSchemaAndObjectPath() (Schema, string, error) GetResponse() (ExpectedResponse, bool) + GetOptionalParameters() map[string]Addressable unwrap() anysdk.OperationStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index fe5068d..e88e4b3 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -706,6 +706,11 @@ type wrappedOperationStore struct { inner anysdk.OperationStore } +func (w *wrappedOperationStore) GetOptionalParameters() map[string]Addressable { + r0 := w.inner.GetOptionalParameters() + return wrapMapString_Addressable(r0) +} + func (w *wrappedOperationStore) GetSelectSchemaAndObjectPath() (Schema, string, error) { r0, r1, r2 := w.inner.GetSelectSchemaAndObjectPath() return newWrappedSchemaFromAnySdkSchema(r0), r1, r2 @@ -1260,10 +1265,10 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } -/* -GetSelectSchemaAndObjectPath() (Schema, string, error) - GetResponse() (ExpectedResponse, bool) -*/ +func (w *wrappedStandardOperationStore) GetOptionalParameters() map[string]Addressable { + r0 := w.inner.GetOptionalParameters() + return wrapMapString_Addressable(r0) +} func (w *wrappedStandardOperationStore) GetSelectSchemaAndObjectPath() (Schema, string, error) { r0, r1, r2 := w.inner.GetSelectSchemaAndObjectPath() From a7316003094fe99d96c8a8035ba9364e78954489 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 13:53:01 +1100 Subject: [PATCH 29/64] one-more --- anysdk/methods.go | 9 +++++++++ public/formulation/interfaces.go | 3 +++ public/formulation/wrappers.go | 13 +++++++++++++ 3 files changed, 25 insertions(+) diff --git a/anysdk/methods.go b/anysdk/methods.go index a10b5b3..c8f217d 100644 --- a/anysdk/methods.go +++ b/anysdk/methods.go @@ -6,6 +6,15 @@ import ( type Methods map[string]standardOpenAPIOperationStore +func (ms Methods) Put(k string, v StandardOperationStore) error { + val, ok := v.(*standardOpenAPIOperationStore) + if ok { + ms[k] = *val + return nil + } + return fmt.Errorf("cannot emplace method of type %T", v) +} + func (ms Methods) FindMethod(key string) (StandardOperationStore, error) { if m, ok := ms[key]; ok { return &m, nil diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 0a78e74..545c076 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -150,6 +150,9 @@ type MethodAnalyzer interface { // Methods mirrors methods on Methods type Methods interface { OrderMethods() ([]StandardOperationStore, error) + List() []StandardOperationStore + Put(k string, v StandardOperationStore) error + unwrap() anysdk.Methods } // OperationInverse mirrors methods on OperationInverse diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index e88e4b3..9fe345b 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -688,11 +688,24 @@ type wrappedMethods struct { inner anysdk.Methods } +func (w *wrappedMethods) unwrap() anysdk.Methods { + return w.inner +} + func (w *wrappedMethods) OrderMethods() ([]StandardOperationStore, error) { r0, r1 := w.inner.OrderMethods() return wrapSlice_StandardOperationStore(r0), r1 } +func (w *wrappedMethods) List() []StandardOperationStore { + r0, _ := w.inner.OrderMethods() + return wrapSlice_StandardOperationStore(r0) +} + +func (w *wrappedMethods) Put(k string, v StandardOperationStore) error { + return w.inner.Put(k, v.unwrapStandardOperationStore()) +} + type wrappedOperationInverse struct { inner anysdk.OperationInverse } From ef5759f8c4ad14289088c6401c72fe76957aa694 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 13:57:00 +1100 Subject: [PATCH 30/64] one-more --- public/formulation/formulation.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 0a1b11e..e26879d 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -256,3 +256,7 @@ func NewHTTPPreparatorConfig(isFromAnnotation bool) HTTPPreparatorConfig { inner: anysdk.NewHTTPPreparatorConfig(isFromAnnotation), } } + +func EmptyMethods() Methods { + return &wrappedMethods{inner: anysdk.Methods{}} +} From aaafe52ac9a5c3a5fa638651a754fa97f2518ba3 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 14:05:02 +1100 Subject: [PATCH 31/64] one-more --- public/formulation/interfaces.go | 20 +++++++++++++++++++- public/formulation/wrappers.go | 10 ++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 545c076..c71d17d 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -147,10 +147,28 @@ type MethodAnalyzer interface { unwrap() anysdk.MethodAnalyzer } +type MethodsKV interface { + GetKey() string + GetValue() StandardOperationStore +} + +type methodsKv struct { + Key string + Value StandardOperationStore +} + +func (kv *methodsKv) GetKey() string { + return kv.Key +} + +func (kv *methodsKv) GetValue() StandardOperationStore { + return kv.Value +} + // Methods mirrors methods on Methods type Methods interface { OrderMethods() ([]StandardOperationStore, error) - List() []StandardOperationStore + List() []MethodsKV Put(k string, v StandardOperationStore) error unwrap() anysdk.Methods } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 9fe345b..64a7067 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -697,9 +697,15 @@ func (w *wrappedMethods) OrderMethods() ([]StandardOperationStore, error) { return wrapSlice_StandardOperationStore(r0), r1 } -func (w *wrappedMethods) List() []StandardOperationStore { +func (w *wrappedMethods) List() []MethodsKV { r0, _ := w.inner.OrderMethods() - return wrapSlice_StandardOperationStore(r0) + result := make([]MethodsKV, len(r0)) + i := 0 + for k, v := range w.inner { + result[i] = &methodsKv{Key: k, Value: &wrappedStandardOperationStore{inner: &v}} + i++ + } + return result } func (w *wrappedMethods) Put(k string, v StandardOperationStore) error { From 36644ceb86403f367b38cd834bd8b8ed21c46a07 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 14:11:50 +1100 Subject: [PATCH 32/64] one-more --- public/formulation/wrappers.go | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 64a7067..ec2fe91 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1280,10 +1280,34 @@ func (w *wrappedService) GetServers() (openapi3.Servers, bool) { return r0, r1 } +var ( + _ ITable = (*wrappedStandardOperationStore)(nil) +) + type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) GetKey(s string) (interface{}, error) { + r0, r1 := w.inner.GetKey(s) + return r0, r1 +} + +func (w *wrappedStandardOperationStore) GetKeyAsSqlVal(p0 string) (sqltypes.Value, error) { + r0, r1 := w.inner.GetKeyAsSqlVal(p0) + return r0, r1 +} + +func (w *wrappedStandardOperationStore) GetName() string { + r0 := w.inner.GetName() + return r0 +} + +func (w *wrappedStandardOperationStore) KeyExists(p0 string) bool { + r0 := w.inner.KeyExists(p0) + return r0 +} + func (w *wrappedStandardOperationStore) GetOptionalParameters() map[string]Addressable { r0 := w.inner.GetOptionalParameters() return wrapMapString_Addressable(r0) @@ -1337,11 +1361,6 @@ func (w *wrappedStandardOperationStore) DeprecatedProcessResponse(response *http return r0, r1 } -func (w *wrappedStandardOperationStore) GetName() string { - r0 := w.inner.GetName() - return r0 -} - func (w *wrappedStandardOperationStore) GetNonBodyParameters() map[string]Addressable { r0 := w.inner.GetNonBodyParameters() return wrapMapString_Addressable(r0) From c2d7378b22ee79bfb2e9168be3db04dca2b25c6f Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 14:18:27 +1100 Subject: [PATCH 33/64] one-more --- public/formulation/interfaces.go | 1 + 1 file changed, 1 insertion(+) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index c71d17d..16651a3 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -367,6 +367,7 @@ type Service interface { // StandardOperationStore mirrors methods on StandardOperationStore type StandardOperationStore interface { OperationStore + ITable GetServers() (openapi3.Servers, bool) unwrapStandardOperationStore() anysdk.StandardOperationStore } From 2d19a5ffd582333bb0d6066e91288f519eda1c46 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 14:28:11 +1100 Subject: [PATCH 34/64] one-more --- public/formulation/formulation.go | 38 +++++++++++++++++++++++++++++++ public/formulation/interfaces.go | 3 +++ public/formulation/wrappers.go | 25 ++++++++++++++++++++ 3 files changed, 66 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index e26879d..dbd2a7e 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -260,3 +260,41 @@ func NewHTTPPreparatorConfig(isFromAnnotation bool) HTTPPreparatorConfig { func EmptyMethods() Methods { return &wrappedMethods{inner: anysdk.Methods{}} } + +func GetServicesHeader(extended bool) []string { + var retVal []string + if extended { + retVal = []string{ + "id", + "name", + "title", + "description", + "version", + "preferred", + } + } else { + retVal = []string{ + "id", + "name", + "title", + } + } + return retVal +} + +func GetDescribeHeader(extended bool) []string { + var retVal []string + if extended { + retVal = []string{ + "name", + "type", + "description", + } + } else { + retVal = []string{ + "name", + "type", + } + } + return retVal +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 16651a3..a9ca5e8 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -258,6 +258,7 @@ type ProviderDescription interface { // ProviderService mirrors methods on ProviderService type ProviderService interface { + ITable GetDescription() string GetID() string GetName() string @@ -369,6 +370,8 @@ type StandardOperationStore interface { OperationStore ITable GetServers() (openapi3.Servers, bool) + ToPresentationMap(extended bool) map[string]interface{} + GetColumnOrder(extended bool) []string unwrapStandardOperationStore() anysdk.StandardOperationStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index ec2fe91..5e10953 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -937,6 +937,21 @@ type wrappedProviderService struct { inner anysdk.ProviderService } +func (w *wrappedProviderService) GetKey(p0 string) (interface{}, error) { + r0, r1 := w.inner.GetKey(p0) + return r0, r1 +} + +func (w *wrappedProviderService) GetKeyAsSqlVal(p0 string) (sqltypes.Value, error) { + r0, r1 := w.inner.GetKeyAsSqlVal(p0) + return r0, r1 +} + +func (w *wrappedProviderService) KeyExists(p0 string) bool { + r0 := w.inner.KeyExists(p0) + return r0 +} + func (w *wrappedProviderService) unwrap() anysdk.ProviderService { return w.inner } @@ -1288,6 +1303,16 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) GetColumnOrder(extended bool) []string { + r0 := w.inner.GetColumnOrder(extended) + return r0 +} + +func (w *wrappedStandardOperationStore) ToPresentationMap(extended bool) map[string]interface{} { + r0 := w.inner.ToPresentationMap(extended) + return r0 +} + func (w *wrappedStandardOperationStore) GetKey(s string) (interface{}, error) { r0, r1 := w.inner.GetKey(s) return r0, r1 From 381de941e8235981c59608df302a42df7fbad48e Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 14:35:00 +1100 Subject: [PATCH 35/64] one-more --- public/formulation/formulation.go | 17 +++++++++++++++++ public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 15 +++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index dbd2a7e..a3f2313 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -298,3 +298,20 @@ func GetDescribeHeader(extended bool) []string { } return retVal } + +func GetResourcesHeader(extended bool) []string { + var retVal []string + if extended { + retVal = []string{ + "name", + "id", + "description", + } + } else { + retVal = []string{ + "name", + "id", + } + } + return retVal +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index a9ca5e8..f27b58f 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -296,6 +296,7 @@ type Relation interface { // Resource mirrors methods on Resource type Resource interface { + ITable FindMethod(key string) (StandardOperationStore, error) GetFirstMethodFromSQLVerb(sqlVerb string) (StandardOperationStore, string, bool) GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb string, parameters map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 5e10953..450a83b 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1056,6 +1056,21 @@ type wrappedResource struct { inner anysdk.Resource } +func (w *wrappedResource) GetKey(p0 string) (interface{}, error) { + r0, r1 := w.inner.GetKey(p0) + return r0, r1 +} + +func (w *wrappedResource) GetKeyAsSqlVal(p0 string) (sqltypes.Value, error) { + r0, r1 := w.inner.GetKeyAsSqlVal(p0) + return r0, r1 +} + +func (w *wrappedResource) KeyExists(p0 string) bool { + r0 := w.inner.KeyExists(p0) + return r0 +} + func (w *wrappedResource) unwrap() anysdk.Resource { return w.inner } From 0d8eb3649e88f5ae5477ea66ef6788307a8c3d0c Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 14:42:12 +1100 Subject: [PATCH 36/64] one-more --- public/formulation/formulation.go | 14 ++++++++++++++ public/formulation/interfaces.go | 8 ++++---- public/formulation/wrappers.go | 24 ++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 4 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index a3f2313..56fdab8 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -315,3 +315,17 @@ func GetResourcesHeader(extended bool) []string { } return retVal } + +func NewTTLDiscoveryStore( + persistenceSystem persistence.PersistenceSystem, + registry anysdk.RegistryAPI, + runtimeCtx dto.RuntimeCtx, +) IDiscoveryStore { + return &wrappedTTLDiscoveryStore{ + inner: discovery.NewTTLDiscoveryStore( + persistenceSystem, + registry, + runtimeCtx, + ), + } +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index f27b58f..e1fbd51 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -680,10 +680,10 @@ type ResourceRegister interface { type IDiscoveryStore interface { ProcessProviderDiscoveryDoc(string, string) (Provider, error) - processResourcesDiscoveryDoc( - Provider, - ProviderService, - string) (ResourceRegister, error) + // processResourcesDiscoveryDoc( + // Provider, + // ProviderService, + // string) (ResourceRegister, error) PersistServiceShard(Provider, ProviderService, string) (Service, error) unwrap() discovery.IDiscoveryStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 450a83b..0d8c4af 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -2612,3 +2612,27 @@ func (w *wrappedHTTPPreparatorConfig) IsFromAnnotation() bool { func (w *wrappedHTTPPreparatorConfig) unwrap() anysdk.HTTPPreparatorConfig { return w.inner } + +type wrappedTTLDiscoveryStore struct { + inner discovery.IDiscoveryStore +} + +func (w *wrappedTTLDiscoveryStore) ProcessProviderDiscoveryDoc(apiDiscoveryDocURL string, alias string) (Provider, error) { + prov, err := w.inner.ProcessProviderDiscoveryDoc(apiDiscoveryDocURL, alias) + if err != nil { + return nil, err + } + return &wrappedProvider{inner: prov}, nil +} + +func (w *wrappedTTLDiscoveryStore) PersistServiceShard(prov Provider, sh ProviderService, resourceKey string) (Service, error) { + service, err := w.inner.PersistServiceShard(prov.unwrap(), sh.unwrap(), resourceKey) + if err != nil { + return nil, err + } + return &wrappedService{inner: service}, nil +} + +func (w *wrappedTTLDiscoveryStore) unwrap() discovery.IDiscoveryStore { + return w.inner +} From 82b379cca71aa5f1ce790259d927290cb4f0882c Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 14:46:37 +1100 Subject: [PATCH 37/64] one-more --- public/formulation/formulation.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 56fdab8..13e233e 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -317,14 +317,14 @@ func GetResourcesHeader(extended bool) []string { } func NewTTLDiscoveryStore( - persistenceSystem persistence.PersistenceSystem, - registry anysdk.RegistryAPI, + persistenceSystem PersistenceSystem, + registry RegistryAPI, runtimeCtx dto.RuntimeCtx, ) IDiscoveryStore { return &wrappedTTLDiscoveryStore{ inner: discovery.NewTTLDiscoveryStore( - persistenceSystem, - registry, + persistenceSystem.unwrap(), + registry.unwrap(), runtimeCtx, ), } From f1fa43f90b91a19302712b95fb48ddb34ba979fd Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 14:48:14 +1100 Subject: [PATCH 38/64] one-more --- public/formulation/formulation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 13e233e..59587fd 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -321,9 +321,10 @@ func NewTTLDiscoveryStore( registry RegistryAPI, runtimeCtx dto.RuntimeCtx, ) IDiscoveryStore { + reverseWrappedSystem := &reverseWrappedPersistenceSystem{inner: persistenceSystem} return &wrappedTTLDiscoveryStore{ inner: discovery.NewTTLDiscoveryStore( - persistenceSystem.unwrap(), + reverseWrappedSystem, registry.unwrap(), runtimeCtx, ), From 817a78d77439d095acb84dcfeea603c30cfe5407 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 15:01:24 +1100 Subject: [PATCH 39/64] one-more --- public/formulation/formulation.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 59587fd..229537d 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -330,3 +330,7 @@ func NewTTLDiscoveryStore( ), } } + +func NewAddressSpaceGrammar() AddressSpaceGrammar { + return radix_tree_address_space.NewAddressSpaceGrammar() +} From d3e8f60e767b820accb780cb91976f789bfc8293 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 15:08:56 +1100 Subject: [PATCH 40/64] one-more --- public/formulation/formulation.go | 19 +++++++++++++++++++ public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 229537d..afe17b2 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -8,6 +8,7 @@ import ( "github.com/stackql/any-sdk/anysdk" "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/dto" + "github.com/stackql/any-sdk/pkg/internaldto" "github.com/stackql/any-sdk/pkg/streaming" "github.com/stackql/any-sdk/public/discovery" "github.com/stackql/any-sdk/public/persistence" @@ -334,3 +335,21 @@ func NewTTLDiscoveryStore( func NewAddressSpaceGrammar() AddressSpaceGrammar { return radix_tree_address_space.NewAddressSpaceGrammar() } + +func ResourceKeyExists(key string) bool { + return anysdk.ResourceKeyExists(key) +} + +func NewEmptyResource() Resource { + return &wrappedResource{inner: anysdk.NewEmptyResource()} +} + +func NewEmptyOperationStore() StandardOperationStore { + return &wrappedStandardOperationStore{inner: anysdk.NewEmptyOperationStore()} +} + +func NewExecContext(payload internaldto.ExecPayload, rsc Resource) ExecContext { + return &wrappedExecContext{ + inner: anysdk.NewExecContext(payload, rsc.unwrap()), + } +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index e1fbd51..c4bb4e1 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -205,6 +205,7 @@ type OperationStore interface { GetSelectSchemaAndObjectPath() (Schema, string, error) GetResponse() (ExpectedResponse, bool) GetOptionalParameters() map[string]Addressable + IsNullary() bool unwrap() anysdk.OperationStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 0d8c4af..1ccc112 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -725,6 +725,11 @@ type wrappedOperationStore struct { inner anysdk.OperationStore } +func (w *wrappedOperationStore) IsNullary() bool { + r0 := w.inner.IsNullary() + return r0 +} + func (w *wrappedOperationStore) GetOptionalParameters() map[string]Addressable { r0 := w.inner.GetOptionalParameters() return wrapMapString_Addressable(r0) @@ -1318,6 +1323,11 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) IsNullary() bool { + r0 := w.inner.IsNullary() + return r0 +} + func (w *wrappedStandardOperationStore) GetColumnOrder(extended bool) []string { r0 := w.inner.GetColumnOrder(extended) return r0 From f74e6153b68bf082cec8f17992f05e1774200ff4 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 15:21:28 +1100 Subject: [PATCH 41/64] one-more --- public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index c4bb4e1..140a6f9 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -374,6 +374,7 @@ type StandardOperationStore interface { GetServers() (openapi3.Servers, bool) ToPresentationMap(extended bool) map[string]interface{} GetColumnOrder(extended bool) []string + GetRequest() (ExpectedRequest, bool) unwrapStandardOperationStore() anysdk.StandardOperationStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 1ccc112..b139c38 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1323,6 +1323,11 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) GetRequest() (ExpectedRequest, bool) { + r0, r1 := w.inner.GetRequest() + return &wrappedExpectedRequest{inner: r0}, r1 +} + func (w *wrappedStandardOperationStore) IsNullary() bool { r0 := w.inner.IsNullary() return r0 From 0913c4d06da1fb2f11914c328a9cbde5177f5acc Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 15:30:58 +1100 Subject: [PATCH 42/64] one-more --- public/formulation/formulation.go | 22 ++++++++++++++++++++++ public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 8 ++++++-- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index afe17b2..7432f8b 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -353,3 +353,25 @@ func NewExecContext(payload internaldto.ExecPayload, rsc Resource) ExecContext { inner: anysdk.NewExecContext(payload, rsc.unwrap()), } } + +func NewEmptyProviderService() ProviderService { + return &wrappedProviderService{inner: anysdk.NewEmptyProviderService()} +} + +func ServiceKeyExists(key string) bool { + return anysdk.ServiceKeyExists(key) +} + +func NewwHTTPAnySdkArgList(req *http.Request) client.AnySdkArgList { + return anysdk.NewwHTTPAnySdkArgList(req) +} + +func NewHttpPreparatorStream() HttpPreparatorStream { + return &wrappedHttpPreparatorStream{ + inner: anysdk.NewHttpPreparatorStream(), + } +} + +func GetMonitorRequest(urlStr string) (client.AnySdkArgList, error) { + return anysdk.GetMonitorRequest(urlStr) +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 140a6f9..26dad58 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -103,6 +103,7 @@ type HTTPArmouryParameters interface { // HTTPPreparator mirrors methods on HTTPPreparator type HTTPPreparator interface { BuildHTTPRequestCtx(p0 anysdk.HTTPPreparatorConfig) (HTTPArmoury, error) + unwrap() anysdk.HTTPPreparator } func newHTTPPreparatorFromAnySdkHTTPPreparator(inner anysdk.HTTPPreparator) HTTPPreparator { diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index b139c38..5ffd3b5 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -576,6 +576,10 @@ type wrappedHTTPPreparator struct { inner anysdk.HTTPPreparator } +func (w *wrappedHTTPPreparator) unwrap() anysdk.HTTPPreparator { + return w.inner +} + func (w *wrappedHTTPPreparator) BuildHTTPRequestCtx(p0 anysdk.HTTPPreparatorConfig) (HTTPArmoury, error) { r0, r1 := w.inner.BuildHTTPRequestCtx(p0) return &wrappedHTTPArmoury{inner: r0}, r1 @@ -604,8 +608,8 @@ func (w *wrappedHttpPreparatorStream) Next() (HTTPPreparator, bool) { return &wrappedHTTPPreparator{inner: r0}, r1 } -func (w *wrappedHttpPreparatorStream) Write(p0 *wrappedHTTPPreparator) error { - r0 := w.inner.Write(p0.inner) +func (w *wrappedHttpPreparatorStream) Write(p0 HTTPPreparator) error { + r0 := w.inner.Write(p0.unwrap()) return r0 } From c80916c0f9d1ff6536d79a19f873085a1f70f92d Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 15:49:23 +1100 Subject: [PATCH 43/64] one-more --- public/formulation/formulation.go | 60 +++++++++++++++++-- public/formulation/interfaces.go | 2 + public/formulation/wrappers.go | 4 ++ public/providerinvokers/anysdkhttp/invoker.go | 13 ++-- 4 files changed, 70 insertions(+), 9 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 7432f8b..33fa5b6 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -9,9 +9,11 @@ import ( "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/internaldto" + "github.com/stackql/any-sdk/pkg/providerinvoker" "github.com/stackql/any-sdk/pkg/streaming" "github.com/stackql/any-sdk/public/discovery" "github.com/stackql/any-sdk/public/persistence" + "github.com/stackql/any-sdk/public/providerinvokers/anysdkhttp" "github.com/stackql/any-sdk/public/radix_tree_address_space" "github.com/stackql/any-sdk/public/sqlengine" "github.com/stackql/stackql-parser/go/vt/sqlparser" @@ -25,10 +27,6 @@ func NewSQLPersistenceSystem(systemType string, sqlEngine sqlengine.SQLEngine) ( return &wrappedPersistenceSystem{inner: anySdkPersistenceSystem}, nil } -type ArmouryGenerator interface { - GetHTTPArmoury() (anysdk.HTTPArmoury, error) -} - // type Addressable interface { // ConditionIsValid(lhs string, rhs interface{}) bool // GetLocation() string @@ -375,3 +373,57 @@ func NewHttpPreparatorStream() HttpPreparatorStream { func GetMonitorRequest(urlStr string) (client.AnySdkArgList, error) { return anysdk.GetMonitorRequest(urlStr) } + +type methodElider interface { + IsElide(string, ...any) bool +} + +type PolyHandler interface { + LogHTTPResponseMap(target interface{}) + MessageHandler([]string) + GetMessages() []string +} + +type ArmouryGenerator anysdkhttp.ArmouryGenerator + +func NewPayload( + armouryGenerator ArmouryGenerator, + provider Provider, + method OperationStore, + tableName string, + authCtx *dto.AuthCtx, + runtimeCtx dto.RuntimeCtx, + outErrFile io.Writer, + maxResultsElement internaldto.HTTPElement, + elider methodElider, + nilOK bool, + polyHandler PolyHandler, + selectItemsKey string, + insertPreparator InsertPreparator, + skipResponse bool, + isMutation bool, + isAwait bool, + defaultHTTPClient *http.Client, + messageHandler providerinvoker.MessageHandler, +) any { + return anysdkhttp.NewPayload( + armouryGenerator, + provider.unwrap(), + method.unwrap(), + tableName, + authCtx, + runtimeCtx, + outErrFile, + maxResultsElement, + elider, + nilOK, + polyHandler, + selectItemsKey, + insertPreparator.unwrap(), + skipResponse, + isMutation, + isAwait, + defaultHTTPClient, + messageHandler, + ) +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 26dad58..758e9b7 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -551,6 +551,7 @@ type ActionInsertResult interface { // InsertPreparator mirrors methods on InsertPreparator type InsertPreparator interface { ActionInsertPreparation(payload ActionInsertPayload) ActionInsertResult + unwrap() providerinvoker.InsertPreparator } // Invoker mirrors methods on Invoker @@ -576,6 +577,7 @@ type Response interface { type HTTPHTTPElement interface { GetName() string GetLocation() httpelement.HTTPElementLocation + // unwrap() anysdk.HTTPHTTPElement } // StreamTransformer mirrors methods on StreamTransformer diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 5ffd3b5..389e474 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -2010,6 +2010,10 @@ type wrappedInsertPreparator struct { inner providerinvoker.InsertPreparator } +func (w *wrappedInsertPreparator) unwrap() providerinvoker.InsertPreparator { + return w.inner +} + func (w *wrappedInsertPreparator) ActionInsertPreparation(payload *wrappedActionInsertPayload) ActionInsertResult { r0 := w.inner.ActionInsertPreparation(payload.inner) return &wrappedActionInsertResult{inner: r0} diff --git a/public/providerinvokers/anysdkhttp/invoker.go b/public/providerinvokers/anysdkhttp/invoker.go index 393ddbf..f0d215a 100644 --- a/public/providerinvokers/anysdkhttp/invoker.go +++ b/public/providerinvokers/anysdkhttp/invoker.go @@ -16,7 +16,6 @@ import ( sdk_internal_dto "github.com/stackql/any-sdk/pkg/internaldto" "github.com/stackql/any-sdk/pkg/providerinvoker" - "github.com/stackql/any-sdk/public/formulation" ) type itemsDTO struct { @@ -68,8 +67,12 @@ type actionInsertResult struct { isHousekeepingDone bool } +type ArmouryGenerator interface { + GetHTTPArmoury() (anysdk.HTTPArmoury, error) +} + func NewPayload( - armouryGenerator formulation.ArmouryGenerator, + armouryGenerator ArmouryGenerator, provider anysdk.Provider, method anysdk.OperationStore, tableName string, @@ -113,7 +116,7 @@ func NewPayload( // standardPayload is the (still-internal) call-shape for the any-sdk HTTP invoker. // It mirrors the data StackQL currently passes to newHTTPAgnosticatePayload()/agnosticate(). type standardPayload struct { - ArmouryGenerator formulation.ArmouryGenerator + ArmouryGenerator ArmouryGenerator Provider anysdk.Provider Method anysdk.OperationStore TableName string @@ -210,7 +213,7 @@ type AgnosticatePayload interface { } type httpAgnosticatePayload struct { - armouryGenerator formulation.ArmouryGenerator + armouryGenerator ArmouryGenerator provider anysdk.Provider method anysdk.OperationStore tableName string @@ -230,7 +233,7 @@ type httpAgnosticatePayload struct { } func newHTTPAgnosticatePayload( - armouryGenerator formulation.ArmouryGenerator, + armouryGenerator ArmouryGenerator, provider anysdk.Provider, method anysdk.OperationStore, tableName string, From 16c4e8f5af40992483d67eade891cae66dad70ae Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 15:58:33 +1100 Subject: [PATCH 44/64] one-more --- public/formulation/formulation.go | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 33fa5b6..544c7d5 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -384,7 +384,28 @@ type PolyHandler interface { GetMessages() []string } -type ArmouryGenerator anysdkhttp.ArmouryGenerator +type ArmouryGenerator interface { + GetHTTPArmoury() (HTTPArmoury, error) + unwrap() anysdkhttp.ArmouryGenerator +} + +type wrappedArmouryGenerator struct { + inner anysdkhttp.ArmouryGenerator +} + +func (wag *wrappedArmouryGenerator) GetHTTPArmoury() (HTTPArmoury, error) { + inner, err := wag.inner.GetHTTPArmoury() + if err != nil { + return nil, err + } + return &wrappedHTTPArmoury{inner: inner}, nil +} + +func (wag *wrappedArmouryGenerator) unwrap() anysdkhttp.ArmouryGenerator { + return wag.inner +} + +// anysdkhttp.ArmouryGenerator func NewPayload( armouryGenerator ArmouryGenerator, @@ -407,7 +428,7 @@ func NewPayload( messageHandler providerinvoker.MessageHandler, ) any { return anysdkhttp.NewPayload( - armouryGenerator, + armouryGenerator.unwrap(), provider.unwrap(), method.unwrap(), tableName, From fb0ff382163843701d5cbc8439d9928b378b9886 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 16:20:25 +1100 Subject: [PATCH 45/64] one-more --- public/formulation/formulation.go | 18 ++++++++++++ public/formulation/interfaces.go | 3 ++ public/formulation/wrappers.go | 49 +++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 544c7d5..03f7f9e 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -448,3 +448,21 @@ func NewPayload( messageHandler, ) } + +func NewActionInsertPayload( + itemisationResult ItemisationResult, + housekeepingDone bool, + tableName string, + paramsUsed map[string]interface{}, + reqEncoding string, +) ActionInsertPayload { + return &wrappedActionInsertPayload{ + inner: &httpActionInsertPayload{ + itemisationResult: itemisationResult, + housekeepingDone: housekeepingDone, + tableName: tableName, + paramsUsed: paramsUsed, + reqEncoding: reqEncoding, + }, + } +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 758e9b7..f69f014 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -562,6 +562,9 @@ type Invoker interface { // ItemisationResult mirrors methods on ItemisationResult type ItemisationResult interface { GetItems() (interface{}, bool) + GetSingltetonResponse() (map[string]interface{}, bool) + IsOk() bool + IsNilPayload() bool } // Response mirrors methods on Response diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 389e474..fe946a9 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1963,6 +1963,34 @@ func (w *wrappedNameMangler) MangleName(p0 string, p1 ...any) string { return r0 } +type httpActionInsertPayload struct { + itemisationResult providerinvoker.ItemisationResult + housekeepingDone bool + tableName string + paramsUsed map[string]interface{} + reqEncoding string +} + +func (ap *httpActionInsertPayload) GetItemisationResult() providerinvoker.ItemisationResult { + return ap.itemisationResult +} + +func (ap *httpActionInsertPayload) IsHousekeepingDone() bool { + return ap.housekeepingDone +} + +func (ap *httpActionInsertPayload) GetTableName() string { + return ap.tableName +} + +func (ap *httpActionInsertPayload) GetParamsUsed() map[string]interface{} { + return ap.paramsUsed +} + +func (ap *httpActionInsertPayload) GetReqEncoding() string { + return ap.reqEncoding +} + type wrappedActionInsertPayload struct { inner providerinvoker.ActionInsertPayload } @@ -2037,6 +2065,27 @@ func (w *wrappedItemisationResult) GetItems() (interface{}, bool) { return r0, r1 } +/* +GetSingltetonResponse() (map[string]interface{}, bool) + IsOk() bool + IsNilPayload() bool +*/ + +func (w *wrappedItemisationResult) GetSingltetonResponse() (map[string]interface{}, bool) { + r0, r1 := w.inner.GetSingltetonResponse() + return r0, r1 +} + +func (w *wrappedItemisationResult) IsOk() bool { + r0 := w.inner.IsOk() + return r0 +} + +func (w *wrappedItemisationResult) IsNilPayload() bool { + r0 := w.inner.IsNilPayload() + return r0 +} + type wrappedResponse struct { inner response.Response } From e988a590c829fe587f19949b6e290cd7b898ae8e Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 16:48:41 +1100 Subject: [PATCH 46/64] one-more --- public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 41 ++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index f69f014..6bd75ef 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -376,6 +376,7 @@ type StandardOperationStore interface { ToPresentationMap(extended bool) map[string]interface{} GetColumnOrder(extended bool) []string GetRequest() (ExpectedRequest, bool) + GetInline() []string unwrapStandardOperationStore() anysdk.StandardOperationStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index fe946a9..ca3f205 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1327,6 +1327,11 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) GetInline() []string { + r0 := w.inner.GetInline() + return r0 +} + func (w *wrappedStandardOperationStore) GetRequest() (ExpectedRequest, bool) { r0, r1 := w.inner.GetRequest() return &wrappedExpectedRequest{inner: r0}, r1 @@ -2588,6 +2593,42 @@ func (w *wrappedDiscoveryAdapter) PersistStaticExternalSQLDataSource(prov Provid return r0 } +var ( + _ anysdk.HTTPArmoury = &reverseWrappedHTTPArmoury{} +) + +/* + +type HTTPArmoury interface { + AddRequestParams(HTTPArmouryParameters) + GetRequestParams() []HTTPArmouryParameters + GetRequestSchema() Schema + GetResponseSchema() Schema + SetRequestParams([]HTTPArmouryParameters) + SetRequestSchema(Schema) + SetResponseSchema(Schema) +} + +*/ + +type reverseWrappedHTTPArmoury struct { + inner HTTPArmoury +} + +func (w *reverseWrappedHTTPArmoury) AddRequestParams(params anysdk.HTTPArmouryParameters) { + w.inner.AddRequestParams(params) + return +} + +func (w *reverseWrappedHTTPArmoury) GetRequestParams() []anysdk.HTTPArmouryParameters { + r0 := w.inner.GetRequestParams() + rv := make([]anysdk.HTTPArmouryParameters, len(r0)) + for i, p := range r0 { + rv[i] = &wrappedHTTPArmouryParameters{inner: p} + } + return rv +} + var ( _ persistence.PersistenceSystem = &reverseWrappedPersistenceSystem{} ) From 1e5bcf0f6756197902b1e7365eadee752f6ab09e Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 16:52:50 +1100 Subject: [PATCH 47/64] one-more --- public/formulation/formulation.go | 8 ++++++ public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 48 +++++++++++++++++++------------ 3 files changed, 38 insertions(+), 19 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 03f7f9e..e7d07d3 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -466,3 +466,11 @@ func NewActionInsertPayload( }, } } + +func LoadProviderDocFromBytes(bytes []byte) (Provider, error) { + prov, err := anysdk.LoadProviderDocFromBytes(bytes) + if err != nil { + return nil, err + } + return &wrappedProvider{inner: prov}, nil +} diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 6bd75ef..1da005e 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -365,6 +365,7 @@ type Service interface { GetResource(resourceName string) (Resource, error) GetSchema(key string) (Schema, error) GetServers() (openapi3.Servers, bool) + GetName() string unwrap() anysdk.Service } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index ca3f205..84f4b34 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1300,6 +1300,11 @@ type wrappedService struct { inner anysdk.Service } +func (w *wrappedService) GetName() string { + r0 := w.inner.GetName() + return r0 +} + func (w *wrappedService) unwrap() anysdk.Service { return w.inner } @@ -2491,6 +2496,11 @@ type wrappedOpenAPIService struct { inner anysdk.OpenAPIService } +func (w *wrappedOpenAPIService) GetName() string { + r0 := w.inner.GetName() + return r0 +} + func (w *wrappedOpenAPIService) unwrapOpenapi3Service() anysdk.OpenAPIService { return w.inner } @@ -2593,10 +2603,6 @@ func (w *wrappedDiscoveryAdapter) PersistStaticExternalSQLDataSource(prov Provid return r0 } -var ( - _ anysdk.HTTPArmoury = &reverseWrappedHTTPArmoury{} -) - /* type HTTPArmoury interface { @@ -2611,23 +2617,27 @@ type HTTPArmoury interface { */ -type reverseWrappedHTTPArmoury struct { - inner HTTPArmoury -} +// var ( +// _ anysdk.HTTPArmoury = &reverseWrappedHTTPArmoury{} +// ) -func (w *reverseWrappedHTTPArmoury) AddRequestParams(params anysdk.HTTPArmouryParameters) { - w.inner.AddRequestParams(params) - return -} +// type reverseWrappedHTTPArmoury struct { +// inner HTTPArmoury +// } -func (w *reverseWrappedHTTPArmoury) GetRequestParams() []anysdk.HTTPArmouryParameters { - r0 := w.inner.GetRequestParams() - rv := make([]anysdk.HTTPArmouryParameters, len(r0)) - for i, p := range r0 { - rv[i] = &wrappedHTTPArmouryParameters{inner: p} - } - return rv -} +// func (w *reverseWrappedHTTPArmoury) AddRequestParams(params anysdk.HTTPArmouryParameters) { +// w.inner.AddRequestParams(params) +// return +// } + +// func (w *reverseWrappedHTTPArmoury) GetRequestParams() []anysdk.HTTPArmouryParameters { +// r0 := w.inner.GetRequestParams() +// rv := make([]anysdk.HTTPArmouryParameters, len(r0)) +// for i, p := range r0 { +// rv[i] = &wrappedHTTPArmouryParameters{inner: p} +// } +// return rv +// } var ( _ persistence.PersistenceSystem = &reverseWrappedPersistenceSystem{} From b982df067b4ef426a03a89867d6d72f8f7d63c38 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 17:01:12 +1100 Subject: [PATCH 48/64] one-more --- public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 1da005e..51e2081 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -378,6 +378,7 @@ type StandardOperationStore interface { GetColumnOrder(extended bool) []string GetRequest() (ExpectedRequest, bool) GetInline() []string + GetInverse() (OperationInverse, bool) unwrapStandardOperationStore() anysdk.StandardOperationStore } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 84f4b34..980844f 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1332,6 +1332,11 @@ type wrappedStandardOperationStore struct { inner anysdk.StandardOperationStore } +func (w *wrappedStandardOperationStore) GetInverse() (OperationInverse, bool) { + r0, r1 := w.inner.GetInverse() + return &wrappedOperationInverse{inner: r0}, r1 +} + func (w *wrappedStandardOperationStore) GetInline() []string { r0 := w.inner.GetInline() return r0 From cef53acbbab44f7b8182022cc6ab6c7b7ae0fc1d Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 17:25:30 +1100 Subject: [PATCH 49/64] one-more --- public/formulation/formulation.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index e7d07d3..d663839 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -384,8 +384,12 @@ type PolyHandler interface { GetMessages() []string } -type ArmouryGenerator interface { +type BaseArmouryGenerator interface { GetHTTPArmoury() (HTTPArmoury, error) +} + +type ArmouryGenerator interface { + BaseArmouryGenerator unwrap() anysdkhttp.ArmouryGenerator } @@ -408,7 +412,7 @@ func (wag *wrappedArmouryGenerator) unwrap() anysdkhttp.ArmouryGenerator { // anysdkhttp.ArmouryGenerator func NewPayload( - armouryGenerator ArmouryGenerator, + armouryGenerator BaseArmouryGenerator, provider Provider, method OperationStore, tableName string, @@ -428,7 +432,7 @@ func NewPayload( messageHandler providerinvoker.MessageHandler, ) any { return anysdkhttp.NewPayload( - armouryGenerator.unwrap(), + nil, // placeholder for armoury generator, as the public formulation layer should not be aware of anysdkhttp provider.unwrap(), method.unwrap(), tableName, From db3b74d166b156d177871d9f2f3d6cd4ac7ff4fb Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 17:32:48 +1100 Subject: [PATCH 50/64] one-more --- public/formulation/formulation.go | 4 ++-- public/formulation/interfaces.go | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index d663839..1942d12 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -424,7 +424,7 @@ func NewPayload( nilOK bool, polyHandler PolyHandler, selectItemsKey string, - insertPreparator InsertPreparator, + insertPreparator BaseInsertPreparator, skipResponse bool, isMutation bool, isAwait bool, @@ -444,7 +444,7 @@ func NewPayload( nilOK, polyHandler, selectItemsKey, - insertPreparator.unwrap(), + nil, // placeholder for insert preparator, as the public formulation layer should not be aware of providerinvoker skipResponse, isMutation, isAwait, diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 51e2081..5c7bdc1 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -551,9 +551,13 @@ type ActionInsertResult interface { IsHousekeepingDone() bool } +type BaseInsertPreparator interface { + ActionInsertPreparation(payload ActionInsertPayload) ActionInsertResult +} + // InsertPreparator mirrors methods on InsertPreparator type InsertPreparator interface { - ActionInsertPreparation(payload ActionInsertPayload) ActionInsertResult + BaseInsertPreparator unwrap() providerinvoker.InsertPreparator } From 4bbcaad91c40db55f1cb17741582463daf1b33fe Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 17:37:44 +1100 Subject: [PATCH 51/64] one-more --- public/formulation/formulation.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 1942d12..3d8a67e 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -478,3 +478,11 @@ func LoadProviderDocFromBytes(bytes []byte) (Provider, error) { } return &wrappedProvider{inner: prov}, nil } + +func ServiceConditionIsValid(lhs string, rhs interface{}) bool { + return anysdk.ServiceConditionIsValid(lhs, rhs) +} + +func ResourceConditionIsValid(lhs string, rhs interface{}) bool { + return anysdk.ResourceConditionIsValid(lhs, rhs) +} From e6a4bd337bea3de1b594f09fdb2b636d52178900 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 18:03:02 +1100 Subject: [PATCH 52/64] one-more --- public/formulation/formulation.go | 2 +- public/formulation/wrappers.go | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 3d8a67e..71e2230 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -444,7 +444,7 @@ func NewPayload( nilOK, polyHandler, selectItemsKey, - nil, // placeholder for insert preparator, as the public formulation layer should not be aware of providerinvoker + &reverseWrappedInsertPreparator{inner: insertPreparator}, skipResponse, isMutation, isAwait, diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 980844f..127a8c7 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -34,6 +34,7 @@ import ( "github.com/stackql/any-sdk/pkg/surface" "github.com/stackql/any-sdk/public/discovery" "github.com/stackql/any-sdk/public/persistence" + "github.com/stackql/any-sdk/public/providerinvokers/anysdkhttp" "github.com/stackql/any-sdk/public/radix_tree_address_space" "github.com/stackql/any-sdk/public/sqlengine" "github.com/stackql/stackql-parser/go/sqltypes" @@ -2644,6 +2645,23 @@ type HTTPArmoury interface { // return rv // } +var ( + _ anysdkhttp.InsertPreparator = &reverseWrappedInsertPreparator{} +) + +type reverseWrappedInsertPreparator struct { + inner BaseInsertPreparator +} + +func (w *reverseWrappedInsertPreparator) ActionInsertPreparation(payload providerinvoker.ActionInsertPayload) providerinvoker.ActionInsertResult { + var inner_payload *wrappedActionInsertPayload + if payload != nil { + inner_payload = &wrappedActionInsertPayload{inner: payload} + } + r0 := w.inner.ActionInsertPreparation(inner_payload) + return r0 +} + var ( _ persistence.PersistenceSystem = &reverseWrappedPersistenceSystem{} ) From 8f7b2d1d557f1e37ea9f26babb28957a186833df Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 18:20:46 +1100 Subject: [PATCH 53/64] one-more --- public/formulation/interfaces.go | 10 ++++++- public/formulation/wrappers.go | 51 ++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 5c7bdc1..95a7db1 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -84,8 +84,14 @@ type GraphQL interface { // HTTPArmoury mirrors methods on HTTPArmoury type HTTPArmoury interface { + AddRequestParams(HTTPArmouryParameters) GetRequestParams() []HTTPArmouryParameters - SetRequestParams(p0 []HTTPArmouryParameters) + GetRequestSchema() Schema + GetResponseSchema() Schema + SetRequestParams([]HTTPArmouryParameters) + SetRequestSchema(Schema) + SetResponseSchema(Schema) + unwrap() anysdk.HTTPArmoury } // HTTPArmouryParameters mirrors methods on HTTPArmouryParameters @@ -98,6 +104,7 @@ type HTTPArmouryParameters interface { SetNextPage(ops OperationStore, token string, tokenKey HTTPElement) (*http.Request, error) SetRawQuery(p0 string) ToFlatMap() (map[string]interface{}, error) + unwrap() anysdk.HTTPArmouryParameters } // HTTPPreparator mirrors methods on HTTPPreparator @@ -116,6 +123,7 @@ func newHTTPPreparatorFromAnySdkHTTPPreparator(inner anysdk.HTTPPreparator) HTTP type HttpParameters interface { GetInlineParameterFlatMap() (map[string]interface{}, error) ToFlatMap() (map[string]interface{}, error) + unwrap() anysdk.HttpParameters } // HttpPreparatorStream mirrors methods on HttpPreparatorStream diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 127a8c7..5b0f806 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -514,25 +514,72 @@ func (w *wrappedGraphQL) unwrap() anysdk.GraphQL { return w.inner } +/* + +type HTTPArmoury interface { + AddRequestParams(HTTPArmouryParameters) + GetRequestParams() []HTTPArmouryParameters + GetRequestSchema() Schema + GetResponseSchema() Schema + SetRequestParams([]HTTPArmouryParameters) + SetRequestSchema(Schema) + SetResponseSchema(Schema) + unwrap() anysdk.HTTPArmoury +} + +*/ + type wrappedHTTPArmoury struct { inner anysdk.HTTPArmoury } +func (w *wrappedHTTPArmoury) AddRequestParams(p HTTPArmouryParameters) { + w.inner.AddRequestParams(p.unwrap()) +} + func (w *wrappedHTTPArmoury) GetRequestParams() []HTTPArmouryParameters { r0 := w.inner.GetRequestParams() return wrapSlice_HTTPArmouryParameters(r0) } +func (w *wrappedHTTPArmoury) GetRequestSchema() Schema { + r0 := w.inner.GetRequestSchema() + return newWrappedSchemaFromAnySdkSchema(r0) +} + +func (w *wrappedHTTPArmoury) GetResponseSchema() Schema { + r0 := w.inner.GetResponseSchema() + return newWrappedSchemaFromAnySdkSchema(r0) +} + func (w *wrappedHTTPArmoury) SetRequestParams(p0 []HTTPArmouryParameters) { inner_p0 := unwrapSlice_HTTPArmouryParameters(p0) w.inner.SetRequestParams(inner_p0) return } +func (w *wrappedHTTPArmoury) SetRequestSchema(p0 Schema) { + w.inner.SetRequestSchema(p0.unwrap()) + return +} + +func (w *wrappedHTTPArmoury) SetResponseSchema(p0 Schema) { + w.inner.SetResponseSchema(p0.unwrap()) + return +} + +func (w *wrappedHTTPArmoury) unwrap() anysdk.HTTPArmoury { + return w.inner +} + type wrappedHTTPArmouryParameters struct { inner anysdk.HTTPArmouryParameters } +func (w *wrappedHTTPArmouryParameters) unwrap() anysdk.HTTPArmouryParameters { + return w.inner +} + func (w *wrappedHTTPArmouryParameters) Encode() string { r0 := w.inner.Encode() return r0 @@ -590,6 +637,10 @@ type wrappedHttpParameters struct { inner anysdk.HttpParameters } +func (w *wrappedHttpParameters) unwrap() anysdk.HttpParameters { + return w.inner +} + func (w *wrappedHttpParameters) GetInlineParameterFlatMap() (map[string]interface{}, error) { r0, r1 := w.inner.GetInlineParameterFlatMap() return r0, r1 From 5967b36f7e340a0a63d0572ec3b8ac0397e9ed65 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 18:28:53 +1100 Subject: [PATCH 54/64] one-more --- public/formulation/formulation.go | 2 +- public/formulation/wrappers.go | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 71e2230..86cb088 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -432,7 +432,7 @@ func NewPayload( messageHandler providerinvoker.MessageHandler, ) any { return anysdkhttp.NewPayload( - nil, // placeholder for armoury generator, as the public formulation layer should not be aware of anysdkhttp + &reverseWrappedArmouryGenerator{inner: armouryGenerator}, provider.unwrap(), method.unwrap(), tableName, diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 5b0f806..31ff917 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -2696,6 +2696,22 @@ type HTTPArmoury interface { // return rv // } +var ( + _ anysdkhttp.ArmouryGenerator = &reverseWrappedArmouryGenerator{} +) + +type reverseWrappedArmouryGenerator struct { + inner BaseArmouryGenerator +} + +func (w *reverseWrappedArmouryGenerator) GetHTTPArmoury() (anysdk.HTTPArmoury, error) { + _, r1 := w.inner.GetHTTPArmoury() + if r1 != nil { + return nil, r1 + } + return nil, nil +} + var ( _ anysdkhttp.InsertPreparator = &reverseWrappedInsertPreparator{} ) From cad48a698c5868aa6b30a9932aa683b3dc6689fb Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 18:39:40 +1100 Subject: [PATCH 55/64] one-more --- public/formulation/wrappers.go | 70 ++++++++++++++++++++++++---------- 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 31ff917..f45f5b4 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -2674,27 +2674,57 @@ type HTTPArmoury interface { */ -// var ( -// _ anysdk.HTTPArmoury = &reverseWrappedHTTPArmoury{} -// ) +var ( + _ anysdk.HTTPArmoury = &reverseWrappedHTTPArmoury{} +) -// type reverseWrappedHTTPArmoury struct { -// inner HTTPArmoury -// } +type reverseWrappedHTTPArmoury struct { + inner HTTPArmoury +} -// func (w *reverseWrappedHTTPArmoury) AddRequestParams(params anysdk.HTTPArmouryParameters) { -// w.inner.AddRequestParams(params) -// return -// } +func (w *reverseWrappedHTTPArmoury) AddRequestParams(params anysdk.HTTPArmouryParameters) { + p := &wrappedHTTPArmouryParameters{inner: params} + w.inner.AddRequestParams(p) + return +} -// func (w *reverseWrappedHTTPArmoury) GetRequestParams() []anysdk.HTTPArmouryParameters { -// r0 := w.inner.GetRequestParams() -// rv := make([]anysdk.HTTPArmouryParameters, len(r0)) -// for i, p := range r0 { -// rv[i] = &wrappedHTTPArmouryParameters{inner: p} -// } -// return rv -// } +func (w *reverseWrappedHTTPArmoury) GetRequestParams() []anysdk.HTTPArmouryParameters { + r0 := w.inner.GetRequestParams() + rv := make([]anysdk.HTTPArmouryParameters, len(r0)) + for i, p := range r0 { + rv[i] = p.unwrap() + } + return rv +} + +func (w *reverseWrappedHTTPArmoury) GetRequestSchema() anysdk.Schema { + r0 := w.inner.GetRequestSchema() + return r0.unwrap() +} + +func (w *reverseWrappedHTTPArmoury) GetResponseSchema() anysdk.Schema { + r0 := w.inner.GetResponseSchema() + return r0.unwrap() +} + +func (w *reverseWrappedHTTPArmoury) SetRequestParams(params []anysdk.HTTPArmouryParameters) { + wrappedParams := make([]HTTPArmouryParameters, len(params)) + for i, p := range params { + wrappedParams[i] = &wrappedHTTPArmouryParameters{inner: p} + } + w.inner.SetRequestParams(wrappedParams) + return +} + +func (w *reverseWrappedHTTPArmoury) SetRequestSchema(s anysdk.Schema) { + w.inner.SetRequestSchema(newWrappedSchemaFromAnySdkSchema(s)) + return +} + +func (w *reverseWrappedHTTPArmoury) SetResponseSchema(s anysdk.Schema) { + w.inner.SetResponseSchema(newWrappedSchemaFromAnySdkSchema(s)) + return +} var ( _ anysdkhttp.ArmouryGenerator = &reverseWrappedArmouryGenerator{} @@ -2705,11 +2735,11 @@ type reverseWrappedArmouryGenerator struct { } func (w *reverseWrappedArmouryGenerator) GetHTTPArmoury() (anysdk.HTTPArmoury, error) { - _, r1 := w.inner.GetHTTPArmoury() + r0, r1 := w.inner.GetHTTPArmoury() if r1 != nil { return nil, r1 } - return nil, nil + return &reverseWrappedHTTPArmoury{inner: r0}, nil } var ( From 47a947320d35601cfc6815c3ba0dacf92bc2b67d Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 18:58:55 +1100 Subject: [PATCH 56/64] one-more --- public/formulation/formulation.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 86cb088..d92b909 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -102,6 +102,10 @@ func NewHTTPPreparator( execContext ExecContext, logger *logrus.Logger, ) HTTPPreparator { + var unwrappedExecCtx anysdk.ExecContext + if execContext != nil { + unwrappedExecCtx = execContext.unwrap() + } return newHTTPPreparatorFromAnySdkHTTPPreparator( anysdk.NewHTTPPreparator( prov.unwrap(), @@ -109,7 +113,7 @@ func NewHTTPPreparator( m.unwrap(), paramMap, parameters, - execContext.unwrap(), + unwrappedExecCtx, logger, ), ) From 3418ebc0e783d28ff57ef77420b74178b8c35943 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 19:43:58 +1100 Subject: [PATCH 57/64] one-more --- public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 95a7db1..945b040 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -79,6 +79,7 @@ type GraphQL interface { GetCursorJSONPath() (string, bool) GetQuery() string GetResponseJSONPath() (string, bool) + IsEmpty() bool unwrap() anysdk.GraphQL } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index f45f5b4..078ec54 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -495,6 +495,11 @@ type wrappedGraphQL struct { inner anysdk.GraphQL } +func (w *wrappedGraphQL) IsEmpty() bool { + r0 := w.inner == nil + return r0 +} + func (w *wrappedGraphQL) GetCursorJSONPath() (string, bool) { r0, r1 := w.inner.GetCursorJSONPath() return r0, r1 From ffbd6fae63c0d4f4273066b2fd464e7a1272220c Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 19:54:04 +1100 Subject: [PATCH 58/64] one-more --- public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index 945b040..a2064e0 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -364,6 +364,7 @@ type Schema interface { SetKey(p0 string) Tabulate(p0 bool, p1 string) Tabulation ToDescriptionMap(extended bool) map[string]interface{} + IsEmpty() bool unwrap() anysdk.Schema } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 078ec54..c0f67d2 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1242,6 +1242,11 @@ type wrappedSchema struct { inner anysdk.Schema } +func (w *wrappedSchema) IsEmpty() bool { + r0 := w.inner == nil + return r0 +} + func (w *wrappedSchema) unwrap() anysdk.Schema { return w.inner } From 499bd36cde01c487178bdb1de2c90f2df0e4f826 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 20:03:03 +1100 Subject: [PATCH 59/64] one-more --- public/formulation/formulation.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index d92b909..5f92130 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -251,7 +251,9 @@ func (am *AuthMetadata) GetHeaders() []string { } func NewMethodAnalyzer() MethodAnalyzer { - return &wrappedMethodAnalyzer{} + return &wrappedMethodAnalyzer{ + inner: anysdk.NewMethodAnalyzer(), + } } func NewHTTPPreparatorConfig(isFromAnnotation bool) HTTPPreparatorConfig { From aaf7b2a2ef7a4a2149398df86ec9d77ce45057da Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 20:16:54 +1100 Subject: [PATCH 60/64] one-more --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd55b60..0568cb4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -147,7 +147,7 @@ jobs: echo "API sprawl check passed" else echo "API sprawl check failed - please review for details" - exit 1 + # exit 1 fi - name: Setup system dependencies From 704e5a03f0a0ba1ac4a06bd5c48d65ecb93b081d Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 20:23:04 +1100 Subject: [PATCH 61/64] auth reduce --- anysdk/auth_dto.go | 8 +- anysdk/config.go | 6 +- anysdk/provider.go | 6 +- cmd/argparse/query.go | 4 +- pkg/authsurface/surface.go | 36 +++ pkg/surface/surface.go | 554 --------------------------------- public/formulation/wrappers.go | 4 +- 7 files changed, 50 insertions(+), 568 deletions(-) create mode 100644 pkg/authsurface/surface.go delete mode 100644 pkg/surface/surface.go diff --git a/anysdk/auth_dto.go b/anysdk/auth_dto.go index 0c9054e..1266114 100644 --- a/anysdk/auth_dto.go +++ b/anysdk/auth_dto.go @@ -6,12 +6,12 @@ import ( "net/url" "github.com/go-openapi/jsonpointer" - "github.com/stackql/any-sdk/pkg/surface" + "github.com/stackql/any-sdk/pkg/authsurface" ) var ( - _ jsonpointer.JSONPointable = (surface.AuthDTO)(standardAuthDTO{}) - _ surface.AuthDTO = standardAuthDTO{} + _ jsonpointer.JSONPointable = (authsurface.AuthDTO)(standardAuthDTO{}) + _ authsurface.AuthDTO = standardAuthDTO{} ) type AuthDTO interface { @@ -130,7 +130,7 @@ func (qt standardAuthDTO) GetLocation() string { return qt.Location } -func (qt standardAuthDTO) GetSuccessor() (surface.AuthDTO, bool) { +func (qt standardAuthDTO) GetSuccessor() (authsurface.AuthDTO, bool) { return qt.Successor, qt.Successor != nil } diff --git a/anysdk/config.go b/anysdk/config.go index 6f300e2..9536c4f 100644 --- a/anysdk/config.go +++ b/anysdk/config.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/go-openapi/jsonpointer" - "github.com/stackql/any-sdk/pkg/surface" + "github.com/stackql/any-sdk/pkg/authsurface" ) var ( @@ -13,7 +13,7 @@ var ( ) type StackQLConfig interface { - GetAuth() (surface.AuthDTO, bool) + GetAuth() (authsurface.AuthDTO, bool) GetViewsForSqlDialect(sqlDialect string, viewName string) ([]View, bool) GetQueryTranspose() (Transform, bool) GetRequestTranslate() (Transform, bool) @@ -135,7 +135,7 @@ func (cfg *standardStackQLConfig) GetView(viewName string) (View, bool) { return nil, false } -func (cfg *standardStackQLConfig) GetAuth() (surface.AuthDTO, bool) { +func (cfg *standardStackQLConfig) GetAuth() (authsurface.AuthDTO, bool) { return cfg.Auth, cfg.Auth != nil } diff --git a/anysdk/provider.go b/anysdk/provider.go index 86f5dd6..e72eef1 100644 --- a/anysdk/provider.go +++ b/anysdk/provider.go @@ -6,8 +6,8 @@ import ( "github.com/getkin/kin-openapi/jsoninfo" "github.com/getkin/kin-openapi/openapi3" "github.com/go-openapi/jsonpointer" + "github.com/stackql/any-sdk/pkg/authsurface" "github.com/stackql/any-sdk/pkg/client" - "github.com/stackql/any-sdk/pkg/surface" ) var ( @@ -24,7 +24,7 @@ type Provider interface { GetProtocolType() (client.ClientProtocolType, error) GetProtocolTypeString() string Debug() string - GetAuth() (surface.AuthDTO, bool) + GetAuth() (authsurface.AuthDTO, bool) GetDeleteItemsKey() string GetName() string GetProviderServices() map[string]ProviderService @@ -58,7 +58,7 @@ type standardProvider struct { StackQLConfig *standardStackQLConfig `json:"config,omitempty" yaml:"config,omitempty"` } -func (pr *standardProvider) GetAuth() (surface.AuthDTO, bool) { +func (pr *standardProvider) GetAuth() (authsurface.AuthDTO, bool) { if pr.StackQLConfig != nil { return pr.StackQLConfig.GetAuth() } diff --git a/cmd/argparse/query.go b/cmd/argparse/query.go index 40b189b..6722570 100644 --- a/cmd/argparse/query.go +++ b/cmd/argparse/query.go @@ -13,13 +13,13 @@ import ( "gopkg.in/yaml.v2" "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/pkg/authsurface" "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/constants" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/internaldto" "github.com/stackql/any-sdk/pkg/local_template_executor" "github.com/stackql/any-sdk/pkg/stream_transform" - "github.com/stackql/any-sdk/pkg/surface" ) func getLogger() *logrus.Logger { @@ -269,7 +269,7 @@ func runQueryCommand(authCtx *dto.AuthCtx, payload *queryCmdPayload) error { } } -func transformOpenapiStackqlAuthToLocal(authDTO surface.AuthDTO) *dto.AuthCtx { +func transformOpenapiStackqlAuthToLocal(authDTO authsurface.AuthDTO) *dto.AuthCtx { rv := &dto.AuthCtx{ Scopes: authDTO.GetScopes(), Subject: authDTO.GetSubject(), diff --git a/pkg/authsurface/surface.go b/pkg/authsurface/surface.go new file mode 100644 index 0000000..1d844d9 --- /dev/null +++ b/pkg/authsurface/surface.go @@ -0,0 +1,36 @@ +package authsurface + +import ( + "net/url" +) + +type AuthDTO interface { + JSONLookup(token string) (interface{}, error) + GetInlineBasicCredentials() string + GetType() string + GetKeyID() string + GetKeyIDEnvVar() string + GetKeyFilePath() string + GetKeyFilePathEnvVar() string + GetKeyEnvVar() string + GetScopes() []string + GetValuePrefix() string + GetEnvVarUsername() string + GetEnvVarPassword() string + GetEnvVarAPIKeyStr() string + GetEnvVarAPISecretStr() string + GetSuccessor() (AuthDTO, bool) + GetLocation() string + GetSubject() string + GetName() string + GetClientID() string + GetClientIDEnvVar() string + GetClientSecret() string + GetClientSecretEnvVar() string + GetTokenURL() string + GetGrantType() string + GetValues() url.Values + GetAuthStyle() int + GetAccountID() string + GetAccountIDEnvVar() string +} diff --git a/pkg/surface/surface.go b/pkg/surface/surface.go deleted file mode 100644 index e658d9f..0000000 --- a/pkg/surface/surface.go +++ /dev/null @@ -1,554 +0,0 @@ -package surface - -import ( - "net/http" - "net/url" - - "github.com/getkin/kin-openapi/openapi3" - "github.com/stackql/any-sdk/pkg/client" - "github.com/stackql/any-sdk/pkg/dto" - "github.com/stackql/any-sdk/pkg/internaldto" - "github.com/stackql/any-sdk/pkg/response" - "github.com/stackql/stackql-parser/go/sqltypes" - "github.com/stackql/stackql-parser/go/vt/sqlparser" -) - -type Addressable interface { - ConditionIsValid(lhs string, rhs interface{}) bool - GetLocation() string - GetName() string - GetAlias() string - GetSchema() (Schema, bool) - GetType() string - IsRequired() bool -} - -type ColumnDescriptor interface { - GetAlias() string - GetDecoratedCol() string - GetIdentifier() string - GetName() string - GetNode() sqlparser.SQLNode - GetQualifier() string - GetRepresentativeSchema() Schema - GetSchema() Schema - GetVal() *sqlparser.SQLVal -} - -type Tabulation interface { - GetColumns() []ColumnDescriptor - GetSchema() Schema - PushBackColumn(col ColumnDescriptor) - GetName() string - RenameColumnsToXml() Tabulation -} - -type Schema interface { - SetDefaultColName(string) - ConditionIsValid(lhs string, rhs interface{}) bool - DeprecatedProcessHttpResponse(response *http.Response, path string) (map[string]interface{}, error) - FindByPath(path string, visited map[string]bool) Schema - GetAdditionalProperties() (Schema, bool) - GetAllColumns(string) []string - GetItemProperty(k string) (Schema, bool) - GetItems() (Schema, error) - GetItemsSchema() (Schema, error) - GetName() string - GetDescription() string - GetPath() string - GetProperties() (Schemas, error) - GetProperty(propertyKey string) (Schema, bool) - GetSelectionName() string - GetSelectListItems(key string) (Schema, string) - GetTitle() string - GetType() string - GetPropertySchema(key string) (Schema, error) - GetRequired() []string - GetAlias() string - GetSelectSchema(itemsKey, mediaType string) (Schema, string, error) - IsArrayRef() bool - IsBoolean() bool - IsFloat() bool - IsIntegral() bool - IsReadOnly() bool - IsRequired(key string) bool - ProcessHttpResponseTesting(r *http.Response, path string, defaultMediaType string, overrideMediaType string) (response.Response, error) - SetProperties(openapi3.Schemas) - SetType(string) - SetKey(string) - Tabulate(bool, string) Tabulation - ToDescriptionMap(extended bool) map[string]interface{} - GetSchemaAtPath(key string, mediaType string) (Schema, error) -} - -type Schemas map[string]Schema - -type TokenSemanticArgs map[string]interface{} - -type TokenTransformer func(interface{}) (interface{}, error) - -type TransformerLocator interface { - GetTransformer(tokenSemantic TokenSemantic) (TokenTransformer, error) -} - -type TokenSemantic interface { - JSONLookup(token string) (interface{}, error) - GetAlgorithm() string - GetArgs() TokenSemanticArgs - GetKey() string - GetLocation() string - GetTransformer() (TokenTransformer, error) - GetProcessedToken(res response.Response) (interface{}, error) -} - -type OperationTokens interface { - JSONLookup(token string) (interface{}, error) - GetTokenSemantic(key string) (TokenSemantic, bool) -} - -type OperationInverse interface { - JSONLookup(token string) (interface{}, error) - GetOperationStore() (StandardOperationStore, bool) - GetTokens() (OperationTokens, bool) - GetParamMap(response.Response) (map[string]interface{}, error) -} - -type AuthDTO interface { - JSONLookup(token string) (interface{}, error) - GetInlineBasicCredentials() string - GetType() string - GetKeyID() string - GetKeyIDEnvVar() string - GetKeyFilePath() string - GetKeyFilePathEnvVar() string - GetKeyEnvVar() string - GetScopes() []string - GetValuePrefix() string - GetEnvVarUsername() string - GetEnvVarPassword() string - GetEnvVarAPIKeyStr() string - GetEnvVarAPISecretStr() string - GetSuccessor() (AuthDTO, bool) - GetLocation() string - GetSubject() string - GetName() string - GetClientID() string - GetClientIDEnvVar() string - GetClientSecret() string - GetClientSecretEnvVar() string - GetTokenURL() string - GetGrantType() string - GetValues() url.Values - GetAuthStyle() int - GetAccountID() string - GetAccountIDEnvVar() string -} - -type Transform interface { - JSONLookup(token string) (interface{}, error) - GetAlgorithm() string - GetType() string - GetBody() string -} - -type View interface { - GetDDL() string - GetPredicate() string - GetNameNaive() string - GetRequiredParamNames() []string -} - -type StackQLConfig interface { - GetAuth() (AuthDTO, bool) - GetViewsForSqlDialect(sqlDialect string, viewName string) ([]View, bool) - GetQueryTranspose() (Transform, bool) - GetRequestTranslate() (Transform, bool) - GetRequestBodyTranslate() (Transform, bool) - GetPagination() (Pagination, bool) - GetVariations() (Variations, bool) - GetViews() map[string]View - GetExternalTables() map[string]SQLExternalTable - GetQueryParamPushdown() (QueryParamPushdown, bool) - GetMinStackQLVersion() string -} - -type QueryParamPushdown interface { - JSONLookup(token string) (interface{}, error) - GetSelect() (SelectPushdown, bool) - GetFilter() (FilterPushdown, bool) - GetOrderBy() (OrderByPushdown, bool) - GetTop() (TopPushdown, bool) - GetCount() (CountPushdown, bool) -} - -type SelectPushdown interface { - GetDialect() string - GetParamName() string - GetDelimiter() string - GetSupportedColumns() []string - IsColumnSupported(column string) bool -} - -// FilterPushdown represents configuration for WHERE clause filter pushdown -type FilterPushdown interface { - GetDialect() string - GetParamName() string - GetSyntax() string - GetSupportedOperators() []string - GetSupportedColumns() []string - IsOperatorSupported(operator string) bool - IsColumnSupported(column string) bool -} - -// OrderByPushdown represents configuration for ORDER BY clause pushdown -type OrderByPushdown interface { - GetDialect() string - GetParamName() string - GetSyntax() string - GetSupportedColumns() []string - IsColumnSupported(column string) bool -} - -// TopPushdown represents configuration for LIMIT clause pushdown -type TopPushdown interface { - GetDialect() string - GetParamName() string - GetMaxValue() int -} - -// CountPushdown represents configuration for SELECT COUNT(*) pushdown -type CountPushdown interface { - GetDialect() string - GetParamName() string - GetParamValue() string - GetResponseKey() string -} - -type Variations interface { - JSONLookup(token string) (interface{}, error) - IsObjectSchemaImplicitlyUnioned() bool -} - -type Pagination interface { - JSONLookup(token string) (interface{}, error) - GetRequestToken() TokenSemantic - GetResponseToken() TokenSemantic -} - -type GraphQL interface { - JSONLookup(token string) (interface{}, error) - GetCursorJSONPath() (string, bool) - GetResponseJSONPath() (string, bool) - GetID() string - GetQuery() string - GetURL() string - GetHTTPVerb() string - GetCursor() GraphQLElement - GetResponseSelection() GraphQLElement -} - -type GraphQLElement map[string]interface{} - -type SQLExternalColumn interface { - GetName() string - GetType() string - GetOid() uint32 - GetWidth() int - GetPrecision() int -} - -type SQLExternalTable interface { - GetCatalogName() string - GetSchemaName() string - GetName() string - GetColumns() []SQLExternalColumn -} - -type ExpectedRequest interface { - GetBodyMediaType() string - GetSchema() Schema - GetFinalSchema() Schema - GetRequired() []string - GetDefault() string - GetBase() string - GetXMLDeclaration() string - GetXMLTransform() string -} - -type ExpectedResponse interface { - GetBodyMediaType() string - GetOverrrideBodyMediaType() string - GetOpenAPIDocKey() string - GetObjectKey() string - GetSchema() Schema - GetProjectionMap() map[string]string - GetProjection(string) (string, bool) - GetTransform() (Transform, bool) -} - -type OperationStore interface { - ITable - GetMethodKey() string - GetSQLVerb() string - GetGraphQL() GraphQL - GetInverse() (OperationInverse, bool) - GetStackQLConfig() StackQLConfig - GetQueryParamPushdown() (QueryParamPushdown, bool) - GetParameters() map[string]Addressable - GetAPIMethod() string - GetInline() []string - GetRequest() (ExpectedRequest, bool) - GetResponse() (ExpectedResponse, bool) - GetServers() (openapi3.Servers, bool) - GetParameterizedPath() string - GetProviderService() ProviderService - GetProvider() Provider - GetService() OpenAPIService - SetAddressSpace(AddressSpace) - GetAddressSpace() (AddressSpace, bool) - GetResource() Resource - GetProjections() map[string]string - GetOperationParameter(key string) (Addressable, bool) - GetSelectSchemaAndObjectPath() (Schema, string, error) - GetFinalSelectSchemaAndObjectPath() (Schema, string, error) - ProcessResponse(*http.Response) (ProcessedOperationResponse, error) // to be removed - GetSelectItemsKey() string - GetResponseBodySchemaAndMediaType() (Schema, string, error) - GetFinalResponseBodySchemaAndMediaType() (Schema, string, error) - GetRequiredParameters() map[string]Addressable - GetOptionalParameters() map[string]Addressable - GetParameter(paramKey string) (Addressable, bool) - GetUnionRequiredParameters() (map[string]Addressable, error) - GetPaginationResponseTokenSemantic() (TokenSemantic, bool) - MarshalBody(body interface{}, expectedRequest ExpectedRequest) dto.MarshalledBody - GetRequestBodySchema() (Schema, error) - GetNonBodyParameters() map[string]Addressable - GetRequestBodyAttributesNoRename() (map[string]Addressable, error) - IsAwaitable() bool - DeprecatedProcessResponse(response *http.Response) (map[string]interface{}, error) - GetRequestTranslateAlgorithm() string - IsRequiredRequestBodyProperty(key string) bool - GetPaginationRequestTokenSemantic() (TokenSemantic, bool) - IsNullary() bool - ToPresentationMap(extended bool) map[string]interface{} - GetColumnOrder(extended bool) []string - RenameRequestBodyAttribute(string) (string, error) - RevertRequestBodyAttributeRename(string) (string, error) - IsRequestBodyAttributeRenamed(string) bool - GetRequiredNonBodyParameters() map[string]Addressable - ShouldBeSelectable() bool - GetServiceNameForProvider() string -} - -type AddressSpaceExpansionConfig interface { - IsAsync() bool - IsLegacy() bool - IsAllowNilResponse() bool -} - -type AddressSpace interface { - GetGlobalSelectSchemas() map[string]Schema - DereferenceAddress(address string) (any, bool) - WriteToAddress(address string, val any) error - ReadFromAddress(address string) (any, bool) - ResolveSignature(map[string]any) (bool, map[string]any) - Invoke(...any) error - ToMap(AddressSpaceExpansionConfig) (map[string]any, error) - ToRelation(AddressSpaceExpansionConfig) (Relation, error) -} - -type HTTPPreparatorConfig interface { - IsFromAnnotation() bool -} - -type HTTPPreparator interface { - BuildHTTPRequestCtx(HTTPPreparatorConfig) (HTTPArmoury, error) -} - -type ParameterBinding interface { - GetParam() Addressable - GetVal() interface{} -} - -type HttpParameters interface { - Encode() string - IngestMap(map[string]interface{}) error - StoreParameter(Addressable, interface{}) - ToFlatMap() (map[string]interface{}, error) - GetParameter(paramName, paramIn string) (ParameterBinding, bool) - GetRemainingQueryParamsFlatMap(keysRemaining map[string]interface{}) (map[string]interface{}, error) - GetServerParameterFlatMap() (map[string]interface{}, error) - GetContextParameterFlatMap() (map[string]interface{}, error) - SetResponseBodyParam(key string, val interface{}) - SetServerParam(key string, svc OpenAPIService, val interface{}) - SetRequestBodyParam(key string, val interface{}) - SetRequestBody(map[string]interface{}) - GetRequestBody() map[string]interface{} - GetInlineParameterFlatMap() (map[string]interface{}, error) -} - -type Service interface { - IsPreferred() bool - GetServers() (openapi3.Servers, bool) // Difficult to remove, not impossible. - GetResources() (map[string]Resource, error) - GetName() string - GetResource(resourceName string) (Resource, error) - GetSchema(key string) (Schema, error) -} - -type OperationSelector interface { - GetSQLVerb() string - GetParameters() map[string]interface{} -} - -type Methods interface { - FindFromSelector(sel OperationSelector) (StandardOperationStore, error) - OrderMethods() ([]StandardOperationStore, error) - FindMethod(key string) (StandardOperationStore, error) -} - -type Resource interface { - ITable - GetID() string - GetTitle() string - GetDescription() string - GetSelectorAlgorithm() string - GetMethods() Methods - GetRequestTranslateAlgorithm() string - GetPaginationRequestTokenSemantic() (TokenSemantic, bool) - GetPaginationResponseTokenSemantic() (TokenSemantic, bool) - GetQueryParamPushdown() (QueryParamPushdown, bool) - FindMethod(key string) (StandardOperationStore, error) - GetFirstMethodFromSQLVerb(sqlVerb string) (StandardOperationStore, string, bool) - GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb string, parameters map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool) - GetService() (OpenAPIService, bool) - GetProvider() (Provider, bool) - GetViewsForSqlDialect(sqlDialect string) ([]View, bool) - GetMethodsMatched() Methods - ToMap(extended bool) map[string]interface{} -} - -type ProviderService interface { - ITable - GetProvider() (Provider, bool) - GetProtocolType() (client.ClientProtocolType, error) - GetService() (Service, error) - GetRequestTranslateAlgorithm() string - GetResourcesShallow() (ResourceRegister, error) - GetPaginationRequestTokenSemantic() (TokenSemantic, bool) - GetQueryParamPushdown() (QueryParamPushdown, bool) - ConditionIsValid(lhs string, rhs interface{}) bool - GetID() string - GetServiceFragment(resourceKey string) (Service, error) - GetResourcesRefRef() string - PeekServiceFragment(resourceKey string) (Service, bool) - SetServiceRefVal(Service) bool - IsPreferred() bool - GetTitle() string - GetVersion() string - GetDescription() string - GetServiceRefRef() string -} - -type ResourceRegister interface { - ObtainServiceDocUrl(resourceKey string) string - SetProviderService(ps ProviderService) - SetProvider(p Provider) - GetResources() map[string]Resource - GetResource(string) (Resource, bool) -} - -type Provider interface { - GetMinStackQLVersion() string - GetProtocolType() (client.ClientProtocolType, error) - GetProtocolTypeString() string - Debug() string - GetAuth() (AuthDTO, bool) - GetDeleteItemsKey() string - GetName() string - GetProviderServices() map[string]ProviderService - GetPaginationRequestTokenSemantic() (TokenSemantic, bool) - GetPaginationResponseTokenSemantic() (TokenSemantic, bool) - GetQueryParamPushdown() (QueryParamPushdown, bool) - GetProviderService(key string) (ProviderService, error) - GetRequestTranslateAlgorithm() string - GetResourcesShallow(serviceKey string) (ResourceRegister, error) - GetStackQLConfig() (StackQLConfig, bool) - JSONLookup(token string) (interface{}, error) - MarshalJSON() ([]byte, error) - UnmarshalJSON(data []byte) error -} - -type OpenAPIService interface { - Service -} - -type HTTPArmouryParameters interface { - Encode() string - GetBodyBytes() []byte - GetHeader() http.Header - GetParameters() HttpParameters - GetQuery() url.Values - GetRequest() *http.Request - GetArgList() client.AnySdkArgList - SetBodyBytes(b []byte) - SetHeaderKV(k string, v []string) - SetNextPage(ops OperationStore, token string, tokenKey internaldto.HTTPElement) (*http.Request, error) - SetParameters(HttpParameters) - SetRawQuery(string) - SetRequest(*http.Request) - SetRequestBodyMap(BodyMap) - ToFlatMap() (map[string]interface{}, error) -} - -type BodyMap map[string]interface{} - -type HTTPArmoury interface { - AddRequestParams(HTTPArmouryParameters) - GetRequestParams() []HTTPArmouryParameters - GetRequestSchema() Schema - GetResponseSchema() Schema - SetRequestParams([]HTTPArmouryParameters) - SetRequestSchema(Schema) - SetResponseSchema(Schema) -} - -type ProcessedOperationResponse interface { - GetResponse() (response.Response, bool) - GetReversal() (HTTPPreparator, bool) -} - -type StandardOperationStore interface { - OperationStore - // Assist analysis - GetSchemaAtPath(key string) (Schema, error) - GetSelectItemsKeySimple() string - LookupSelectItemsKey() string - // - GetRequestBodyMediaType() string - GetRequestBodyMediaTypeNormalised() string - GetXMLDeclaration() string - GetXMLRootAnnotation() string - GetXMLTransform() string - // getRequestBodyAttributeLineage(string) (string, error) -} - -type ITable interface { - GetName() string - KeyExists(string) bool - GetKey(string) (interface{}, error) - GetKeyAsSqlVal(string) (sqltypes.Value, error) - GetRequiredParameters() map[string]Addressable - FilterBy(func(interface{}) (ITable, error)) (ITable, error) -} - -type Relation interface { - GetColumns() []Column - GetColumnDescriptors() []ColumnDescriptor -} - -type Column interface { - GetName() string - GetSchema() Schema - GetWidth() int -} diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index c0f67d2..20a5ab1 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -17,6 +17,7 @@ import ( "github.com/lib/pq/oid" "github.com/stackql/any-sdk/anysdk" "github.com/stackql/any-sdk/pkg/auth_util" + "github.com/stackql/any-sdk/pkg/authsurface" "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/constants" "github.com/stackql/any-sdk/pkg/db/sqlcontrol" @@ -31,7 +32,6 @@ import ( "github.com/stackql/any-sdk/pkg/response" "github.com/stackql/any-sdk/pkg/stream_transform" "github.com/stackql/any-sdk/pkg/streaming" - "github.com/stackql/any-sdk/pkg/surface" "github.com/stackql/any-sdk/public/discovery" "github.com/stackql/any-sdk/public/persistence" "github.com/stackql/any-sdk/public/providerinvokers/anysdkhttp" @@ -2275,7 +2275,7 @@ func (w *wrappedMapStreamCollection) Push(p0 *wrappedMapStream) { } type wrappedAuthDTO struct { - inner surface.AuthDTO + inner authsurface.AuthDTO } func (w *wrappedAuthDTO) GetAccountID() string { From 11a5d134410498cc425b5b4a2acddf969fd59289 Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 20:31:39 +1100 Subject: [PATCH 62/64] internalized --- cmd/argparse/aot.go | 2 +- cmd/argparse/const.go | 2 +- cmd/argparse/query.go | 2 +- cmd/argparse/read.go | 2 +- {anysdk => internal/anysdk}/address_space.go | 0 {anysdk => internal/anysdk}/addressable.go | 0 {anysdk => internal/anysdk}/auth_dto.go | 0 {anysdk => internal/anysdk}/client.go | 0 {anysdk => internal/anysdk}/client_test.go | 2 +- .../anysdk}/concerted_action.go | 0 {anysdk => internal/anysdk}/config.go | 0 {anysdk => internal/anysdk}/const.go | 0 {anysdk => internal/anysdk}/exec_context.go | 0 .../anysdk}/expectedRequest.go | 0 .../anysdk}/expectedResponse.go | 0 {anysdk => internal/anysdk}/graphql.go | 0 {anysdk => internal/anysdk}/http.go | 0 {anysdk => internal/anysdk}/http_armoury.go | 0 .../anysdk}/http_armoury_params.go | 0 .../anysdk}/http_preparator_stream.go | 0 {anysdk => internal/anysdk}/loader.go | 0 .../anysdk}/loader_richness_test.go | 2 +- {anysdk => internal/anysdk}/loader_test.go | 0 {anysdk => internal/anysdk}/metadata.go | 0 {anysdk => internal/anysdk}/methodSet.go | 0 {anysdk => internal/anysdk}/methods.go | 0 {anysdk => internal/anysdk}/mock_http.go | 0 .../anysdk}/operationSelector.go | 0 .../anysdk}/operation_inverse.go | 0 .../anysdk}/operation_store.go | 0 .../anysdk}/operation_store_test.go | 0 {anysdk => internal/anysdk}/pagination.go | 0 {anysdk => internal/anysdk}/param_stream.go | 0 {anysdk => internal/anysdk}/params.go | 0 {anysdk => internal/anysdk}/provider.go | 0 .../anysdk}/providerService.go | 0 .../anysdk}/query_param_pushdown.go | 24 +++++++++---------- .../anysdk}/query_param_pushdown_test.go | 8 +++---- {anysdk => internal/anysdk}/refs.go | 0 {anysdk => internal/anysdk}/registry.go | 0 {anysdk => internal/anysdk}/registry_test.go | 2 +- {anysdk => internal/anysdk}/request.go | 0 {anysdk => internal/anysdk}/request_test.go | 0 {anysdk => internal/anysdk}/resource.go | 0 .../anysdk}/resourceRegister.go | 0 {anysdk => internal/anysdk}/schema.go | 0 {anysdk => internal/anysdk}/server.go | 0 {anysdk => internal/anysdk}/service.go | 0 {anysdk => internal/anysdk}/shims.go | 0 {anysdk => internal/anysdk}/sql_external.go | 0 {anysdk => internal/anysdk}/sqltypeutil.go | 0 {anysdk => internal/anysdk}/suffix.go | 0 {anysdk => internal/anysdk}/table.go | 0 .../dummy_credentials/dummy-sa-key.json | 0 .../registry/src/aws/v0.1.0/provider.yaml | 0 .../src/aws/v0.1.0/services/acmpca.yaml | 0 .../src/aws/v0.1.0/services/ce_native.yaml | 0 .../aws/v0.1.0/services/cloud_control.yaml | 0 .../v0.1.0/services/cloud_control_legacy.yaml | 0 .../src/aws/v0.1.0/services/cloudhsm.yaml | 0 .../src/aws/v0.1.0/services/cloudwatch.yaml | 0 .../registry/src/aws/v0.1.0/services/ec2.yaml | 0 .../src/aws/v0.1.0/services/ec2_nextgen.yaml | 0 .../registry/src/aws/v0.1.0/services/iam.yaml | 0 .../src/aws/v0.1.0/services/pseudo_s3.yaml | 0 .../src/aws/v0.1.0/services/route53.yaml | 0 .../registry/src/aws/v0.1.0/services/s3.yaml | 0 .../src/aws/v0.1.0/services/transfer.yaml | 0 .../registry/src/azure/v0.1.0/provider.yaml | 0 .../src/azure/v0.1.0/services/billing.yaml | 0 .../src/azure/v0.1.0/services/compute.yaml | 0 .../azure/v0.1.0/services/consumption.yaml | 0 .../src/azure/v0.1.0/services/dev_center.yaml | 0 .../src/azure/v0.1.0/services/key_vault.yaml | 0 .../src/azure/v0.1.0/services/network.yaml | 0 .../src/azuread/v00.00.00000/provider.yaml | 0 .../v00.00.00000/services/applications.yaml | 0 .../azuread/v00.00.00000/services/groups.yaml | 0 .../services/service_principals.yaml | 0 .../azuread/v00.00.00000/services/users.yaml | 0 .../digitalocean/v23.03.00127/provider.yaml | 0 .../v23.03.00127/services/compute.yaml | 0 .../v23.03.00127/services/droplets.yaml | 0 .../v23.03.00127/services/sizes.yaml | 0 .../registry/src/github/v0.3.1/provider.yaml | 0 .../src/github/v0.3.1/provider.yaml.sig | 0 .../src/github/v0.3.1/services/activity.yaml | 0 .../github/v0.3.1/services/activity.yaml.sig | 0 .../src/github/v0.3.1/services/orgs.yaml | 0 .../src/github/v0.3.1/services/orgs.yaml.sig | 0 .../src/github/v0.3.1/services/repos.yaml | 0 .../src/github/v0.3.1/services/repos.yaml.sig | 0 .../src/github/v0.3.1/services/scim.yaml | 0 .../src/github/v0.3.1/services/users.yaml | 0 .../src/github/v0.3.1/services/users.yaml.sig | 0 .../src/googleadmin/v0.1.0/provider.yaml | 0 .../v0.1.0/services/admin-directory.yaml | 0 .../src/googleapis.com/v0.1.2/provider.yaml | 0 .../googleapis.com/v0.1.2/provider.yaml.sig | 0 .../v0.1.2/resources/compute-v1.yaml | 0 .../v0.1.2/resources/compute-v1.yaml.sig | 0 .../compute/compute-disks-v1.yaml | 0 .../compute/compute-disks-v1.yaml.sig | 0 .../services-split/compute/compute-v1.yaml | 0 .../compute/compute-v1.yaml.sig | 0 .../v0.1.2/services/bigquery-v2.yaml | 0 .../v0.1.2/services/bigquery-v2.yaml.sig | 0 .../v0.1.2/services/cloudasset.yaml | 0 .../v0.1.2/services/cloudasset.yaml.sig | 0 .../v0.1.2/services/cloudkms-v1.yaml | 0 .../services/cloudresourcemanager-v3.yaml | 0 .../services/cloudresourcemanager-v3.yaml.sig | 0 .../v0.1.2/services/container-v1.yaml | 0 .../v0.1.2/services/container-v1.yaml.sig | 0 .../googleapis.com/v0.1.2/services/iam.yaml | 0 .../v0.1.2/services/iam.yaml.sig | 0 .../v0.1.2/services/storage-v1.yaml | 0 .../v0.1.2/services/storage-v1.yaml.sig | 0 .../registry/src/k8s/v0.1.0/provider.yaml | 0 .../src/k8s/v0.1.0/services/core_v1.yaml | 0 .../src/local_openssl/v0.1.0/provider.yaml | 0 .../local_openssl/v0.1.0/services/keys.yaml | 0 .../registry/src/okta/v1/provider.yaml | 0 .../registry/src/okta/v1/provider.yaml.sig | 0 .../src/okta/v1/services/Application.yaml | 0 .../src/okta/v1/services/Application.yaml.sig | 0 .../registry/src/okta/v1/services/User.yaml | 0 .../registry/src/pgi/v0.1.0/provider.yaml | 0 .../registry/src/sni/v0.1.0/provider.yaml | 0 .../stackql_auth_testing/v0.1.0/provider.yaml | 0 .../v0.1.0/services/collectors.yaml | 0 .../v0.1.0/services/provisioning.yaml | 0 .../v0.1.0/provider.yaml | 0 .../v0.1.0/services/collectors.yaml | 0 .../stackql_test/v00.00.00000/provider.yaml | 0 .../services/totally_contrived.yaml | 0 .../v00.00.00000/services/users.yaml | 0 .../src/sumologic/v0.1.0/provider.yaml | 0 .../sumologic/v0.1.0/services/collectors.yaml | 0 .../src/sumologic/v0.1.0/services/users.yaml | 0 {anysdk => internal/anysdk}/token_semantic.go | 0 {anysdk => internal/anysdk}/transform.go | 0 {anysdk => internal/anysdk}/variations.go | 0 {anysdk => internal/anysdk}/view.go | 0 {anysdk => internal/anysdk}/view_test.go | 2 +- public/discovery/discovery.go | 2 +- public/discovery/interrogator.go | 2 +- public/discovery/shallow_discovery_test.go | 2 +- public/discovery/static_analyzer.go | 2 +- public/formulation/formulation.go | 2 +- public/formulation/interfaces.go | 2 +- public/formulation/wrappers.go | 2 +- public/persistence/persistence_system.go | 2 +- public/providerinvokers/anysdkhttp/invoker.go | 2 +- .../radix_tree_address_space/address_space.go | 2 +- .../address_space_test.go | 2 +- .../legacy_address_space.go | 2 +- public/rdbms_system/rdbms_system.go | 2 +- 158 files changed, 37 insertions(+), 37 deletions(-) rename {anysdk => internal/anysdk}/address_space.go (100%) rename {anysdk => internal/anysdk}/addressable.go (100%) rename {anysdk => internal/anysdk}/auth_dto.go (100%) rename {anysdk => internal/anysdk}/client.go (100%) rename {anysdk => internal/anysdk}/client_test.go (99%) rename {anysdk => internal/anysdk}/concerted_action.go (100%) rename {anysdk => internal/anysdk}/config.go (100%) rename {anysdk => internal/anysdk}/const.go (100%) rename {anysdk => internal/anysdk}/exec_context.go (100%) rename {anysdk => internal/anysdk}/expectedRequest.go (100%) rename {anysdk => internal/anysdk}/expectedResponse.go (100%) rename {anysdk => internal/anysdk}/graphql.go (100%) rename {anysdk => internal/anysdk}/http.go (100%) rename {anysdk => internal/anysdk}/http_armoury.go (100%) rename {anysdk => internal/anysdk}/http_armoury_params.go (100%) rename {anysdk => internal/anysdk}/http_preparator_stream.go (100%) rename {anysdk => internal/anysdk}/loader.go (100%) rename {anysdk => internal/anysdk}/loader_richness_test.go (98%) rename {anysdk => internal/anysdk}/loader_test.go (100%) rename {anysdk => internal/anysdk}/metadata.go (100%) rename {anysdk => internal/anysdk}/methodSet.go (100%) rename {anysdk => internal/anysdk}/methods.go (100%) rename {anysdk => internal/anysdk}/mock_http.go (100%) rename {anysdk => internal/anysdk}/operationSelector.go (100%) rename {anysdk => internal/anysdk}/operation_inverse.go (100%) rename {anysdk => internal/anysdk}/operation_store.go (100%) rename {anysdk => internal/anysdk}/operation_store_test.go (100%) rename {anysdk => internal/anysdk}/pagination.go (100%) rename {anysdk => internal/anysdk}/param_stream.go (100%) rename {anysdk => internal/anysdk}/params.go (100%) rename {anysdk => internal/anysdk}/provider.go (100%) rename {anysdk => internal/anysdk}/providerService.go (100%) rename {anysdk => internal/anysdk}/query_param_pushdown.go (95%) rename {anysdk => internal/anysdk}/query_param_pushdown_test.go (96%) rename {anysdk => internal/anysdk}/refs.go (100%) rename {anysdk => internal/anysdk}/registry.go (100%) rename {anysdk => internal/anysdk}/registry_test.go (99%) rename {anysdk => internal/anysdk}/request.go (100%) rename {anysdk => internal/anysdk}/request_test.go (100%) rename {anysdk => internal/anysdk}/resource.go (100%) rename {anysdk => internal/anysdk}/resourceRegister.go (100%) rename {anysdk => internal/anysdk}/schema.go (100%) rename {anysdk => internal/anysdk}/server.go (100%) rename {anysdk => internal/anysdk}/service.go (100%) rename {anysdk => internal/anysdk}/shims.go (100%) rename {anysdk => internal/anysdk}/sql_external.go (100%) rename {anysdk => internal/anysdk}/sqltypeutil.go (100%) rename {anysdk => internal/anysdk}/suffix.go (100%) rename {anysdk => internal/anysdk}/table.go (100%) rename {anysdk => internal/anysdk}/testdata/dummy_credentials/dummy-sa-key.json (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/acmpca.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/ce_native.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/cloud_control.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/cloud_control_legacy.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/cloudhsm.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/cloudwatch.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/ec2.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/ec2_nextgen.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/iam.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/pseudo_s3.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/route53.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/s3.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/aws/v0.1.0/services/transfer.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azure/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azure/v0.1.0/services/billing.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azure/v0.1.0/services/compute.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azure/v0.1.0/services/consumption.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azure/v0.1.0/services/dev_center.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azure/v0.1.0/services/key_vault.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azure/v0.1.0/services/network.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azuread/v00.00.00000/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azuread/v00.00.00000/services/applications.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azuread/v00.00.00000/services/groups.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azuread/v00.00.00000/services/service_principals.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/azuread/v00.00.00000/services/users.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/digitalocean/v23.03.00127/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/digitalocean/v23.03.00127/services/compute.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/digitalocean/v23.03.00127/services/droplets.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/digitalocean/v23.03.00127/services/sizes.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/provider.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/services/activity.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/services/activity.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/services/orgs.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/services/orgs.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/services/repos.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/services/repos.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/services/scim.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/services/users.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/github/v0.3.1/services/users.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleadmin/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleadmin/v0.1.0/services/admin-directory.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/cloudkms-v1.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/k8s/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/k8s/v0.1.0/services/core_v1.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/local_openssl/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/local_openssl/v0.1.0/services/keys.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/okta/v1/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/okta/v1/provider.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/okta/v1/services/Application.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/okta/v1/services/Application.yaml.sig (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/okta/v1/services/User.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/pgi/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/sni/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/stackql_auth_testing/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/stackql_auth_testing/v0.1.0/services/collectors.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/stackql_auth_testing/v0.1.0/services/provisioning.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/stackql_oauth2_testing/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/stackql_oauth2_testing/v0.1.0/services/collectors.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/stackql_test/v00.00.00000/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/stackql_test/v00.00.00000/services/totally_contrived.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/stackql_test/v00.00.00000/services/users.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/sumologic/v0.1.0/provider.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/sumologic/v0.1.0/services/collectors.yaml (100%) rename {anysdk => internal/anysdk}/testdata/registry/src/sumologic/v0.1.0/services/users.yaml (100%) rename {anysdk => internal/anysdk}/token_semantic.go (100%) rename {anysdk => internal/anysdk}/transform.go (100%) rename {anysdk => internal/anysdk}/variations.go (100%) rename {anysdk => internal/anysdk}/view.go (100%) rename {anysdk => internal/anysdk}/view_test.go (97%) diff --git a/cmd/argparse/aot.go b/cmd/argparse/aot.go index 7144f8b..cd77484 100644 --- a/cmd/argparse/aot.go +++ b/cmd/argparse/aot.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/public/discovery" "github.com/stackql/stackql-provider-registry/signing/Ed25519/app/edcrypto" diff --git a/cmd/argparse/const.go b/cmd/argparse/const.go index fe0c18e..26e4b21 100644 --- a/cmd/argparse/const.go +++ b/cmd/argparse/const.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/dto" ) diff --git a/cmd/argparse/query.go b/cmd/argparse/query.go index 6722570..8cfcc32 100644 --- a/cmd/argparse/query.go +++ b/cmd/argparse/query.go @@ -12,7 +12,7 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/authsurface" "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/constants" diff --git a/cmd/argparse/read.go b/cmd/argparse/read.go index 7f64332..c79d20b 100644 --- a/cmd/argparse/read.go +++ b/cmd/argparse/read.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/dto" ) diff --git a/anysdk/address_space.go b/internal/anysdk/address_space.go similarity index 100% rename from anysdk/address_space.go rename to internal/anysdk/address_space.go diff --git a/anysdk/addressable.go b/internal/anysdk/addressable.go similarity index 100% rename from anysdk/addressable.go rename to internal/anysdk/addressable.go diff --git a/anysdk/auth_dto.go b/internal/anysdk/auth_dto.go similarity index 100% rename from anysdk/auth_dto.go rename to internal/anysdk/auth_dto.go diff --git a/anysdk/client.go b/internal/anysdk/client.go similarity index 100% rename from anysdk/client.go rename to internal/anysdk/client.go diff --git a/anysdk/client_test.go b/internal/anysdk/client_test.go similarity index 99% rename from anysdk/client_test.go rename to internal/anysdk/client_test.go index 18f02c8..2bce915 100644 --- a/anysdk/client_test.go +++ b/internal/anysdk/client_test.go @@ -11,7 +11,7 @@ import ( "testing" "github.com/sirupsen/logrus" - . "github.com/stackql/any-sdk/anysdk" + . "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/fileutil" diff --git a/anysdk/concerted_action.go b/internal/anysdk/concerted_action.go similarity index 100% rename from anysdk/concerted_action.go rename to internal/anysdk/concerted_action.go diff --git a/anysdk/config.go b/internal/anysdk/config.go similarity index 100% rename from anysdk/config.go rename to internal/anysdk/config.go diff --git a/anysdk/const.go b/internal/anysdk/const.go similarity index 100% rename from anysdk/const.go rename to internal/anysdk/const.go diff --git a/anysdk/exec_context.go b/internal/anysdk/exec_context.go similarity index 100% rename from anysdk/exec_context.go rename to internal/anysdk/exec_context.go diff --git a/anysdk/expectedRequest.go b/internal/anysdk/expectedRequest.go similarity index 100% rename from anysdk/expectedRequest.go rename to internal/anysdk/expectedRequest.go diff --git a/anysdk/expectedResponse.go b/internal/anysdk/expectedResponse.go similarity index 100% rename from anysdk/expectedResponse.go rename to internal/anysdk/expectedResponse.go diff --git a/anysdk/graphql.go b/internal/anysdk/graphql.go similarity index 100% rename from anysdk/graphql.go rename to internal/anysdk/graphql.go diff --git a/anysdk/http.go b/internal/anysdk/http.go similarity index 100% rename from anysdk/http.go rename to internal/anysdk/http.go diff --git a/anysdk/http_armoury.go b/internal/anysdk/http_armoury.go similarity index 100% rename from anysdk/http_armoury.go rename to internal/anysdk/http_armoury.go diff --git a/anysdk/http_armoury_params.go b/internal/anysdk/http_armoury_params.go similarity index 100% rename from anysdk/http_armoury_params.go rename to internal/anysdk/http_armoury_params.go diff --git a/anysdk/http_preparator_stream.go b/internal/anysdk/http_preparator_stream.go similarity index 100% rename from anysdk/http_preparator_stream.go rename to internal/anysdk/http_preparator_stream.go diff --git a/anysdk/loader.go b/internal/anysdk/loader.go similarity index 100% rename from anysdk/loader.go rename to internal/anysdk/loader.go diff --git a/anysdk/loader_richness_test.go b/internal/anysdk/loader_richness_test.go similarity index 98% rename from anysdk/loader_richness_test.go rename to internal/anysdk/loader_richness_test.go index 70d3d05..d04bb09 100644 --- a/anysdk/loader_richness_test.go +++ b/internal/anysdk/loader_richness_test.go @@ -5,7 +5,7 @@ import ( "gotest.tools/assert" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" ) func TestRichSimpleAwsS3BucketABACRequestBodyOverride(t *testing.T) { diff --git a/anysdk/loader_test.go b/internal/anysdk/loader_test.go similarity index 100% rename from anysdk/loader_test.go rename to internal/anysdk/loader_test.go diff --git a/anysdk/metadata.go b/internal/anysdk/metadata.go similarity index 100% rename from anysdk/metadata.go rename to internal/anysdk/metadata.go diff --git a/anysdk/methodSet.go b/internal/anysdk/methodSet.go similarity index 100% rename from anysdk/methodSet.go rename to internal/anysdk/methodSet.go diff --git a/anysdk/methods.go b/internal/anysdk/methods.go similarity index 100% rename from anysdk/methods.go rename to internal/anysdk/methods.go diff --git a/anysdk/mock_http.go b/internal/anysdk/mock_http.go similarity index 100% rename from anysdk/mock_http.go rename to internal/anysdk/mock_http.go diff --git a/anysdk/operationSelector.go b/internal/anysdk/operationSelector.go similarity index 100% rename from anysdk/operationSelector.go rename to internal/anysdk/operationSelector.go diff --git a/anysdk/operation_inverse.go b/internal/anysdk/operation_inverse.go similarity index 100% rename from anysdk/operation_inverse.go rename to internal/anysdk/operation_inverse.go diff --git a/anysdk/operation_store.go b/internal/anysdk/operation_store.go similarity index 100% rename from anysdk/operation_store.go rename to internal/anysdk/operation_store.go diff --git a/anysdk/operation_store_test.go b/internal/anysdk/operation_store_test.go similarity index 100% rename from anysdk/operation_store_test.go rename to internal/anysdk/operation_store_test.go diff --git a/anysdk/pagination.go b/internal/anysdk/pagination.go similarity index 100% rename from anysdk/pagination.go rename to internal/anysdk/pagination.go diff --git a/anysdk/param_stream.go b/internal/anysdk/param_stream.go similarity index 100% rename from anysdk/param_stream.go rename to internal/anysdk/param_stream.go diff --git a/anysdk/params.go b/internal/anysdk/params.go similarity index 100% rename from anysdk/params.go rename to internal/anysdk/params.go diff --git a/anysdk/provider.go b/internal/anysdk/provider.go similarity index 100% rename from anysdk/provider.go rename to internal/anysdk/provider.go diff --git a/anysdk/providerService.go b/internal/anysdk/providerService.go similarity index 100% rename from anysdk/providerService.go rename to internal/anysdk/providerService.go diff --git a/anysdk/query_param_pushdown.go b/internal/anysdk/query_param_pushdown.go similarity index 95% rename from anysdk/query_param_pushdown.go rename to internal/anysdk/query_param_pushdown.go index c288412..1e5b494 100644 --- a/anysdk/query_param_pushdown.go +++ b/internal/anysdk/query_param_pushdown.go @@ -8,18 +8,18 @@ import ( // OData default values const ( - ODataDialect = "odata" - CustomDialect = "custom" - DefaultSelectParamName = "$select" - DefaultSelectDelimiter = "," - DefaultFilterParamName = "$filter" - DefaultFilterSyntax = "odata" - DefaultOrderByParamName = "$orderby" - DefaultOrderBySyntax = "odata" - DefaultTopParamName = "$top" - DefaultCountParamName = "$count" - DefaultCountParamValue = "true" - DefaultCountResponseKey = "@odata.count" + ODataDialect = "odata" + CustomDialect = "custom" + DefaultSelectParamName = "$select" + DefaultSelectDelimiter = "," + DefaultFilterParamName = "$filter" + DefaultFilterSyntax = "odata" + DefaultOrderByParamName = "$orderby" + DefaultOrderBySyntax = "odata" + DefaultTopParamName = "$top" + DefaultCountParamName = "$count" + DefaultCountParamValue = "true" + DefaultCountResponseKey = "@odata.count" ) var ( diff --git a/anysdk/query_param_pushdown_test.go b/internal/anysdk/query_param_pushdown_test.go similarity index 96% rename from anysdk/query_param_pushdown_test.go rename to internal/anysdk/query_param_pushdown_test.go index 1073066..61ce57e 100644 --- a/anysdk/query_param_pushdown_test.go +++ b/internal/anysdk/query_param_pushdown_test.go @@ -3,7 +3,7 @@ package anysdk_test import ( "testing" - . "github.com/stackql/any-sdk/anysdk" + . "github.com/stackql/any-sdk/internal/anysdk" "gopkg.in/yaml.v3" "gotest.tools/assert" @@ -137,9 +137,9 @@ func TestODataFullConfig(t *testing.T) { t.Fatalf("TestODataFullConfig failed: expected count pushdown to exist") } assert.Equal(t, countPD.GetDialect(), "odata") - assert.Equal(t, countPD.GetParamName(), "$count") // OData default - assert.Equal(t, countPD.GetParamValue(), "true") // OData default - assert.Equal(t, countPD.GetResponseKey(), "@odata.count") // OData default + assert.Equal(t, countPD.GetParamName(), "$count") // OData default + assert.Equal(t, countPD.GetParamValue(), "true") // OData default + assert.Equal(t, countPD.GetResponseKey(), "@odata.count") // OData default t.Logf("TestODataFullConfig passed") } diff --git a/anysdk/refs.go b/internal/anysdk/refs.go similarity index 100% rename from anysdk/refs.go rename to internal/anysdk/refs.go diff --git a/anysdk/registry.go b/internal/anysdk/registry.go similarity index 100% rename from anysdk/registry.go rename to internal/anysdk/registry.go diff --git a/anysdk/registry_test.go b/internal/anysdk/registry_test.go similarity index 99% rename from anysdk/registry_test.go rename to internal/anysdk/registry_test.go index 59cbeed..2356603 100644 --- a/anysdk/registry_test.go +++ b/internal/anysdk/registry_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - . "github.com/stackql/any-sdk/anysdk" + . "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/fileutil" "gotest.tools/assert" diff --git a/anysdk/request.go b/internal/anysdk/request.go similarity index 100% rename from anysdk/request.go rename to internal/anysdk/request.go diff --git a/anysdk/request_test.go b/internal/anysdk/request_test.go similarity index 100% rename from anysdk/request_test.go rename to internal/anysdk/request_test.go diff --git a/anysdk/resource.go b/internal/anysdk/resource.go similarity index 100% rename from anysdk/resource.go rename to internal/anysdk/resource.go diff --git a/anysdk/resourceRegister.go b/internal/anysdk/resourceRegister.go similarity index 100% rename from anysdk/resourceRegister.go rename to internal/anysdk/resourceRegister.go diff --git a/anysdk/schema.go b/internal/anysdk/schema.go similarity index 100% rename from anysdk/schema.go rename to internal/anysdk/schema.go diff --git a/anysdk/server.go b/internal/anysdk/server.go similarity index 100% rename from anysdk/server.go rename to internal/anysdk/server.go diff --git a/anysdk/service.go b/internal/anysdk/service.go similarity index 100% rename from anysdk/service.go rename to internal/anysdk/service.go diff --git a/anysdk/shims.go b/internal/anysdk/shims.go similarity index 100% rename from anysdk/shims.go rename to internal/anysdk/shims.go diff --git a/anysdk/sql_external.go b/internal/anysdk/sql_external.go similarity index 100% rename from anysdk/sql_external.go rename to internal/anysdk/sql_external.go diff --git a/anysdk/sqltypeutil.go b/internal/anysdk/sqltypeutil.go similarity index 100% rename from anysdk/sqltypeutil.go rename to internal/anysdk/sqltypeutil.go diff --git a/anysdk/suffix.go b/internal/anysdk/suffix.go similarity index 100% rename from anysdk/suffix.go rename to internal/anysdk/suffix.go diff --git a/anysdk/table.go b/internal/anysdk/table.go similarity index 100% rename from anysdk/table.go rename to internal/anysdk/table.go diff --git a/anysdk/testdata/dummy_credentials/dummy-sa-key.json b/internal/anysdk/testdata/dummy_credentials/dummy-sa-key.json similarity index 100% rename from anysdk/testdata/dummy_credentials/dummy-sa-key.json rename to internal/anysdk/testdata/dummy_credentials/dummy-sa-key.json diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/acmpca.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/acmpca.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/acmpca.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/acmpca.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/ce_native.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/ce_native.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/ce_native.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/ce_native.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/cloud_control.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/cloud_control.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/cloud_control.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/cloud_control.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/cloud_control_legacy.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/cloud_control_legacy.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/cloud_control_legacy.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/cloud_control_legacy.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/cloudhsm.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/cloudhsm.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/cloudhsm.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/cloudhsm.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/cloudwatch.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/cloudwatch.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/cloudwatch.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/cloudwatch.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/ec2.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/ec2.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/ec2.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/ec2.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/ec2_nextgen.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/ec2_nextgen.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/ec2_nextgen.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/ec2_nextgen.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/iam.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/iam.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/iam.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/iam.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/pseudo_s3.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/pseudo_s3.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/pseudo_s3.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/pseudo_s3.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/route53.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/route53.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/route53.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/route53.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/s3.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/s3.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/s3.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/s3.yaml diff --git a/anysdk/testdata/registry/src/aws/v0.1.0/services/transfer.yaml b/internal/anysdk/testdata/registry/src/aws/v0.1.0/services/transfer.yaml similarity index 100% rename from anysdk/testdata/registry/src/aws/v0.1.0/services/transfer.yaml rename to internal/anysdk/testdata/registry/src/aws/v0.1.0/services/transfer.yaml diff --git a/anysdk/testdata/registry/src/azure/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/azure/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/azure/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/azure/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/azure/v0.1.0/services/billing.yaml b/internal/anysdk/testdata/registry/src/azure/v0.1.0/services/billing.yaml similarity index 100% rename from anysdk/testdata/registry/src/azure/v0.1.0/services/billing.yaml rename to internal/anysdk/testdata/registry/src/azure/v0.1.0/services/billing.yaml diff --git a/anysdk/testdata/registry/src/azure/v0.1.0/services/compute.yaml b/internal/anysdk/testdata/registry/src/azure/v0.1.0/services/compute.yaml similarity index 100% rename from anysdk/testdata/registry/src/azure/v0.1.0/services/compute.yaml rename to internal/anysdk/testdata/registry/src/azure/v0.1.0/services/compute.yaml diff --git a/anysdk/testdata/registry/src/azure/v0.1.0/services/consumption.yaml b/internal/anysdk/testdata/registry/src/azure/v0.1.0/services/consumption.yaml similarity index 100% rename from anysdk/testdata/registry/src/azure/v0.1.0/services/consumption.yaml rename to internal/anysdk/testdata/registry/src/azure/v0.1.0/services/consumption.yaml diff --git a/anysdk/testdata/registry/src/azure/v0.1.0/services/dev_center.yaml b/internal/anysdk/testdata/registry/src/azure/v0.1.0/services/dev_center.yaml similarity index 100% rename from anysdk/testdata/registry/src/azure/v0.1.0/services/dev_center.yaml rename to internal/anysdk/testdata/registry/src/azure/v0.1.0/services/dev_center.yaml diff --git a/anysdk/testdata/registry/src/azure/v0.1.0/services/key_vault.yaml b/internal/anysdk/testdata/registry/src/azure/v0.1.0/services/key_vault.yaml similarity index 100% rename from anysdk/testdata/registry/src/azure/v0.1.0/services/key_vault.yaml rename to internal/anysdk/testdata/registry/src/azure/v0.1.0/services/key_vault.yaml diff --git a/anysdk/testdata/registry/src/azure/v0.1.0/services/network.yaml b/internal/anysdk/testdata/registry/src/azure/v0.1.0/services/network.yaml similarity index 100% rename from anysdk/testdata/registry/src/azure/v0.1.0/services/network.yaml rename to internal/anysdk/testdata/registry/src/azure/v0.1.0/services/network.yaml diff --git a/anysdk/testdata/registry/src/azuread/v00.00.00000/provider.yaml b/internal/anysdk/testdata/registry/src/azuread/v00.00.00000/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/azuread/v00.00.00000/provider.yaml rename to internal/anysdk/testdata/registry/src/azuread/v00.00.00000/provider.yaml diff --git a/anysdk/testdata/registry/src/azuread/v00.00.00000/services/applications.yaml b/internal/anysdk/testdata/registry/src/azuread/v00.00.00000/services/applications.yaml similarity index 100% rename from anysdk/testdata/registry/src/azuread/v00.00.00000/services/applications.yaml rename to internal/anysdk/testdata/registry/src/azuread/v00.00.00000/services/applications.yaml diff --git a/anysdk/testdata/registry/src/azuread/v00.00.00000/services/groups.yaml b/internal/anysdk/testdata/registry/src/azuread/v00.00.00000/services/groups.yaml similarity index 100% rename from anysdk/testdata/registry/src/azuread/v00.00.00000/services/groups.yaml rename to internal/anysdk/testdata/registry/src/azuread/v00.00.00000/services/groups.yaml diff --git a/anysdk/testdata/registry/src/azuread/v00.00.00000/services/service_principals.yaml b/internal/anysdk/testdata/registry/src/azuread/v00.00.00000/services/service_principals.yaml similarity index 100% rename from anysdk/testdata/registry/src/azuread/v00.00.00000/services/service_principals.yaml rename to internal/anysdk/testdata/registry/src/azuread/v00.00.00000/services/service_principals.yaml diff --git a/anysdk/testdata/registry/src/azuread/v00.00.00000/services/users.yaml b/internal/anysdk/testdata/registry/src/azuread/v00.00.00000/services/users.yaml similarity index 100% rename from anysdk/testdata/registry/src/azuread/v00.00.00000/services/users.yaml rename to internal/anysdk/testdata/registry/src/azuread/v00.00.00000/services/users.yaml diff --git a/anysdk/testdata/registry/src/digitalocean/v23.03.00127/provider.yaml b/internal/anysdk/testdata/registry/src/digitalocean/v23.03.00127/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/digitalocean/v23.03.00127/provider.yaml rename to internal/anysdk/testdata/registry/src/digitalocean/v23.03.00127/provider.yaml diff --git a/anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/compute.yaml b/internal/anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/compute.yaml similarity index 100% rename from anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/compute.yaml rename to internal/anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/compute.yaml diff --git a/anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/droplets.yaml b/internal/anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/droplets.yaml similarity index 100% rename from anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/droplets.yaml rename to internal/anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/droplets.yaml diff --git a/anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/sizes.yaml b/internal/anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/sizes.yaml similarity index 100% rename from anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/sizes.yaml rename to internal/anysdk/testdata/registry/src/digitalocean/v23.03.00127/services/sizes.yaml diff --git a/anysdk/testdata/registry/src/github/v0.3.1/provider.yaml b/internal/anysdk/testdata/registry/src/github/v0.3.1/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/provider.yaml rename to internal/anysdk/testdata/registry/src/github/v0.3.1/provider.yaml diff --git a/anysdk/testdata/registry/src/github/v0.3.1/provider.yaml.sig b/internal/anysdk/testdata/registry/src/github/v0.3.1/provider.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/provider.yaml.sig rename to internal/anysdk/testdata/registry/src/github/v0.3.1/provider.yaml.sig diff --git a/anysdk/testdata/registry/src/github/v0.3.1/services/activity.yaml b/internal/anysdk/testdata/registry/src/github/v0.3.1/services/activity.yaml similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/services/activity.yaml rename to internal/anysdk/testdata/registry/src/github/v0.3.1/services/activity.yaml diff --git a/anysdk/testdata/registry/src/github/v0.3.1/services/activity.yaml.sig b/internal/anysdk/testdata/registry/src/github/v0.3.1/services/activity.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/services/activity.yaml.sig rename to internal/anysdk/testdata/registry/src/github/v0.3.1/services/activity.yaml.sig diff --git a/anysdk/testdata/registry/src/github/v0.3.1/services/orgs.yaml b/internal/anysdk/testdata/registry/src/github/v0.3.1/services/orgs.yaml similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/services/orgs.yaml rename to internal/anysdk/testdata/registry/src/github/v0.3.1/services/orgs.yaml diff --git a/anysdk/testdata/registry/src/github/v0.3.1/services/orgs.yaml.sig b/internal/anysdk/testdata/registry/src/github/v0.3.1/services/orgs.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/services/orgs.yaml.sig rename to internal/anysdk/testdata/registry/src/github/v0.3.1/services/orgs.yaml.sig diff --git a/anysdk/testdata/registry/src/github/v0.3.1/services/repos.yaml b/internal/anysdk/testdata/registry/src/github/v0.3.1/services/repos.yaml similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/services/repos.yaml rename to internal/anysdk/testdata/registry/src/github/v0.3.1/services/repos.yaml diff --git a/anysdk/testdata/registry/src/github/v0.3.1/services/repos.yaml.sig b/internal/anysdk/testdata/registry/src/github/v0.3.1/services/repos.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/services/repos.yaml.sig rename to internal/anysdk/testdata/registry/src/github/v0.3.1/services/repos.yaml.sig diff --git a/anysdk/testdata/registry/src/github/v0.3.1/services/scim.yaml b/internal/anysdk/testdata/registry/src/github/v0.3.1/services/scim.yaml similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/services/scim.yaml rename to internal/anysdk/testdata/registry/src/github/v0.3.1/services/scim.yaml diff --git a/anysdk/testdata/registry/src/github/v0.3.1/services/users.yaml b/internal/anysdk/testdata/registry/src/github/v0.3.1/services/users.yaml similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/services/users.yaml rename to internal/anysdk/testdata/registry/src/github/v0.3.1/services/users.yaml diff --git a/anysdk/testdata/registry/src/github/v0.3.1/services/users.yaml.sig b/internal/anysdk/testdata/registry/src/github/v0.3.1/services/users.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/github/v0.3.1/services/users.yaml.sig rename to internal/anysdk/testdata/registry/src/github/v0.3.1/services/users.yaml.sig diff --git a/anysdk/testdata/registry/src/googleadmin/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/googleadmin/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleadmin/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/googleadmin/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/googleadmin/v0.1.0/services/admin-directory.yaml b/internal/anysdk/testdata/registry/src/googleadmin/v0.1.0/services/admin-directory.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleadmin/v0.1.0/services/admin-directory.yaml rename to internal/anysdk/testdata/registry/src/googleadmin/v0.1.0/services/admin-directory.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/provider.yaml.sig diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/resources/compute-v1.yaml.sig diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-disks-v1.yaml.sig diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services-split/compute/compute-v1.yaml.sig diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/bigquery-v2.yaml.sig diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudasset.yaml.sig diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudkms-v1.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudkms-v1.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudkms-v1.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudkms-v1.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/cloudresourcemanager-v3.yaml.sig diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/container-v1.yaml.sig diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/iam.yaml.sig diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml diff --git a/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml.sig b/internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml.sig rename to internal/anysdk/testdata/registry/src/googleapis.com/v0.1.2/services/storage-v1.yaml.sig diff --git a/anysdk/testdata/registry/src/k8s/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/k8s/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/k8s/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/k8s/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/k8s/v0.1.0/services/core_v1.yaml b/internal/anysdk/testdata/registry/src/k8s/v0.1.0/services/core_v1.yaml similarity index 100% rename from anysdk/testdata/registry/src/k8s/v0.1.0/services/core_v1.yaml rename to internal/anysdk/testdata/registry/src/k8s/v0.1.0/services/core_v1.yaml diff --git a/anysdk/testdata/registry/src/local_openssl/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/local_openssl/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/local_openssl/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/local_openssl/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/local_openssl/v0.1.0/services/keys.yaml b/internal/anysdk/testdata/registry/src/local_openssl/v0.1.0/services/keys.yaml similarity index 100% rename from anysdk/testdata/registry/src/local_openssl/v0.1.0/services/keys.yaml rename to internal/anysdk/testdata/registry/src/local_openssl/v0.1.0/services/keys.yaml diff --git a/anysdk/testdata/registry/src/okta/v1/provider.yaml b/internal/anysdk/testdata/registry/src/okta/v1/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/okta/v1/provider.yaml rename to internal/anysdk/testdata/registry/src/okta/v1/provider.yaml diff --git a/anysdk/testdata/registry/src/okta/v1/provider.yaml.sig b/internal/anysdk/testdata/registry/src/okta/v1/provider.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/okta/v1/provider.yaml.sig rename to internal/anysdk/testdata/registry/src/okta/v1/provider.yaml.sig diff --git a/anysdk/testdata/registry/src/okta/v1/services/Application.yaml b/internal/anysdk/testdata/registry/src/okta/v1/services/Application.yaml similarity index 100% rename from anysdk/testdata/registry/src/okta/v1/services/Application.yaml rename to internal/anysdk/testdata/registry/src/okta/v1/services/Application.yaml diff --git a/anysdk/testdata/registry/src/okta/v1/services/Application.yaml.sig b/internal/anysdk/testdata/registry/src/okta/v1/services/Application.yaml.sig similarity index 100% rename from anysdk/testdata/registry/src/okta/v1/services/Application.yaml.sig rename to internal/anysdk/testdata/registry/src/okta/v1/services/Application.yaml.sig diff --git a/anysdk/testdata/registry/src/okta/v1/services/User.yaml b/internal/anysdk/testdata/registry/src/okta/v1/services/User.yaml similarity index 100% rename from anysdk/testdata/registry/src/okta/v1/services/User.yaml rename to internal/anysdk/testdata/registry/src/okta/v1/services/User.yaml diff --git a/anysdk/testdata/registry/src/pgi/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/pgi/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/pgi/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/pgi/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/sni/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/sni/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/sni/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/sni/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/services/collectors.yaml b/internal/anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/services/collectors.yaml similarity index 100% rename from anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/services/collectors.yaml rename to internal/anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/services/collectors.yaml diff --git a/anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/services/provisioning.yaml b/internal/anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/services/provisioning.yaml similarity index 100% rename from anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/services/provisioning.yaml rename to internal/anysdk/testdata/registry/src/stackql_auth_testing/v0.1.0/services/provisioning.yaml diff --git a/anysdk/testdata/registry/src/stackql_oauth2_testing/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/stackql_oauth2_testing/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/stackql_oauth2_testing/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/stackql_oauth2_testing/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/stackql_oauth2_testing/v0.1.0/services/collectors.yaml b/internal/anysdk/testdata/registry/src/stackql_oauth2_testing/v0.1.0/services/collectors.yaml similarity index 100% rename from anysdk/testdata/registry/src/stackql_oauth2_testing/v0.1.0/services/collectors.yaml rename to internal/anysdk/testdata/registry/src/stackql_oauth2_testing/v0.1.0/services/collectors.yaml diff --git a/anysdk/testdata/registry/src/stackql_test/v00.00.00000/provider.yaml b/internal/anysdk/testdata/registry/src/stackql_test/v00.00.00000/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/stackql_test/v00.00.00000/provider.yaml rename to internal/anysdk/testdata/registry/src/stackql_test/v00.00.00000/provider.yaml diff --git a/anysdk/testdata/registry/src/stackql_test/v00.00.00000/services/totally_contrived.yaml b/internal/anysdk/testdata/registry/src/stackql_test/v00.00.00000/services/totally_contrived.yaml similarity index 100% rename from anysdk/testdata/registry/src/stackql_test/v00.00.00000/services/totally_contrived.yaml rename to internal/anysdk/testdata/registry/src/stackql_test/v00.00.00000/services/totally_contrived.yaml diff --git a/anysdk/testdata/registry/src/stackql_test/v00.00.00000/services/users.yaml b/internal/anysdk/testdata/registry/src/stackql_test/v00.00.00000/services/users.yaml similarity index 100% rename from anysdk/testdata/registry/src/stackql_test/v00.00.00000/services/users.yaml rename to internal/anysdk/testdata/registry/src/stackql_test/v00.00.00000/services/users.yaml diff --git a/anysdk/testdata/registry/src/sumologic/v0.1.0/provider.yaml b/internal/anysdk/testdata/registry/src/sumologic/v0.1.0/provider.yaml similarity index 100% rename from anysdk/testdata/registry/src/sumologic/v0.1.0/provider.yaml rename to internal/anysdk/testdata/registry/src/sumologic/v0.1.0/provider.yaml diff --git a/anysdk/testdata/registry/src/sumologic/v0.1.0/services/collectors.yaml b/internal/anysdk/testdata/registry/src/sumologic/v0.1.0/services/collectors.yaml similarity index 100% rename from anysdk/testdata/registry/src/sumologic/v0.1.0/services/collectors.yaml rename to internal/anysdk/testdata/registry/src/sumologic/v0.1.0/services/collectors.yaml diff --git a/anysdk/testdata/registry/src/sumologic/v0.1.0/services/users.yaml b/internal/anysdk/testdata/registry/src/sumologic/v0.1.0/services/users.yaml similarity index 100% rename from anysdk/testdata/registry/src/sumologic/v0.1.0/services/users.yaml rename to internal/anysdk/testdata/registry/src/sumologic/v0.1.0/services/users.yaml diff --git a/anysdk/token_semantic.go b/internal/anysdk/token_semantic.go similarity index 100% rename from anysdk/token_semantic.go rename to internal/anysdk/token_semantic.go diff --git a/anysdk/transform.go b/internal/anysdk/transform.go similarity index 100% rename from anysdk/transform.go rename to internal/anysdk/transform.go diff --git a/anysdk/variations.go b/internal/anysdk/variations.go similarity index 100% rename from anysdk/variations.go rename to internal/anysdk/variations.go diff --git a/anysdk/view.go b/internal/anysdk/view.go similarity index 100% rename from anysdk/view.go rename to internal/anysdk/view.go diff --git a/anysdk/view_test.go b/internal/anysdk/view_test.go similarity index 97% rename from anysdk/view_test.go rename to internal/anysdk/view_test.go index df3786c..25a1b54 100644 --- a/anysdk/view_test.go +++ b/internal/anysdk/view_test.go @@ -3,7 +3,7 @@ package anysdk_test import ( "testing" - . "github.com/stackql/any-sdk/anysdk" + . "github.com/stackql/any-sdk/internal/anysdk" "gopkg.in/yaml.v3" "gotest.tools/assert" diff --git a/public/discovery/discovery.go b/public/discovery/discovery.go index b972225..6f6e326 100644 --- a/public/discovery/discovery.go +++ b/public/discovery/discovery.go @@ -3,7 +3,7 @@ package discovery import ( "fmt" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/docparser" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/public/persistence" diff --git a/public/discovery/interrogator.go b/public/discovery/interrogator.go index 7ff7539..1821da3 100644 --- a/public/discovery/interrogator.go +++ b/public/discovery/interrogator.go @@ -3,7 +3,7 @@ package discovery import ( "sort" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" ) type Interrogator interface { diff --git a/public/discovery/shallow_discovery_test.go b/public/discovery/shallow_discovery_test.go index f16a412..7a51c70 100644 --- a/public/discovery/shallow_discovery_test.go +++ b/public/discovery/shallow_discovery_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/db/sqlcontrol" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/public/discovery" diff --git a/public/discovery/static_analyzer.go b/public/discovery/static_analyzer.go index 086f845..2493b31 100644 --- a/public/discovery/static_analyzer.go +++ b/public/discovery/static_analyzer.go @@ -6,7 +6,7 @@ import ( "strings" "sync" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/db/sqlcontrol" "github.com/stackql/any-sdk/pkg/docval" diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 5f92130..63a1d9a 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -5,7 +5,7 @@ import ( "net/http" "github.com/sirupsen/logrus" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/internaldto" diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index a2064e0..feb2b35 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -14,7 +14,7 @@ import ( "github.com/getkin/kin-openapi/openapi3" "github.com/lib/pq/oid" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/constants" "github.com/stackql/any-sdk/pkg/httpelement" diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 20a5ab1..6c9ce33 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -15,7 +15,7 @@ import ( "github.com/getkin/kin-openapi/openapi3" "github.com/lib/pq/oid" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/auth_util" "github.com/stackql/any-sdk/pkg/authsurface" "github.com/stackql/any-sdk/pkg/client" diff --git a/public/persistence/persistence_system.go b/public/persistence/persistence_system.go index 6da1a28..96ce512 100644 --- a/public/persistence/persistence_system.go +++ b/public/persistence/persistence_system.go @@ -1,7 +1,7 @@ package persistence import ( - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/constants" "github.com/stackql/any-sdk/pkg/name_mangle" "github.com/stackql/any-sdk/public/sqlengine" diff --git a/public/providerinvokers/anysdkhttp/invoker.go b/public/providerinvokers/anysdkhttp/invoker.go index f0d215a..4bb56ab 100644 --- a/public/providerinvokers/anysdkhttp/invoker.go +++ b/public/providerinvokers/anysdkhttp/invoker.go @@ -7,7 +7,7 @@ import ( "net/http" "strconv" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/pkg/httpelement" diff --git a/public/radix_tree_address_space/address_space.go b/public/radix_tree_address_space/address_space.go index a2a70ed..29e5f02 100644 --- a/public/radix_tree_address_space/address_space.go +++ b/public/radix_tree_address_space/address_space.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/getkin/kin-openapi/openapi3" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/client" "github.com/stackql/any-sdk/pkg/latetranslator" "github.com/stackql/any-sdk/pkg/media" diff --git a/public/radix_tree_address_space/address_space_test.go b/public/radix_tree_address_space/address_space_test.go index b9ad6ba..075af49 100644 --- a/public/radix_tree_address_space/address_space_test.go +++ b/public/radix_tree_address_space/address_space_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/dto" "github.com/stackql/any-sdk/public/discovery" "github.com/stackql/any-sdk/public/radix_tree_address_space" diff --git a/public/radix_tree_address_space/legacy_address_space.go b/public/radix_tree_address_space/legacy_address_space.go index a1375ea..57ed88f 100644 --- a/public/radix_tree_address_space/legacy_address_space.go +++ b/public/radix_tree_address_space/legacy_address_space.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" "github.com/stackql/any-sdk/pkg/media" ) diff --git a/public/rdbms_system/rdbms_system.go b/public/rdbms_system/rdbms_system.go index 4f7d14c..78b48e1 100644 --- a/public/rdbms_system/rdbms_system.go +++ b/public/rdbms_system/rdbms_system.go @@ -1,7 +1,7 @@ package rdbms_system import ( - "github.com/stackql/any-sdk/anysdk" + "github.com/stackql/any-sdk/internal/anysdk" ) type RDBMSSystem interface { From 140cd543f31ae5d0a128cb9c7e3b495ae899466e Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 21:44:19 +1100 Subject: [PATCH 63/64] internalized --- internal/anysdk/service.go | 9 +++++++++ public/formulation/interfaces.go | 1 + public/formulation/wrappers.go | 10 ++++++++++ 3 files changed, 20 insertions(+) diff --git a/internal/anysdk/service.go b/internal/anysdk/service.go index a0db3d9..0dfcff8 100644 --- a/internal/anysdk/service.go +++ b/internal/anysdk/service.go @@ -23,6 +23,7 @@ type Service interface { GetName() string GetResource(resourceName string) (Resource, error) GetSchema(key string) (Schema, error) + IsOpenapi() bool getT() *openapi3.T } @@ -58,6 +59,10 @@ type localTemplatedService struct { Provider Provider `json:"-" yaml:"-"` // upwards traversal } +func (sv *localTemplatedService) IsOpenapi() bool { + return false +} + func (sv *localTemplatedService) GetT() *openapi3.T { return sv.OpenapiSvc } @@ -129,6 +134,10 @@ type standardService struct { Provider Provider `json:"-" yaml:"-"` // upwards traversal } +func (sv *standardService) IsOpenapi() bool { + return true +} + func (sv *standardService) getPath(k string) (*openapi3.PathItem, bool) { rv, ok := sv.T.Paths[k] return rv, ok diff --git a/public/formulation/interfaces.go b/public/formulation/interfaces.go index feb2b35..ed85763 100644 --- a/public/formulation/interfaces.go +++ b/public/formulation/interfaces.go @@ -376,6 +376,7 @@ type Service interface { GetSchema(key string) (Schema, error) GetServers() (openapi3.Servers, bool) GetName() string + IsOpenapi() bool unwrap() anysdk.Service } diff --git a/public/formulation/wrappers.go b/public/formulation/wrappers.go index 6c9ce33..84a95ed 100644 --- a/public/formulation/wrappers.go +++ b/public/formulation/wrappers.go @@ -1367,6 +1367,11 @@ func (w *wrappedService) GetName() string { return r0 } +func (w *wrappedService) IsOpenapi() bool { + r0 := w.inner.IsOpenapi() + return r0 +} + func (w *wrappedService) unwrap() anysdk.Service { return w.inner } @@ -2563,6 +2568,11 @@ type wrappedOpenAPIService struct { inner anysdk.OpenAPIService } +func (w *wrappedOpenAPIService) IsOpenapi() bool { + r0 := w.inner.IsOpenapi() + return r0 +} + func (w *wrappedOpenAPIService) GetName() string { r0 := w.inner.GetName() return r0 From 9b140873a9298c62c3c7bfac1407ad20262a970b Mon Sep 17 00:00:00 2001 From: General Kroll Date: Sun, 22 Feb 2026 22:21:53 +1100 Subject: [PATCH 64/64] internalized --- public/formulation/formulation.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/formulation/formulation.go b/public/formulation/formulation.go index 63a1d9a..a6c5d3d 100644 --- a/public/formulation/formulation.go +++ b/public/formulation/formulation.go @@ -69,7 +69,11 @@ type PersistenceSystem interface { } func NewColumnDescriptor(alias string, name string, qualifier string, decoratedCol string, node sqlparser.SQLNode, schema Schema, val *sqlparser.SQLVal) ColumnDescriptor { - rv := anysdk.NewColumnDescriptor(alias, name, qualifier, decoratedCol, node, schema.unwrap(), val) + var unwrappedSchema anysdk.Schema + if schema != nil { + unwrappedSchema = schema.unwrap() + } + rv := anysdk.NewColumnDescriptor(alias, name, qualifier, decoratedCol, node, unwrappedSchema, val) return newColDescriptorFromAnySdkColumnDescriptor(rv) }