Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for male (0.12 sec)

  1. schema/naming.go

    	commonInitialismsReplacer *strings.Replacer
    )
    
    func init() {
    	commonInitialismsForReplacer := make([]string, 0, len(commonInitialisms))
    	for _, initialism := range commonInitialisms {
    		commonInitialismsForReplacer = append(commonInitialismsForReplacer, initialism, strings.Title(strings.ToLower(initialism)))
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 5.2K bytes
    - Viewed (0)
  2. callbacks/delete.go

    					return
    				}
    			case schema.Many2Many:
    				var (
    					queryConds     = make([]clause.Expression, 0, len(rel.References))
    					foreignFields  = make([]*schema.Field, 0, len(rel.References))
    					relForeignKeys = make([]string, 0, len(rel.References))
    					modelValue     = reflect.New(rel.JoinTable.ModelType).Interface()
    					table          = rel.JoinTable.Table
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Feb 25 02:48:23 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  3. tests/customize_field_test.go

    	var cc2 CustomizeColumn
    	DB.First(&cc2, "mapped_id = ?", 666)
    	if cc2.Name != "bar" {
    		t.Errorf("Failed to query CustomizeColumn")
    	}
    }
    
    func TestCustomColumnAndIgnoredFieldClash(t *testing.T) {
    	// Make sure an ignored field does not interfere with another field's custom
    	// column name that matches the ignored field.
    	type CustomColumnAndIgnoredFieldClash struct {
    		Body    string `gorm:"-"`
    		RawBody string `gorm:"column:body"`
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Sep 11 09:33:31 GMT 2020
    - 6.9K bytes
    - Viewed (0)
  4. prepare_stmt.go

    	Mux         *sync.RWMutex
    	ConnPool
    }
    
    func NewPreparedStmtDB(connPool ConnPool) *PreparedStmtDB {
    	return &PreparedStmtDB{
    		ConnPool:    connPool,
    		Stmts:       make(map[string]*Stmt),
    		Mux:         &sync.RWMutex{},
    		PreparedSQL: make([]string, 0, 100),
    	}
    }
    
    func (db *PreparedStmtDB) GetDBConn() (*sql.DB, error) {
    	if sqldb, ok := db.ConnPool.(*sql.DB); ok {
    		return sqldb, nil
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 28 08:47:39 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. schema/utils.go

    	queryValues := make([]interface{}, len(foreignValues))
    	if len(foreignKeys) == 1 {
    		for idx, r := range foreignValues {
    			queryValues[idx] = r[0]
    		}
    
    		return clause.Column{Table: table, Name: foreignKeys[0]}, queryValues
    	}
    
    	columns := make([]clause.Column, len(foreignKeys))
    	for idx, key := range foreignKeys {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Aug 19 13:35:14 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  6. callbacks/helper.go

    				if v, ok := selectColumns[k]; (ok && v) || (!ok && !restricted) {
    					result[k] = make([]interface{}, len(mapValues))
    					columns = append(columns, k)
    				} else {
    					continue
    				}
    			}
    
    			result[k][idx] = v
    		}
    	}
    
    	sort.Strings(columns)
    	values.Values = make([][]interface{}, len(mapValues))
    	values.Columns = make([]clause.Column, len(columns))
    	for idx, column := range columns {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 14 12:32:57 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  7. callbacks/update.go

    				}
    			}
    		}
    	}
    
    	switch value := updatingValue.Interface().(type) {
    	case map[string]interface{}:
    		set = make([]clause.Assignment, 0, len(value))
    
    		keys := make([]string, 0, len(value))
    		for k := range value {
    			keys = append(keys, k)
    		}
    		sort.Strings(keys)
    
    		for _, k := range keys {
    			kv := value[k]
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 05:44:55 GMT 2024
    - 9.4K bytes
    - Viewed (1)
  8. clause/group_by.go

    // MergeClause merge group by clause
    func (groupBy GroupBy) MergeClause(clause *Clause) {
    	if v, ok := clause.Expression.(GroupBy); ok {
    		copiedColumns := make([]Column, len(v.Columns))
    		copy(copiedColumns, v.Columns)
    		groupBy.Columns = append(copiedColumns, groupBy.Columns...)
    
    		copiedHaving := make([]Expression, len(v.Having))
    		copy(copiedHaving, v.Having)
    		groupBy.Having = append(copiedHaving, groupBy.Having...)
    	}
    	clause.Expression = groupBy
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 30 10:28:09 GMT 2021
    - 1K bytes
    - Viewed (0)
  9. .github/workflows/missing_playground.yml

            repo-token: ${{ secrets.GITHUB_TOKEN }}
    Others
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 02:27:05 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  10. clause/where.go

    		} else {
    			expr.Build(builder)
    		}
    	}
    }
    
    // MergeClause merge where clauses
    func (where Where) MergeClause(clause *Clause) {
    	if w, ok := clause.Expression.(Where); ok {
    		exprs := make([]Expression, len(w.Exprs)+len(where.Exprs))
    		copy(exprs, w.Exprs)
    		copy(exprs[len(w.Exprs):], where.Exprs)
    		where.Exprs = exprs
    	}
    
    	clause.Expression = where
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
Back to top