Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for onUpdate (0.28 sec)

  1. tests/error_translator_test.go

    	type City struct {
    		gorm.Model
    		Name string `gorm:"unique"`
    	}
    
    	type Museum struct {
    		gorm.Model
    		Name   string `gorm:"unique"`
    		CityID uint
    		City   City `gorm:"Constraint:OnUpdate:CASCADE,OnDelete:CASCADE;FOREIGNKEY:CityID;References:ID"`
    	}
    
    	db, err := OpenTestConnection(&gorm.Config{TranslateError: true})
    	if err != nil {
    		t.Fatalf("failed to connect database, got error %v", err)
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Jul 12 13:21:22 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. schema/relationship.go

    	OnDelete        string
    	OnUpdate        string
    }
    
    func (constraint *Constraint) GetName() string { return constraint.Name }
    
    func (constraint *Constraint) Build() (sql string, vars []interface{}) {
    	sql = "CONSTRAINT ? FOREIGN KEY ? REFERENCES ??"
    	if constraint.OnDelete != "" {
    		sql += " ON DELETE " + constraint.OnDelete
    	}
    
    	if constraint.OnUpdate != "" {
    		sql += " ON UPDATE " + constraint.OnUpdate
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  3. tests/associations_test.go

    	type Profile struct {
    		ID       uint
    		Name     string
    		MemberID uint
    	}
    
    	type Member struct {
    		ID      uint
    		Refer   uint `gorm:"uniqueIndex"`
    		Name    string
    		Profile Profile `gorm:"Constraint:OnUpdate:CASCADE,OnDelete:CASCADE;FOREIGNKEY:MemberID;References:Refer"`
    	}
    
    	DB.Migrator().DropTable(&Profile{}, &Member{})
    
    	if err := DB.AutoMigrate(&Profile{}, &Member{}); err != nil {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  4. src/main/webapp/js/admin/popper.min.js

    .placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,n=e.enabled;return n&&o===t})}function B(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var...
    JavaScript
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Fri Feb 07 10:28:50 GMT 2020
    - 20.8K bytes
    - Viewed (0)
  5. src/main/webapp/js/admin/popper.min.js.map

    no-op.<br />\n   * Access Popper.js instance with `data.instance`.\n   * @prop {onUpdate}\n   */\n  onUpdate: () => {},\n\n  /**\n   * List of modifiers used to modify the offsets before they are applied to the popper.\n   * They provide most of the functionalities of Popper.js.\n   * @prop {modifiers}\n   */\n  modifiers,\n};\n\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n","import applyStyle, { applyStyleOnLoad } from...
    Plain Text
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Fri Feb 07 10:28:50 GMT 2020
    - 121K bytes
    - Viewed (2)
  6. src/main/webapp/js/bootstrap.min.js

    fiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Qe},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},{},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,{},e.config.offset(t.offset...
    JavaScript
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Fri Feb 07 10:28:50 GMT 2020
    - 58.6K bytes
    - Viewed (0)
  7. src/main/webapp/js/admin/bootstrap.min.js

    fiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Qe},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},{},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,{},e.config.offset(t.offset...
    JavaScript
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Fri Feb 07 10:28:50 GMT 2020
    - 58.6K bytes
    - Viewed (3)
  8. src/main/webapp/js/bootstrap.min.js.map

    Plain Text
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Sat Jan 11 06:54:28 GMT 2020
    - 189.9K bytes
    - Viewed (0)
  9. src/main/webapp/js/admin/bootstrap.min.js.map

    Plain Text
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Fri Feb 07 10:28:50 GMT 2020
    - 185.8K bytes
    - Viewed (0)
  10. cmd/metacache_test.go

    		lastUpdate:   metaCacheTestsetTimestamp.Add(-20 * time.Minute),
    		lastHandout:  metaCacheTestsetTimestamp.Add(-20 * time.Minute),
    		dataVersion:  metacacheStreamVersion,
    	},
    	4: {
    		id:           "case-5-noupdate",
    		bucket:       "bucket",
    		root:         "folder/prefix",
    		recursive:    false,
    		status:       scanStateStarted,
    		fileNotFound: false,
    		error:        "",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Sep 08 18:06:45 GMT 2021
    - 6.8K bytes
    - Viewed (0)
Back to top