objects

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageTypeExtension = 79396128
	FieldTypeExtension   = 79396128
)

Variables

View Source
var ErrNotSupported = errors.New("not supported")
View Source
var ProtoExtends = protoExtends{
	`extend google.protobuf.MessageOptions {
  string oracall_object_type = 79396128;
}`,
	`extend google.protobuf.FieldOptions {
  string oracall_field_type = 79396128;
}`,
}

a number between 1 and 536,870,911 with the following restrictions: The given number must be unique among all fields for that message. Field numbers 19,000 to 19,999 are reserved for the Protocol Buffers implementation. The protocol buffer compiler will complain if you use one of these reserved field numbers in your message.

View Source
var ProtoImports = protoImports{
	"google/protobuf/timestamp.proto",
	"google/protobuf/descriptor.proto",
}

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Type *Type
	Name string
}

type Type

type Type struct {
	Elem *Type
	// SELECT A.package_name, A.type_name, A.typecode, B.attr_type_owner, B.attr_type_name, B.attr_type_package, B.length, B.precision, B.scale, NULL AS index_by
	Owner, Package, Name        string
	TypeCode, CollType, IndexBy string
	Arguments                   []Argument
	Length, Precision, Scale    sql.NullInt32
}

func (Type) IsColl

func (t Type) IsColl() bool

func (Type) OraType

func (t Type) OraType() string

func (Type) ProtoMessageName

func (t Type) ProtoMessageName() string

func (Type) String

func (t Type) String() string

func (*Type) Valid

func (t *Type) Valid() bool

func (Type) WriteOraToFrom

func (t Type) WriteOraToFrom(ctx context.Context, w io.Writer) error

func (Type) WriteProtobufMessageType

func (t Type) WriteProtobufMessageType(ctx context.Context, w io.Writer) error

type Types

type Types struct {
	// contains filtered or unexported fields
}

func NewTypes

func NewTypes(ctx context.Context, db querier) (*Types, error)

func (*Types) Get

func (tt *Types) Get(ctx context.Context, name string) (*Type, error)

func (*Types) Names

func (tt *Types) Names(ctx context.Context, only ...string) ([]string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳