Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for locale (0.16 sec)

  1. schema/relationship_test.go

    			Name: "LocaleTags", Type: schema.Many2Many, Schema: "Blog", FieldSchema: "Tag",
    			JoinTable: JoinTable{Name: "locale_blog_tags", Table: "locale_blog_tags"},
    			References: []Reference{
    				{"ID", "Blog", "BlogID", "locale_blog_tags", "", true},
    				{"Locale", "Blog", "BlogLocale", "locale_blog_tags", "", true},
    				{"ID", "Tag", "TagID", "locale_blog_tags", "", false},
    			},
    		},
    	)
    }
    
    func TestMultipleMany2Many(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  2. tests/sql_builder_test.go

    	}
    
    	if DB.Dialector.Name() == "sqlserver" {
    		t.Skip("Skip SQL Server for this test, because it too difference with other dialects.")
    	}
    
    	date, _ := time.ParseInLocation("2006-01-02", "2021-10-18", time.Local)
    
    	// find
    	sql := DB.ToSQL(func(tx *gorm.DB) *gorm.DB {
    		return tx.Model(&User{}).Where("id = ?", 100).Limit(10).Order("age desc").Find(&[]User{})
    	})
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
Back to top