Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PreambleTemplate, _ = template.New("preambleTemplate").Parse(preambleTemplateContent)
SchemaTemplate, _ = template.New("schemaTemplate").Parse(schemaTemplateContent)
ToSchemaMapperTemplate, _ = template.New("toSchemaMapperTemplate").Funcs(genhelpers.BuildTemplateFuncMap(
genhelpers.FirstLetterLowercase,
genhelpers.RunMapper,
)).Parse(toSchemaMapperTemplateContent)
AllTemplates = []*template.Template{PreambleTemplate, SchemaTemplate, ToSchemaMapperTemplate}
)
View Source
var AdditionalStructs = []any{ sdk.SecurityIntegrationProperty{}, }
TODO [SNOW-1501905]: currently all this structs have the "Show" added to the schema, while these are not show outputs TODO [SNOW-1501905]: temporary struct, may be refactored with addition to generation of describe results; for now used to some structs needing a schema representation
View Source
var SdkShowResultStructs = []any{ sdk.Account{}, sdk.Alert{}, sdk.ApiIntegration{}, sdk.ApplicationPackage{}, sdk.ApplicationRole{}, sdk.Application{}, sdk.DatabaseRole{}, sdk.Database{}, sdk.DynamicTable{}, sdk.EventTable{}, sdk.ExternalFunction{}, sdk.ExternalTable{}, sdk.FailoverGroup{}, sdk.FileFormat{}, sdk.Function{}, sdk.Grant{}, sdk.ManagedAccount{}, sdk.MaskingPolicy{}, sdk.MaterializedView{}, sdk.NetworkPolicy{}, sdk.NetworkRule{}, sdk.NotificationIntegration{}, sdk.Parameter{}, sdk.PasswordPolicy{}, sdk.Pipe{}, sdk.PolicyReference{}, sdk.Procedure{}, sdk.ReplicationAccount{}, sdk.ReplicationDatabase{}, sdk.Region{}, sdk.ResourceMonitor{}, sdk.Role{}, sdk.RowAccessPolicy{}, sdk.Schema{}, sdk.SecurityIntegration{}, sdk.Sequence{}, sdk.SessionPolicy{}, sdk.Share{}, sdk.Stage{}, sdk.StorageIntegration{}, sdk.Streamlit{}, sdk.Stream{}, sdk.Table{}, sdk.Tag{}, sdk.Task{}, sdk.User{}, sdk.View{}, sdk.Warehouse{}, }
Functions ¶
This section is empty.
Types ¶
type SchemaField ¶
type SchemaField struct { Name string SchemaType schema.ValueType OriginalName string IsOriginalTypePointer bool Mapper genhelpers.Mapper }
func MapToSchemaField ¶
func MapToSchemaField(field genhelpers.Field) SchemaField
TODO [SNOW-1501905]: handle other basic type variants TODO [SNOW-1501905]: handle any other interface (error) TODO [SNOW-1501905]: handle slices TODO [SNOW-1501905]: handle structs (chosen one or all)
type ShowResultSchemaModel ¶
type ShowResultSchemaModel struct { Name string SdkType string SchemaFields []SchemaField }
func ModelFromStructDetails ¶
func ModelFromStructDetails(sdkStruct genhelpers.StructDetails) ShowResultSchemaModel
func (ShowResultSchemaModel) SomeFunc ¶ added in v0.94.0
func (m ShowResultSchemaModel) SomeFunc()
Click to show internal directories.
Click to hide internal directories.