Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 172 for Book (0.18 sec)

  1. tests/soft_delete_test.go

    	}
    
    	book := SoftDeleteBook{Name: "jinzhu", Pages: 10}
    	DB.Save(&book)
    
    	var count int64
    	if DB.Model(&SoftDeleteBook{}).Where("name = ?", book.Name).Count(&count).Error != nil || count != 1 {
    		t.Errorf("Count soft deleted record, expects: %v, got: %v", 1, count)
    	}
    
    	var pages uint
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. schema/relationship_test.go

    }
    
    type Author struct {
    	gorm.Model
    }
    
    type Book struct {
    	gorm.Model
    	Author   Author
    	AuthorID uint
    }
    
    func (Book) TableName() string {
    	return "my_schema.a_very_very_very_very_very_very_very_very_long_table_name"
    }
    
    func TestParseConstraintNameWithSchemaQualifiedLongTableName(t *testing.T) {
    	s, err := schema.Parse(
    		&Book{},
    		&sync.Map{},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/gnu.go

    		bi := inst.Args[1].(CondReg)
    		atsfx := [4]string{"", "?", "-", "+"}
    		decsfx := [2]string{"dnz", "dz"}
    
    		//BO field is... complicated (z == ignored bit, at == prediction hint)
    		//Paraphrased from ISA 3.1 Book I Section 2.4:
    		//
    		//0000z -> decrement ctr, b if ctr != 0 and CRbi == 0
    		//0001z -> decrement ctr, b if ctr == 0 and CRbi == 0
    		//001at -> b if CRbi == 0
    		//0100z -> decrement ctr, b if ctr != 0 and CRbi == 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/ppc64/a.out.go

    	REG_R15
    	REG_R16
    	REG_R17
    	REG_R18
    	REG_R19
    	REG_R20
    	REG_R21
    	REG_R22
    	REG_R23
    	REG_R24
    	REG_R25
    	REG_R26
    	REG_R27
    	REG_R28
    	REG_R29
    	REG_R30
    	REG_R31
    
    	// CR bits. Use Book 1, chapter 2 naming for bits. Keep aligned to 32
    	REG_CR0LT
    	REG_CR0GT
    	REG_CR0EQ
    	REG_CR0SO
    	REG_CR1LT
    	REG_CR1GT
    	REG_CR1EQ
    	REG_CR1SO
    	REG_CR2LT
    	REG_CR2GT
    	REG_CR2EQ
    	REG_CR2SO
    	REG_CR3LT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 18:50:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/staticinit/sched.go

    // returns nil.
    //
    // Currently, it outlines map assignment statements with large,
    // side-effect-free RHS expressions.
    func tryWrapGlobalInit(n ir.Node) *ir.Func {
    	// Look for "X = ..." where X has map type.
    	// FIXME: might also be worth trying to look for cases where
    	// the LHS is of interface type but RHS is map type.
    	if n.Op() != ir.OAS {
    		return nil
    	}
    	as := n.(*ir.AssignStmt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/recv.go

    		isPtr = true
    		t = ptr.Elem()
    	}
    	named, _ = aliases.Unalias(t).(*types.Named)
    	return
    }
    
    // Unpointer returns T given *T or an alias thereof.
    // For all other types it is the identity function.
    // It does not look at underlying types.
    // The result may be an alias.
    //
    // Use this function to strip off the optional pointer on a receiver
    // in a field or method selection, without losing the named type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/lookup.go

    	// search current depth
    	for len(current) > 0 {
    		var next []embeddedType // embedded types found at current depth
    
    		// look for (pkg, name) in all types at current depth
    		for _, e := range current {
    			typ := e.typ
    
    			// If we have a named type, we may have associated methods.
    			// Look for those first.
    			if named := asNamed(typ); named != nil {
    				if alt := seen.lookup(named); alt != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/callee.go

    // a function, method, builtin, or variable.
    //
    // Functions and methods may potentially have type parameters.
    func Callee(info *types.Info, call *ast.CallExpr) types.Object {
    	fun := astutil.Unparen(call.Fun)
    
    	// Look through type instantiation if necessary.
    	isInstance := false
    	switch fun.(type) {
    	case *ast.IndexExpr, *ast.IndexListExpr:
    		// When extracting the callee from an *IndexExpr, we need to check that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. src/cmd/fix/main_test.go

    	// If cgo is enabled, enforce that cgo commands invoked by cmd/fix
    	// do not fail during testing.
    	if testenv.HasCGO() {
    		testenv.MustHaveGoBuild(t) // Really just 'go tool cgo', but close enough.
    
    		// The reportCgoError hook is global, so we can't set it per-test
    		// if we want to be able to run those tests in parallel.
    		// Instead, simply set it to panic on error: the goroutine dump
    		// from the panic should help us determine which test failed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/import.go

    		// In readonly mode, we can't write go.mod, so we shouldn't try to look up
    		// the module. If readonly mode was enabled explicitly, include that in
    		// the error message.
    		// In vendor mode, we cannot use the network or module cache, so we
    		// shouldn't try to look up the module
    		var queryErr error
    		if cfg.BuildModExplicit {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top