Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for primarykey (0.11 sec)

  1. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    // primaryKey and secondaryKey are keys of labels to reconcile.
    //   - If both keys exist, but their values don't match. Use the value from the
    //     primaryKey as the source of truth to reconcile.
    //   - If ensureSecondaryExists is true, and the secondaryKey does not
    //     exist, secondaryKey will be added with the value of the primaryKey.
    var labelReconcileInfo = []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. tests/query_test.go

    	AssertEqual(t, err, gorm.ErrModelAccessibleFieldsRequired)
    
    	var p2 interface{}
    
    	err = DB.Table("ps").Clauses(clause.Eq{Column: clause.Column{
    		Table: clause.CurrentTable, Name: clause.PrimaryKey,
    	}, Value: 1}).Scan(&p2).Error
    	AssertEqual(t, err, gorm.ErrModelValueRequired)
    }
    
    func TestQueryScanToArray(t *testing.T) {
    	err := DB.Create(&User{Name: "testname1", Age: 10}).Error
    	if err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
Back to top