Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ColumnMapping (0.11 sec)

  1. scan.go

    		update              = mode&ScanUpdate != 0
    		onConflictDonothing = mode&ScanOnConflictDoNothing != 0
    	)
    
    	if len(db.Statement.ColumnMapping) > 0 {
    		for i, column := range columns {
    			v, ok := db.Statement.ColumnMapping[column]
    			if ok {
    				columns[i] = v
    			}
    		}
    	}
    
    	db.RowsAffected = 0
    
    	switch dest := db.Statement.Dest.(type) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. statement.go

    		Clauses:              map[string]clause.Clause{},
    		Distinct:             stmt.Distinct,
    		Selects:              stmt.Selects,
    		Omits:                stmt.Omits,
    		ColumnMapping:        stmt.ColumnMapping,
    		Preloads:             map[string][]interface{}{},
    		ConnPool:             stmt.ConnPool,
    		Schema:               stmt.Schema,
    		Context:              stmt.Context,
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. chainable_api.go

    }
    
    // MapColumns modify the column names in the query results to facilitate align to the corresponding structural fields
    func (db *DB) MapColumns(m map[string]string) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.ColumnMapping = m
    	return
    }
    
    // Where add conditions
    //
    // See the [docs] for details on the various formats that where clauses can take. By default, where clauses chain with AND.
    //
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top