Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for addPair (0.18 sec)

  1. clause/expression.go

    						if rv.Len() == 0 {
    							builder.AddVar(builder, nil)
    						} else {
    							for i := 0; i < rv.Len(); i++ {
    								if i > 0 {
    									builder.WriteByte(',')
    								}
    								builder.AddVar(builder, rv.Index(i).Interface())
    							}
    						}
    					default:
    						builder.AddVar(builder, expr.Vars[idx])
    					}
    				}
    			} else {
    				builder.AddVar(builder, expr.Vars[idx])
    			}
    
    			idx++
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Oct 10 06:45:48 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. clause/limit.go

    func (limit Limit) Build(builder Builder) {
    	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) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 942 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    		case *ast.RangeStmt:
    			body = n.Body
    			addVar(n.Key)
    			addVar(n.Value)
    		case *ast.ForStmt:
    			body = n.Body
    			switch post := n.Post.(type) {
    			case *ast.AssignStmt:
    				// e.g. for p = head; p != nil; p = p.next
    				for _, lhs := range post.Lhs {
    					addVar(lhs)
    				}
    			case *ast.IncDecStmt:
    				// e.g. for i := 0; i < n; i++
    				addVar(post.X)
    			}
    		}
    		if vars == nil {
    			return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. clause/clause.go

    type Writer interface {
    	WriteByte(byte) error
    	WriteString(string) (int, error)
    }
    
    // Builder builder interface
    type Builder interface {
    	Writer
    	WriteQuoted(field interface{})
    	AddVar(Writer, ...interface{})
    	AddError(error) error
    }
    
    // Clause
    type Clause struct {
    	Name                string // WHERE
    	BeforeExpression    Expression
    	AfterNameExpression Expression
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Feb 02 09:15:08 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. statement.go

    }
    
    // Quote returns quoted value
    func (stmt *Statement) Quote(field interface{}) string {
    	var builder strings.Builder
    	stmt.QuoteTo(&builder, field)
    	return builder.String()
    }
    
    // AddVar add var
    func (stmt *Statement) AddVar(writer clause.Writer, vars ...interface{}) {
    	for idx, v := range vars {
    		if idx > 0 {
    			writer.WriteByte(',')
    		}
    
    		switch v := v.(type) {
    		case sql.NamedArg:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ZipTestFixture.groovy

                    String content = getContentForEntry(entry, zipFile)
                    if (!entry.directory) {
                        add(entry.name, content)
                    } else {
                        addDir(entry.name)
                    }
                    addMode(entry.name, entry.getUnixMode())
                    addCompressionMethod(entry.name, entry.getMethod())
                }
            } finally {
                zipFile.close();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ArchiveTestFixture.groovy

        private final List<String> dirs = new ArrayList<>()
    
        protected void add(String relativePath, String content) {
            filesByRelativePath.put(relativePath, content)
        }
    
        protected void addDir(String relativePath) {
            dirs.add(relativePath)
        }
    
        protected void addMode(String relativePath, int mode) {
            fileModesByRelativePath.put(relativePath, mode & 0777)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/debug_test.go

    				if colonPos == -1 {
    					panic(fmt.Sprintf("Line %d (%s) in file %s expected to contain '<number>:' but does not.\n", i+1, l, filename))
    				}
    				h.add(lastfile, l[0:colonPos], l[colonPos+1:])
    			} else {
    				h.addVar(l)
    			}
    		}
    	}
    }
    
    // add appends file (name), line (number) and text (string) to the history,
    // provided that the file+line combo does not repeat the previous position,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  9. src/cmd/go/go_test.go

    	tg.sleep()
    	restore := addVar(sys, 0)
    	restore()
    	tg.wantNotStale("p1", "", "./testgo list claims p1 is stale, incorrectly, after updating mtime of runtime/internal/sys/sys.go")
    
    	// But changing content of any file should have an effect.
    	// Previously zversion.go was the only one that mattered;
    	// now they all matter, so keep using sys.go.
    	restore = addVar(sys, 1)
    	defer restore()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  10. migrator/migrator.go

    	sql.WriteString("CREATE ")
    	if option.Replace {
    		sql.WriteString("OR REPLACE ")
    	}
    	sql.WriteString("VIEW ")
    	m.QuoteTo(sql, name)
    	sql.WriteString(" AS ")
    
    	m.DB.Statement.AddVar(sql, option.Query)
    
    	if option.CheckOption != "" {
    		sql.WriteString(" ")
    		sql.WriteString(option.CheckOption)
    	}
    	return m.DB.Exec(m.Explain(sql.String(), m.DB.Statement.Vars...)).Error
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top