- Sort Score
- Num 10 results
- Language All
Results 211 - 220 of 611 for Schemas (0.06 seconds)
-
schema/constraint.go
} // ParseUniqueConstraints parse schema unique constraints func (schema *Schema) ParseUniqueConstraints() map[string]UniqueConstraint { uniques := make(map[string]UniqueConstraint) for _, field := range schema.Fields { if field.Unique { name := schema.namer.UniqueName(schema.Table, field.DBName) uniques[name] = UniqueConstraint{Name: name, Field: field} } }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Mar 18 07:33:54 GMT 2024 - 1.9K bytes - Click Count (0) -
schema/relationship.go
relation.Type = HasMany } } if schema.err == nil { schema.setRelation(relation) switch relation.Type { case HasOne: schema.Relationships.HasOne = append(schema.Relationships.HasOne, relation) case HasMany: schema.Relationships.HasMany = append(schema.Relationships.HasMany, relation) case BelongsTo: schema.Relationships.BelongsTo = append(schema.Relationships.BelongsTo, relation) case Many2Many:Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun Nov 16 04:11:05 GMT 2025 - 23.1K bytes - Click Count (1) -
callbacks/delete.go
return } if db.Statement.Schema != nil { for _, c := range db.Statement.Schema.DeleteClauses { db.Statement.AddClause(c) } } if db.Statement.SQL.Len() == 0 { db.Statement.SQL.Grow(100) db.Statement.AddClauseIfNotExists(clause.Delete{}) if db.Statement.Schema != nil {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 5.8K bytes - Click Count (0) -
schema/constraint_test.go
Name2 string `gorm:"uniqueIndex"` } user, err := schema.Parse(&UserUnique{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil { t.Fatalf("failed to parse user unique, got error %v", err) } constraints := user.ParseUniqueConstraints() results := map[string]schema.UniqueConstraint{ "uni_user_uniques_name1": { Name: "uni_user_uniques_name1", Field: &schema.Field{Name: "Name1", Unique: true}, }, }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun Feb 04 07:49:19 GMT 2024 - 2.2K bytes - Click Count (0) -
callbacks/query.go
case reflect.Slice: queryFields = db.Statement.ReflectValue.Type().Elem() != db.Statement.Schema.ModelType } } if queryFields { stmt := gorm.Statement{DB: db} // smaller struct if err := stmt.Parse(db.Statement.Dest); err == nil && (db.QueryFields || stmt.Schema.ModelType != db.Statement.Schema.ModelType) {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 10.4K bytes - Click Count (3) -
docs/fr/docs/advanced/path-operation-advanced-configuration.md
"schema": {} } } } }, "x-aperture-labs-portal": "blue" } } } } ``` ### Personnaliser le schéma OpenAPI d’un chemin d’accès { #custom-openapi-path-operation-schema }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 8K bytes - Click Count (0) -
docs/ko/docs/tutorial/response-model.md
이렇게 하면 **도구 지원**이 있는 타입 어노테이션과 **데이터 필터링**이라는 두 가지 장점을 모두 얻을 수 있습니다. ## 문서에서 보기 { #see-it-in-the-docs } 자동 생성 문서를 보면 입력 모델과 출력 모델이 각자의 JSON Schema를 가지고 있음을 확인할 수 있습니다: <img src="/img/tutorial/response-model/image01.png"> 그리고 두 모델 모두 대화형 API 문서에 사용됩니다: <img src="/img/tutorial/response-model/image02.png">Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 17.9K bytes - Click Count (0) -
schema/schema_helper_test.go
if r.Name != relation.Name { t.Errorf("schema %v relation name expects %v, but got %v", s, r.Name, relation.Name) } if r.Type != relation.Type { t.Errorf("schema %v relation name expects %v, but got %v", s, r.Type, relation.Type) } if r.Schema.Name != relation.Schema { t.Errorf("schema %v relation's schema expects %v, but got %v", s, relation.Schema, r.Schema.Name) }Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Aug 28 02:57:17 GMT 2025 - 7.5K bytes - Click Count (0) -
docs/en/docs/tutorial/security/first-steps.md
That's because it is using the same name as in the OpenAPI spec. So that if you need to investigate more about any of these security schemes you can just copy and paste it to find more information about it. /// The `oauth2_scheme` variable is an instance of `OAuth2PasswordBearer`, but it is also a "callable". It could be called as:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 8.3K bytes - Click Count (0) -
association.go
} } switch rel.Type { case schema.BelongsTo: associationDB := association.DB.Session(&Session{}) tx := associationDB.Model(reflect.New(rel.Schema.ModelType).Interface()) _, pvs := schema.GetIdentityFieldValuesMap(association.DB.Statement.Context, reflectValue, rel.Schema.PrimaryFields) if pcolumn, pvalues := schema.ToQueryValues(rel.Schema.Table, rel.Schema.PrimaryFieldDBNames, pvs); len(pvalues) > 0 {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun Oct 26 12:09:12 GMT 2025 - 23.6K bytes - Click Count (0)