Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for table (0.17 sec)

  1. migrator/migrator.go

    		currentDatabase := m.DB.Migrator().CurrentDatabase()
    		return m.DB.Raw("SELECT count(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ? AND table_type = ?", currentDatabase, stmt.Table, "BASE TABLE").Row().Scan(&count)
    	})
    
    	return count > 0
    }
    
    // RenameTable rename table from oldName to newName
    func (m Migrator) RenameTable(oldName, newName interface{}) error {
    	var oldTable, newTable interface{}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  2. tests/query_test.go

    		*GetUser("find_in_batches_with_error", Config{}),
    	}
    
    	DB.Create(&users)
    
    	var (
    		results    []User
    		totalBatch int
    	)
    
    	if result := DB.Table("wrong_table").Where("name = ?", users[0].Name).FindInBatches(&results, 2, func(tx *gorm.DB, batch int) error {
    		totalBatch += batch
    		return nil
    	}); result.Error == nil || result.RowsAffected > 0 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  3. cni/pkg/iptables/iptables_linux.go

    		}
    
    		netlinkRoutes := []*netlink.Route{
    			// In routing table ${INBOUND_TPROXY_ROUTE_TABLE}, create a single default rule to route all traffic to
    			// the loopback interface.
    			// Equiv: "ip route add local 0.0.0.0/0 dev lo table 100"
    			{
    				Dst:       localhostDst,
    				Scope:     netlink.SCOPE_HOST,
    				Type:      unix.RTN_LOCAL,
    				Table:     RouteTableInbound,
    				LinkIndex: loopbackLink.Attrs().Index,
    			},
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java

        }
    
        private void addTOC(Document document) {
            Element tocSection = document.body().select("section.topic").first().before("<section class='table-of-contents'/>").previousElementSibling();
            tocSection.append("<h2>Table Of Contents</h2>");
            Element toc = tocSection.append("<ul class='toc'/>").children().last();
    
            Elements h23elements = document.select("h2,h3");
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Apr 25 04:49:56 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. cni/pkg/iptables/iptables.go

    	//
    	// Extreme corner case:
    	// If for some reason your host had both binaries, and you were injecting out-of-band
    	// iptables rules within a pod context into `legacy` tables, but your host context preferred
    	// `nft`, we would still inject our rules in-pod into nft tables, which is a bit wonky.
    	//
    	// But that's stunningly unlikely (and would still work either way)
    	iptVer, err := ext.DetectIptablesVersion(false)
    	if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  6. callbacks/preload.go

    						return err
    					}
    				default:
    					return gorm.ErrInvalidData
    				}
    			} else {
    				tx := db.Table("").Session(&gorm.Session{Context: db.Statement.Context, SkipHooks: db.Statement.SkipHooks})
    				tx.Statement.ReflectValue = db.Statement.ReflectValue
    				tx.Statement.Unscoped = db.Statement.Unscoped
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  7. architecture/ambient/ztunnel.md

    This offered performance benefits that were too large to leave on the table, as well as opportunities to tune to our specific needs.
    
    ## Configuration protocol
    
    Ztunnel, of course, needs to be dynamically configured in order to make decisions on how it should handle traffic.
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Apr 25 22:35:16 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  8. tests/preload_test.go

    		}
    	}
    
    	CheckUser(t, users2[0], users[0])
    
    	var users3 []User
    	if err := DB.Preload("Account", func(tx *gorm.DB) *gorm.DB {
    		return tx.Table("accounts AS a").Select("a.*")
    	}).Find(&users3, "id IN ?", userIDs).Error; err != nil {
    		t.Errorf("failed to query, got error %v", err)
    	}
    	sort.Slice(users3, func(i, j int) bool {
    		return users2[i].ID < users2[j].ID
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  9. docs/metrics/v3.md

    ## Request, System and Cluster Metrics
    
    At a high level metrics are grouped into three categories, listed in the following sub-sections. The path in each of the tables is relative to the top-level endpoint.
    
    ### Request metrics 
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 26K bytes
    - Viewed (0)
  10. RELEASE.md

        vocabulary file.
    *   Added `index_to_string_table` which returns a lookup table that maps indices
        to strings.
    *   Add `string_to_index_table`, which returns a lookup table that matches
        strings to indices.
    *   Add a `ParallelForWithWorkerId` function.
    *   Add `string_to_index_table`, which returns a lookup table that matches
        strings to indices.
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
Back to top