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 ¶
- func DefaultDeleteExample(ctx context.Context, in *Example, db *gorm1.DB) error
- func DefaultDeleteExampleSet(ctx context.Context, in []*Example, db *gorm1.DB) error
- type Example
- func DefaultApplyFieldMaskExample(ctx context.Context, patchee *Example, patcher *Example, ...) (*Example, error)
- func DefaultCreateExample(ctx context.Context, in *Example, db *gorm1.DB) (*Example, error)
- func DefaultListExample(ctx context.Context, db *gorm1.DB) ([]*Example, error)
- func DefaultPatchExample(ctx context.Context, in *Example, updateMask *field_mask1.FieldMask, ...) (*Example, error)
- func DefaultReadExample(ctx context.Context, in *Example, db *gorm1.DB) (*Example, error)
- func DefaultStrictUpdateExample(ctx context.Context, in *Example, db *gorm1.DB) (*Example, error)
- func (*Example) Descriptor() ([]byte, []int)
- func (m *Example) GetArrayOfBools() []bool
- func (m *Example) GetArrayOfFloat64() []float64
- func (m *Example) GetArrayOfInt64() []int64
- func (m *Example) GetArrayOfString() []string
- func (m *Example) GetDescription() string
- func (m *Example) GetId() string
- func (*Example) ProtoMessage()
- func (m *Example) Reset()
- func (m *Example) String() string
- func (m *Example) ToORM(ctx context.Context) (ExampleORM, error)
- func (m *Example) XXX_DiscardUnknown()
- func (m *Example) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Example) XXX_Merge(src proto.Message)
- func (m *Example) XXX_Size() int
- func (m *Example) XXX_Unmarshal(b []byte) error
- type ExampleORM
- type ExampleORMWithAfterCreate
- type ExampleORMWithAfterDelete
- type ExampleORMWithAfterDeleteSet
- type ExampleORMWithAfterListFind
- type ExampleORMWithAfterReadFind
- type ExampleORMWithAfterStrictUpdateSave
- type ExampleORMWithBeforeCreate
- type ExampleORMWithBeforeDelete
- type ExampleORMWithBeforeDeleteSet
- type ExampleORMWithBeforeListApplyQuery
- type ExampleORMWithBeforeListFind
- type ExampleORMWithBeforeReadApplyQuery
- type ExampleORMWithBeforeReadFind
- type ExampleORMWithBeforeStrictUpdateCleanup
- type ExampleORMWithBeforeStrictUpdateSave
- type ExampleWithAfterPatchSave
- type ExampleWithAfterToORM
- type ExampleWithAfterToPB
- type ExampleWithBeforePatchApplyFieldMask
- type ExampleWithBeforePatchRead
- type ExampleWithBeforePatchSave
- type ExampleWithBeforeToORM
- type ExampleWithBeforeToPB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDeleteExample ¶
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 ¶
DefaultCreateExample executes a basic gorm create call
func DefaultListExample ¶
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 ¶
DefaultReadExample executes a basic gorm read call
func DefaultStrictUpdateExample ¶
DefaultStrictUpdateExample clears first level 1:many children and then executes a gorm update call
func (*Example) Descriptor ¶
func (*Example) GetArrayOfBools ¶
func (*Example) GetArrayOfFloat64 ¶
func (*Example) GetArrayOfInt64 ¶
func (*Example) GetArrayOfString ¶
func (*Example) GetDescription ¶
func (*Example) ProtoMessage ¶
func (*Example) ProtoMessage()
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 (*Example) XXX_Unmarshal ¶
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
type ExampleWithAfterToORM ¶
type ExampleWithAfterToORM interface {
AfterToORM(context.Context, *ExampleORM) error
}
ExampleAfterToORM called after default ToORM code
type ExampleWithAfterToPB ¶
ExampleAfterToPB called after default ToPB code
type ExampleWithBeforeToORM ¶
type ExampleWithBeforeToORM interface {
BeforeToORM(context.Context, *ExampleORM) error
}
ExampleBeforeToORM called before default ToORM code