pgdb

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DynamoKeyTypePartition dynamoKeyType = 1
	DynamoKeyTypeSort      dynamoKeyType = 2
)

Variables

This section is empty.

Functions

func GetFieldVectorShape added in v0.3.9

func GetFieldVectorShape(field pgs.Field) (pgs.Field, pgs.Field, error)

Checks if the field is a valid vector field shape and if so returns the field data enum, float array, and vector size. Otherwise panics.

func New

func New() pgs.Module

Types

type FieldConverter added in v0.2.0

type FieldConverter interface {
	GoType() (string, error)
	CodeForValue() (string, error)
	VarForValue() (string, error)
	VarForAppend() (string, error)
	EnumForValue() (string, error)
}

type ImportAlias

type ImportAlias struct {
	Import string
	Alias  string
}

type Module

type Module struct {
	*pgs.ModuleBase
	// contains filtered or unexported fields
}

func (*Module) Execute

func (m *Module) Execute(targets map[string]pgs.File, pkgs map[string]pgs.Package) []pgs.Artifact

func (*Module) InitContext

func (m *Module) InitContext(ctx pgs.BuildContext)

func (*Module) Name

func (m *Module) Name() string

Jump to

Keyboard shortcuts

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