Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mellom (0.06 sec)

  1. chainable_api.go

    )
    
    // Model specify the model you would like to run db operations
    //
    //	// update all users's name to `hello`
    //	db.Model(&User{}).Update("name", "hello")
    //	// if user's primary key is non-blank, will use it as condition, then will only update that user's name to `hello`
    //	db.Model(&user).Update("name", "hello")
    func (db *DB) Model(value interface{}) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.Model = value
    	return
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. tests/scan_test.go

    		UIntField:         1,
    		UInt8Field:        1,
    		UInt16Field:       1,
    		UInt32Field:       1,
    		UInt64Field:       1,
    		Float32Field:      1.1,
    		Float64Field:      1.1,
    		StringField:       "hello",
    		TimeField:         currTime,
    		TimePtrField:      &currTime,
    		EmbeddedStruct:    EmbeddedStruct{EmbeddedIntField: 1, NestedEmbeddedStruct: NestedEmbeddedStruct{NestedEmbeddedIntField: 1, NestedEmbeddedIntFieldWithDefault: 2}},
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top