postgres_arrays

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Overview

Package postgres_arrays is a generated protocol buffer package.

It is generated from these files:

postgres_arrays.proto

It has these top-level messages:

Example

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDeleteExample

func DefaultDeleteExample(ctx context.Context, in *Example, db *gorm1.DB) error

func DefaultDeleteExampleSet

func DefaultDeleteExampleSet(ctx context.Context, in []*Example, db *gorm1.DB) error

Types

type Example

type Example struct {
	Id                   string    `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Description          string    `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
	ArrayOfBools         []bool    `protobuf:"varint,20,rep,packed,name=array_of_bools,json=arrayOfBools" json:"array_of_bools,omitempty"`
	ArrayOfFloat64       []float64 `protobuf:"fixed64,30,rep,packed,name=array_of_float64,json=arrayOfFloat64" json:"array_of_float64,omitempty"`
	ArrayOfInt64         []int64   `protobuf:"varint,40,rep,packed,name=array_of_int64,json=arrayOfInt64" json:"array_of_int64,omitempty"`
	ArrayOfString        []string  `protobuf:"bytes,50,rep,name=array_of_string,json=arrayOfString" json:"array_of_string,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func DefaultApplyFieldMaskExample

func DefaultApplyFieldMaskExample(ctx context.Context, patchee *Example, patcher *Example, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*Example, error)

DefaultApplyFieldMaskExample patches an pbObject with patcher according to a field mask.

func DefaultCreateExample

func DefaultCreateExample(ctx context.Context, in *Example, db *gorm1.DB) (*Example, error)

DefaultCreateExample executes a basic gorm create call

func DefaultListExample

func DefaultListExample(ctx context.Context, db *gorm1.DB) ([]*Example, error)

DefaultListExample executes a gorm list call

func DefaultPatchExample

func DefaultPatchExample(ctx context.Context, in *Example, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*Example, error)

DefaultPatchExample executes a basic gorm update call with patch behavior

func DefaultReadExample

func DefaultReadExample(ctx context.Context, in *Example, db *gorm1.DB) (*Example, error)

DefaultReadExample executes a basic gorm read call

func DefaultStrictUpdateExample

func DefaultStrictUpdateExample(ctx context.Context, in *Example, db *gorm1.DB) (*Example, error)

DefaultStrictUpdateExample clears first level 1:many children and then executes a gorm update call

func (*Example) Descriptor

func (*Example) Descriptor() ([]byte, []int)

func (*Example) GetArrayOfBools

func (m *Example) GetArrayOfBools() []bool

func (*Example) GetArrayOfFloat64

func (m *Example) GetArrayOfFloat64() []float64

func (*Example) GetArrayOfInt64

func (m *Example) GetArrayOfInt64() []int64

func (*Example) GetArrayOfString

func (m *Example) GetArrayOfString() []string

func (*Example) GetDescription

func (m *Example) GetDescription() string

func (*Example) GetId

func (m *Example) GetId() string

func (*Example) ProtoMessage

func (*Example) ProtoMessage()

func (*Example) Reset

func (m *Example) Reset()

func (*Example) String

func (m *Example) String() string

func (*Example) ToORM

func (m *Example) ToORM(ctx context.Context) (ExampleORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

func (*Example) XXX_DiscardUnknown

func (m *Example) XXX_DiscardUnknown()

func (*Example) XXX_Marshal

func (m *Example) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Example) XXX_Merge

func (dst *Example) XXX_Merge(src proto.Message)

func (*Example) XXX_Size

func (m *Example) XXX_Size() int

func (*Example) XXX_Unmarshal

func (m *Example) XXX_Unmarshal(b []byte) error

type ExampleORM

type ExampleORM struct {
	ArrayOfBools   pq1.BoolArray    `gorm:"type:bool[]"`
	ArrayOfFloat64 pq1.Float64Array `gorm:"type:float[]"`
	ArrayOfInt64   pq1.Int64Array   `gorm:"type:integer[]"`
	ArrayOfString  pq1.StringArray  `gorm:"type:text[]"`
	Description    string
	Id             string `gorm:"type:uuid;primary_key"`
}

func (ExampleORM) TableName

func (ExampleORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*ExampleORM) ToPB

func (m *ExampleORM) ToPB(ctx context.Context) (Example, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type ExampleORMWithAfterCreate

type ExampleORMWithAfterCreate interface {
	AfterCreate(context.Context, *gorm1.DB) error
}

type ExampleORMWithAfterDelete

type ExampleORMWithAfterDelete interface {
	AfterDelete(context.Context, *gorm1.DB) error
}

type ExampleORMWithAfterDeleteSet

type ExampleORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Example, *gorm1.DB) error
}

type ExampleORMWithAfterListFind

type ExampleORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm1.DB, *[]ExampleORM) error
}

type ExampleORMWithAfterReadFind

type ExampleORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm1.DB) error
}

type ExampleORMWithAfterStrictUpdateSave

type ExampleORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm1.DB) error
}

type ExampleORMWithBeforeCreate

type ExampleORMWithBeforeCreate interface {
	BeforeCreate(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleORMWithBeforeDelete

type ExampleORMWithBeforeDelete interface {
	BeforeDelete(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleORMWithBeforeDeleteSet

type ExampleORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Example, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleORMWithBeforeListApplyQuery

type ExampleORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleORMWithBeforeListFind

type ExampleORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleORMWithBeforeReadApplyQuery

type ExampleORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleORMWithBeforeReadFind

type ExampleORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleORMWithBeforeStrictUpdateCleanup

type ExampleORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleORMWithBeforeStrictUpdateSave

type ExampleORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleWithAfterPatchSave

type ExampleWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Example, *field_mask1.FieldMask, *gorm1.DB) error
}

type ExampleWithAfterToORM

type ExampleWithAfterToORM interface {
	AfterToORM(context.Context, *ExampleORM) error
}

ExampleAfterToORM called after default ToORM code

type ExampleWithAfterToPB

type ExampleWithAfterToPB interface {
	AfterToPB(context.Context, *Example) error
}

ExampleAfterToPB called after default ToPB code

type ExampleWithBeforePatchApplyFieldMask

type ExampleWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Example, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleWithBeforePatchRead

type ExampleWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Example, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleWithBeforePatchSave

type ExampleWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Example, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type ExampleWithBeforeToORM

type ExampleWithBeforeToORM interface {
	BeforeToORM(context.Context, *ExampleORM) error
}

ExampleBeforeToORM called before default ToORM code

type ExampleWithBeforeToPB

type ExampleWithBeforeToPB interface {
	BeforeToPB(context.Context, *Example) error
}

ExampleBeforeToPB called before default ToPB code

Jump to

Keyboard shortcuts

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