metadatavisitors

package
v0.5.643 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInsertStatement

func ToInsertStatement(
	columns sqlparser.Columns,
	m anysdk.OperationStore,
	svc anysdk.Service,
	extended bool, prettyPrinter,
	placeHolderPrettyPrinter *prettyprint.PrettyPrinter,
	requiredOnly bool,
) (string, error)

Types

type SchemaRequestTemplateVisitor

type SchemaRequestTemplateVisitor struct {
	MaxDepth                 int
	Strategy                 string
	PrettyPrinter            *prettyprint.PrettyPrinter
	PlaceholderPrettyPrinter *prettyprint.PrettyPrinter
	// contains filtered or unexported fields
}

func NewSchemaRequestTemplateVisitor

func NewSchemaRequestTemplateVisitor(
	maxDepth int,
	strategy string,
	prettyPrinter, placeHolderPrettyPrinter *prettyprint.PrettyPrinter,
	requiredOnly bool) *SchemaRequestTemplateVisitor

func (*SchemaRequestTemplateVisitor) RetrieveTemplate

func (sv *SchemaRequestTemplateVisitor) RetrieveTemplate(
	sc anysdk.Schema,
	method anysdk.OperationStore,
	extended bool,
) (map[string]TemplatedProduct, error)

type TemplatedProduct added in v0.5.375

type TemplatedProduct interface {
	GetBody() string
	GetPlaceholder() string
}

func NewTemplatedProduct added in v0.5.375

func NewTemplatedProduct(body, placeholder string) TemplatedProduct

Jump to

Keyboard shortcuts

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