Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FieldByName (0.04 sec)

  1. schema/schema.go

    				expectedPkgPath := path.Dir(reflect.TypeOf(schema).Elem().PkgPath())
    				if inVarPkg := methodValue.Type().In(0).Elem().PkgPath(); inVarPkg == expectedPkgPath {
    					reflect.Indirect(reflect.ValueOf(schema)).FieldByName(string(cbName)).SetBool(true)
    				} else {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 19 06:35:49 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  2. gorm.go

    	connPool := db.ConnPool
    	if db.Statement != nil && db.Statement.ConnPool != nil {
    		connPool = db.Statement.ConnPool
    	}
    	if tx, ok := connPool.(*sql.Tx); ok && tx != nil {
    		return (*sql.DB)(reflect.ValueOf(tx).Elem().FieldByName("db").UnsafePointer()), nil
    	}
    
    	if dbConnector, ok := connPool.(GetDBConnector); ok && dbConnector != nil {
    		if sqldb, err := dbConnector.GetDBConn(); sqldb != nil || err != nil {
    			return sqldb, err
    		}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 26 06:24:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top