Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 47 for writeType (0.09 sec)

  1. internal/s3select/genmessage.go

    	buf := new(bytes.Buffer)
    
    	buf.WriteByte(13)
    	buf.WriteString(":message-type")
    	buf.WriteByte(7)
    	buf.Write([]byte{0, 5})
    	buf.WriteString("event")
    
    	buf.WriteByte(13)
    	buf.WriteString(":content-type")
    	buf.WriteByte(7)
    	buf.Write([]byte{0, 24})
    	buf.WriteString("application/octet-stream")
    
    	buf.WriteByte(11)
    	buf.WriteString(":event-type")
    	buf.WriteByte(7)
    	buf.Write([]byte{0, 7})
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  2. clause/order_by.go

    func (orderBy OrderBy) Build(builder Builder) {
    	if orderBy.Expression != nil {
    		orderBy.Expression.Build(builder)
    	} else {
    		for idx, column := range orderBy.Columns {
    			if idx > 0 {
    				builder.WriteByte(',')
    			}
    
    			builder.WriteQuoted(column.Column)
    			if column.Desc {
    				builder.WriteString(" DESC")
    			}
    		}
    	}
    }
    
    // MergeClause merge order by clauses
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Tue Nov 03 02:30:05 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  3. clause/values.go

    	if len(values.Columns) > 0 {
    		builder.WriteByte('(')
    		for idx, column := range values.Columns {
    			if idx > 0 {
    				builder.WriteByte(',')
    			}
    			builder.WriteQuoted(column)
    		}
    		builder.WriteByte(')')
    
    		builder.WriteString(" VALUES ")
    
    		for idx, value := range values.Values {
    			if idx > 0 {
    				builder.WriteByte(',')
    			}
    
    			builder.WriteByte('(')
    			builder.AddVar(builder, value...)
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Sun May 24 03:35:19 UTC 2020
    - 849 bytes
    - Viewed (0)
  4. internal/ringbuffer/ring_buffer.go

    		r.isFull = true
    	}
    
    	return n, err
    }
    
    // WriteByte writes one byte into buffer, and returns ErrIsFull if buffer is full.
    func (r *RingBuffer) WriteByte(c byte) error {
    	r.mu.Lock()
    	defer r.mu.Unlock()
    	if err := r.err; err != nil {
    		if err == io.EOF {
    			err = ErrWriteOnClosed
    		}
    		return err
    	}
    	err := r.writeByte(c)
    	for err == ErrIsFull && r.block {
    		r.readCond.Wait()
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. utils/tests/dummy_dialecter.go

    		case '.':
    			if continuousBacktick > 0 || !selfQuoted {
    				shiftDelimiter = 0
    				underQuoted = false
    				continuousBacktick = 0
    				writer.WriteByte('`')
    			}
    			writer.WriteByte(v)
    			continue
    		default:
    			if shiftDelimiter-continuousBacktick <= 0 && !underQuoted {
    				writer.WriteByte('`')
    				underQuoted = true
    				if selfQuoted = continuousBacktick > 0; selfQuoted {
    					continuousBacktick -= 1
    				}
    			}
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Mar 06 06:03:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. statement.go

    			write(v.Raw, v.Alias)
    		}
    	case []clause.Column:
    		writer.WriteByte('(')
    		for idx, d := range v {
    			if idx > 0 {
    				writer.WriteByte(',')
    			}
    			stmt.QuoteTo(writer, d)
    		}
    		writer.WriteByte(')')
    	case clause.Expr:
    		v.Build(stmt)
    	case string:
    		stmt.DB.Dialector.QuoteTo(writer, v)
    	case []string:
    		writer.WriteByte('(')
    		for idx, d := range v {
    			if idx > 0 {
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. clause/joins.go

    			builder.WriteString(string(join.Type))
    			builder.WriteByte(' ')
    		}
    
    		builder.WriteString("JOIN ")
    		builder.WriteQuoted(join.Table)
    
    		if len(join.ON.Exprs) > 0 {
    			builder.WriteString(" ON ")
    			join.ON.Build(builder)
    		} else if len(join.Using) > 0 {
    			builder.WriteString(" USING (")
    			for idx, c := range join.Using {
    				if idx > 0 {
    					builder.WriteByte(',')
    				}
    				builder.WriteQuoted(c)
    			}
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Thu Nov 03 13:03:13 UTC 2022
    - 901 bytes
    - Viewed (0)
  8. clause/limit.go

    	if limit.Limit != nil && *limit.Limit >= 0 {
    		builder.WriteString("LIMIT ")
    		builder.AddVar(builder, *limit.Limit)
    	}
    	if limit.Offset > 0 {
    		if limit.Limit != nil && *limit.Limit >= 0 {
    			builder.WriteByte(' ')
    		}
    		builder.WriteString("OFFSET ")
    		builder.AddVar(builder, limit.Offset)
    	}
    }
    
    // MergeClause merge order by clauses
    func (limit Limit) MergeClause(clause *Clause) {
    	clause.Name = ""
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 942 bytes
    - Viewed (0)
  9. clause/set.go

    	if len(set) > 0 {
    		for idx, assignment := range set {
    			if idx > 0 {
    				builder.WriteByte(',')
    			}
    			builder.WriteQuoted(assignment.Column)
    			builder.WriteByte('=')
    			builder.AddVar(builder, assignment.Value)
    		}
    	} else {
    		builder.WriteQuoted(Column{Name: PrimaryKey})
    		builder.WriteByte('=')
    		builder.WriteQuoted(Column{Name: PrimaryKey})
    	}
    }
    
    // MergeClause merge assignments clauses
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Nov 29 03:02:44 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  10. clause/locking.go

    	builder.WriteString(locking.Strength)
    	if locking.Table.Name != "" {
    		builder.WriteString(" OF ")
    		builder.WriteQuoted(locking.Table)
    	}
    
    	if locking.Options != "" {
    		builder.WriteByte(' ')
    		builder.WriteString(locking.Options)
    	}
    }
    
    // MergeClause merge order by clauses
    func (locking Locking) MergeClause(clause *Clause) {
    	clause.Expression = locking
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Fri Dec 15 08:32:56 UTC 2023
    - 773 bytes
    - Viewed (0)
Back to top