func GetPrewriteValue(ctx context.Context, createIfNotExists bool) *binlog.PrewriteValue {
	v, ok := ctx.Value(binlogKey).(*binlog.PrewriteValue)
	if !ok && createIfNotExists {
		schemaVer := GetSchemaVersion(ctx)
		v = &binlog.PrewriteValue{SchemaVersion: schemaVer}
		ctx.SetValue(binlogKey, v)
	}
	return v
}
// GetPrewriteValue gets binlog prewrite value in the context.
GetPrewriteValue gets binlog prewrite value in the context.
// GetPrewriteValue gets binlog prewrite value in the context .
func GetPrewriteValue(ctx context.Context, createIfNotExists bool) *binlog.PrewriteValue {
	v, ok := ctx.Value(binlogKey).(*binlog.PrewriteValue)
	if !ok && createIfNotExists {
		schemaVer := GetSchemaVersion(ctx)
		v = &binlog.PrewriteValue{SchemaVersion: schemaVer}
		ctx.SetValue(binlogKey, v)
	}
	return v
}
func GetPrewriteValue ( ctx context . Context , createIfNotExists bool ) * binlog . PrewriteValue { v , ok := ctx . Value ( binlogKey ) . ( * binlog . PrewriteValue ) if ! ok && createIfNotExists { schemaVer := GetSchemaVersion ( ctx ) v = & binlog . PrewriteValue { SchemaVersion : schemaVer } ctx . SetValue ( binlogKey , v ) } return v }
GetPrewriteValue gets binlog prewrite value in the context.
GetPrewriteValue gets binlog prewrite value in the context .