Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for writeType (0.13 sec)

  1. src/cmd/api/main_test.go

    		}
    		tp := tparams.At(i)
    		w.writeType(buf, tp)
    		if withConstraints {
    			buf.WriteByte(' ')
    			w.writeType(buf, tp.Constraint())
    		}
    	}
    	buf.WriteByte(']')
    }
    
    func (w *Walker) writeParams(buf *bytes.Buffer, t *types.Tuple, variadic bool) {
    	buf.WriteByte('(')
    	for i, n := 0, t.Len(); i < n; i++ {
    		if i > 0 {
    			buf.WriteString(", ")
    		}
    		typ := t.At(i).Type()
    		if variadic && i+1 == n {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  2. clause/where.go

    						builder.WriteByte('(')
    					}
    				}
    
    				c.Build(builder)
    
    				if wrapInParentheses {
    					builder.WriteByte(')')
    				}
    			}
    		}
    
    		if len(not.Exprs) > 1 {
    			builder.WriteByte(')')
    		}
    	} else {
    		builder.WriteString("NOT ")
    		if len(not.Exprs) > 1 {
    			builder.WriteByte('(')
    		}
    
    		for idx, c := range not.Exprs {
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. clause/expression.go

    			if inName {
    				if nv, ok := namedMap[string(name)]; ok {
    					builder.AddVar(builder, nv)
    				} else {
    					builder.WriteByte('@')
    					builder.WriteString(string(name))
    				}
    				inName = false
    			}
    
    			afterParenthesis = false
    			builder.WriteByte(v)
    		} else if v == '?' && len(expr.Vars) > idx {
    			if afterParenthesis {
    				if _, ok := expr.Vars[idx].(driver.Valuer); ok {
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Tue Oct 10 06:45:48 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  4. clause/clause.go

    			c.BeforeExpression.Build(builder)
    			builder.WriteByte(' ')
    		}
    
    		if c.Name != "" {
    			builder.WriteString(c.Name)
    			builder.WriteByte(' ')
    		}
    
    		if c.AfterNameExpression != nil {
    			c.AfterNameExpression.Build(builder)
    			builder.WriteByte(' ')
    		}
    
    		c.Expression.Build(builder)
    
    		if c.AfterExpression != nil {
    			builder.WriteByte(' ')
    			c.AfterExpression.Build(builder)
    		}
    	}
    }
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Thu Feb 02 09:15:08 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  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