Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AfterInitialize (0.18 sec)

  1. gorm.go

    }
    
    // Apply update config to new config
    func (c *Config) Apply(config *Config) error {
    	if config != c {
    		*config = *c
    	}
    	return nil
    }
    
    // AfterInitialize initialize plugins after db connected
    func (c *Config) AfterInitialize(db *DB) error {
    	if db != nil {
    		for _, plugin := range c.Plugins {
    			if err := plugin.Initialize(db); err != nil {
    				return err
    			}
    		}
    	}
    	return nil
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sun Aug 20 11:46:56 GMT 2023
    - 11.6K bytes
    - Viewed (0)
Back to top