Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for ngquery (0.74 sec)

  1. src/cmd/go/internal/modload/query.go

    //
    // Query often returns a non-nil *RevInfo with a non-nil error,
    // to provide an info.Origin that can allow the error to be cached.
    func Query(ctx context.Context, path, query, current string, allowed AllowedFunc) (*modfetch.RevInfo, error) {
    	ctx, span := trace.StartSpan(ctx, "modload.Query "+path)
    	defer span.Done()
    
    	return queryReuse(ctx, path, query, current, allowed, nil)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  2. callbacks/query.go

    package callbacks
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils"
    )
    
    func Query(db *gorm.DB) {
    	if db.Error == nil {
    		BuildQuerySQL(db)
    
    		if !db.DryRun && db.Error == nil {
    			rows, err := db.Statement.ConnPool.QueryContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    			if err != nil {
    				db.AddError(err)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:51:44 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/query_test.go

    	{path: queryRepoV2, query: "<=v0.0.0", err: `no matching versions for query "<=v0.0.0"`},
    	{path: queryRepoV2, query: ">v0.0.0", vers: "v2.0.0"},
    	{path: queryRepoV2, query: ">=v0.0.0", vers: "v2.0.0"},
    
    	{path: queryRepoV2, query: "v2", vers: "v2.5.5"},
    	{path: queryRepoV2, query: "v2.5", vers: "v2.5.5"},
    	{path: queryRepoV2, query: "v2.6", err: `no matching versions for query "v2.6"`},
    	{path: queryRepoV2, query: "v2.6.0-pre1", vers: "v2.6.0-pre1"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:53:14 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. interfaces.go

    }
    
    // ConnPool db conns pool interface
    type ConnPool interface {
    	PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
    	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
    	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
    	QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
    }
    
    // SavePointerDialectorInterface save pointer interface
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:33:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/vet/vetflag.go

    	"flag"
    	"fmt"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    
    	"cmd/go/internal/base"
    	"cmd/go/internal/cmdflag"
    	"cmd/go/internal/work"
    )
    
    // go vet flag processing
    //
    // We query the flags of the tool specified by -vettool and accept any
    // of those flags plus any flag valid for 'go build'. The tool must
    // support -flags, which prints a description of its flags in JSON to
    // stdout.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  6. tests/named_polymorphic_test.go

    		t.Errorf("Hamster's preferred toy count should be 1")
    	}
    
    	if DB.Model(&hamster2).Association("OtherToy").Count() != 1 {
    		t.Errorf("Hamster's other toy count should be 1")
    	}
    
    	// Query
    	hamsterToy := Toy{}
    	DB.Model(&hamster).Association("PreferredToy").Find(&hamsterToy)
    	if hamsterToy.Name != hamster.PreferredToy.Name {
    		t.Errorf("Should find has one polymorphic association")
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jul 08 09:59:40 UTC 2020
    - 4.2K bytes
    - Viewed (0)
  7. schema/utils.go

    		for k, v := range rm {
    			resultsMap[k] = append(resultsMap[k], v...)
    		}
    		results = append(results, rs...)
    	}
    	return resultsMap, results
    }
    
    // ToQueryValues to query values
    func ToQueryValues(table string, foreignKeys []string, foreignValues [][]interface{}) (interface{}, []interface{}) {
    	queryValues := make([]interface{}, len(foreignValues))
    	if len(foreignKeys) == 1 {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:35:14 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. tests/hooks_test.go

    		t.Fatalf("Failed to create product, got error: %v", err)
    	}
    
    	var result Product2
    	if err := DB.First(&result, "name = ?", "Nice").Error; err != nil {
    		t.Fatalf("Failed to query product, got error: %v", err)
    	}
    
    	var resultClone Product2
    	if err := DB.First(&resultClone, "name = ?", "Nice_clone").Error; err != nil {
    		t.Fatalf("Failed to find cloned product, got error: %v", err)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/sparsetree.go

    	// entry+1 and exit-1 are conceptually the bottom of the block (ordinary defs)
    	// entry-1 and exit+1 are conceptually "just before" the block (conditions flowing in)
    	//
    	// This simplifies life if we wish to query information about x
    	// when x is both an input to and output of a block.
    	entry, exit int32
    }
    
    func (s *SparseTreeNode) String() string {
    	return fmt.Sprintf("[%d,%d]", s.entry, s.exit)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modget/query.go

    	err error
    }
    
    // errSet returns a pathSet containing the given error.
    func errSet(err error) pathSet { return pathSet{err: err} }
    
    // newQuery returns a new query parsed from the raw argument,
    // which must be either path or path@version.
    func newQuery(raw string) (*query, error) {
    	pattern, rawVers, found := strings.Cut(raw, "@")
    	if found && (strings.Contains(rawVers, "@") || rawVers == "") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 15:48:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top