Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 141 for IsStmt (0.08 sec)

  1. soft_delete.go

    func (sd SoftDeleteDeleteClause) ModifyStatement(stmt *Statement) {
    	if stmt.SQL.Len() == 0 && !stmt.Statement.Unscoped {
    		curTime := stmt.DB.NowFunc()
    		stmt.AddClause(clause.Set{{Column: clause.Column{Name: sd.Field.DBName}, Value: curTime}})
    		stmt.SetColumn(sd.Field.DBName, curTime, true)
    
    		if stmt.Schema != nil {
    			_, queryValues := schema.GetIdentityFieldValuesMap(stmt.Context, stmt.ReflectValue, stmt.Schema.PrimaryFields)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go

    	case *ast.BlockStmt:
    		for _, stmt := range x.List {
    			d.findLabels(stmt)
    		}
    
    	case *ast.BranchStmt:
    		switch x.Tok {
    		case token.GOTO:
    			if x.Label != nil {
    				d.hasGoto[x.Label.Name] = true
    			}
    
    		case token.BREAK:
    			stmt := d.breakTarget
    			if x.Label != nil {
    				stmt = d.labels[x.Label.Name]
    			}
    			if stmt != nil {
    				d.hasBreak[stmt] = true
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    // stripping any (possibly nested) *ast.LabeledStmt wrapper.
    //
    // The second result reports whether stmt was an *ast.LabeledStmt.
    func unlabel(stmt ast.Stmt) (ast.Stmt, bool) {
    	labeled := false
    	for {
    		labelStmt, ok := stmt.(*ast.LabeledStmt)
    		if !ok {
    			return stmt, labeled
    		}
    		labeled = true
    		stmt = labelStmt.Stmt
    	}
    }
    
    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. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    		new := &Line{Token: tokens}
    		if i == len(x.Stmt) {
    			x.Stmt = append(x.Stmt, new)
    		} else {
    			x.Stmt = append(x.Stmt, nil)
    			copy(x.Stmt[i+2:], x.Stmt[i+1:])
    			x.Stmt[i+1] = new
    		}
    		return new
    	}
    
    	if hint != nil {
    		for i, stmt := range x.Stmt {
    			switch stmt := stmt.(type) {
    			case *Line:
    				if stmt == hint {
    					if stmt.Token == nil || stmt.Token[0] != tokens[0] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/modfile/work.go

    			if _, ok := f.Syntax.Stmt[i].(*CommentBlock); !ok {
    				break
    			}
    		}
    	Found:
    		f.Syntax.Stmt = append(append(f.Syntax.Stmt[:i:i], stmt), f.Syntax.Stmt[i:]...)
    	} else {
    		f.Toolchain.Name = name
    		f.Syntax.updateLine(f.Toolchain.Syntax, "toolchain", name)
    	}
    	return nil
    }
    
    // DropGoStmt deletes the go statement from the file.
    func (f *WorkFile) DropGoStmt() {
    	if f.Go != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    		lb._goto.Stmt = stmt
    	}
    	return lb
    }
    
    // newBlock appends a new unconnected basic block to b.cfg's block
    // slice and returns it.
    // It does not automatically become the current block.
    // comment is an optional string for more readable debugging output.
    func (b *builder) newBlock(kind BlockKind, stmt ast.Stmt) *Block {
    	g := b.cfg
    	block := &Block{
    		Index: int32(len(g.Blocks)),
    		Kind:  kind,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. src/database/sql/fakedb_test.go

    			stmt.Close()
    			return nil, errf("SELECT on table %q has pre-bound value for where column %q; need a question mark",
    				stmt.table, column)
    		}
    		stmt.placeholders++
    		stmt.whereCol = append(stmt.whereCol, boundCol{Column: column, Placeholder: value, Ordinal: stmt.placeholders})
    	}
    	return stmt, nil
    }
    
    // parts are table|col=type,col2=type2
    func (c *fakeConn) prepareCreate(stmt *fakeStmt, parts []string) (*fakeStmt, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue54942.go

    }
    
    type Executor interface {
    	Execute(context.Context, sql.Stmt, int, []sql.NamedArg, int) (Result, error)
    }
    
    type myExecutor struct{}
    
    func (_ *myExecutor) Execute(ctx context.Context, stmt sql.Stmt, maxrows int, args []sql.NamedArg, urgency int) (*Result, error) {
    	return &Result{}, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 13 15:29:44 UTC 2023
    - 992 bytes
    - Viewed (0)
  9. clause/benchmarks_test.go

    		for _, clause := range clauses {
    			stmt.AddClause(clause)
    		}
    
    		stmt.Build("SELECT", "FROM", "WHERE")
    		_ = stmt.SQL.String()
    	}
    }
    
    func BenchmarkComplexSelect(b *testing.B) {
    	user, _ := schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy)
    
    	limit10 := 10
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Oct 07 12:14:14 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  10. src/database/sql/sql_test.go

    	// db.Prepare increments numPrepares.
    	stmt, err := db.Prepare("INSERT|t1|name=?,age=?")
    	if err != nil {
    		t.Fatalf("Stmt, err = %v, %v", stmt, err)
    	}
    	defer stmt.Close()
    	tx, err := db.Begin()
    	if err != nil {
    		t.Fatalf("Begin = %v", err)
    	}
    	txs := tx.Stmt(stmt)
    	if len(stmt.css) != 1 {
    		t.Fatalf("len(stmt.css) = %v; want 1", len(stmt.css))
    	}
    	err = txs.Close()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top