Upgrade to Go 1.19 (#2347)
This commit is contained in:
1 parent
07a4082aa1
commit
aef9073fa6
77 files changed
+334
-294
No files matched your search
@@ -282,12 +282,14 @@ type WithOnConflict struct {
|
||||
// target defines the on conflict target
|
||||
//
|
||||
// Types that are assignable to Target:
|
||||
//
|
||||
// *WithOnConflict_Constraint
|
||||
// *WithOnConflict_Columns
|
||||
Target isWithOnConflict_Target `protobuf_oneof:"target"`
|
||||
// action defines the on conflict action
|
||||
//
|
||||
// Types that are assignable to Action:
|
||||
//
|
||||
// *WithOnConflict_DoNothing
|
||||
// *WithOnConflict_UpdateAll
|
||||
// *WithOnConflict_ColumnValues
|
||||
@@ -478,6 +480,7 @@ type ColumnValue struct {
|
||||
// value of the column
|
||||
//
|
||||
// Types that are assignable to Value:
|
||||
//
|
||||
// *ColumnValue_Raw
|
||||
// *ColumnValue_ExprValue
|
||||
// *ColumnValue_Column
|
||||
|
||||
@@ -18,6 +18,7 @@ import (
|
||||
|
||||
// Version of oplog entries (among other things, it's used to manage upgrade
|
||||
// compatibility when replicating)
|
||||
//
|
||||
// v1: initial version
|
||||
// v2: adds the new Message.Opts
|
||||
const Version = "v2"
|
||||
@@ -338,7 +339,7 @@ func (e *Entry) WriteEntryWith(ctx context.Context, tx *Writer, ticket *store.Ti
|
||||
}
|
||||
|
||||
// Write the entry as is with whatever it has for e.Data marshaled into a FIFO QueueBuffer
|
||||
// Cipherer != nil then the data is authentication encrypted
|
||||
// If Cipherer != nil then the data is authentication encrypted
|
||||
func (e *Entry) Write(ctx context.Context, tx *Writer, ticket *store.Ticket) error {
|
||||
const op = "oplog.(Entry).Write"
|
||||
if err := e.validate(ctx); err != nil {
|
||||
|
||||
Reference in new issue
Block a user