- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 109 for omit (0.02 seconds)
-
generics.go
} if db, ok := jt.Subquery.(interface{ getInstance() *DB }); ok { stmt := db.getInstance().Statement if len(j.Selects) == 0 { j.Selects = stmt.Selects } if len(j.Omits) == 0 { j.Omits = stmt.Omits } } expr := clause.NamedExpr{SQL: fmt.Sprintf("%s JOIN (?) AS ?", joinType), Vars: []interface{}{jt.Subquery, clause.Table{Name: j.Alias}}} if j.On != nil {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:34:24 GMT 2026 - 26K bytes - Click Count (0) -
tests/joins_test.go
DB.Save(&user) results := make([]*User, 0) if err := DB.Table("users").Omit("name").Where("users.name = ?", "joins_with_omit").Joins("left join pets on pets.user_id = users.id").Find(&results).Error; err != nil { return } if len(results) != 2 || results[0].Name != "" || results[1].Name != "" { t.Errorf("Should find all two pets with Join omit and should not find user's name, got %+v", results) return } }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 15K bytes - Click Count (0) -
tests/generics_test.go
if err := gorm.G[User](DB).Omit("age").Create(ctx, &omitAge); err != nil { t.Fatalf("failed to create with Omit, got error: %v", err) } if omitAge.ID == 0 { t.Fatalf("no primary key found for omit-age user: %v", omitAge) } if stored, err := gorm.G[User](DB).Where("id = ?", omitAge.ID).First(ctx); err != nil { t.Fatalf("failed to reload omit-age user, got error: %v", err)Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Dec 30 08:11:14 GMT 2025 - 34.9K bytes - Click Count (0) -
statement.go
columnName := matches[3] if star != "" { return table, star } return table, columnName } return "", "" } }() // SelectAndOmitColumns get select and omit columns, select -> true, omit -> false func (stmt *Statement) SelectAndOmitColumns(requireCreate, requireUpdate bool) (map[string]bool, bool) { results := map[string]bool{} notRestricted := false
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 12 04:33:27 GMT 2025 - 20.9K bytes - Click Count (0) -
docs/en/docs/tutorial/response-model.md
* `tax: float = 10.5` has a default of `10.5`. * `tags: List[str] = []` has a default of an empty list: `[]`. but you might want to omit them from the result if they were not actually stored. For example, if you have models with many optional attributes in a NoSQL database, but you don't want to send very long JSON responses full of default values.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 15.5K bytes - Click Count (0) -
chainable_api.go
} return } // Omit specify fields that you want to ignore when creating, updating and querying func (db *DB) Omit(columns ...string) (tx *DB) { tx = db.getInstance() if len(columns) == 1 && strings.ContainsRune(columns[0], ',') { tx.Statement.Omits = strings.FieldsFunc(columns[0], utils.IsInvalidDBNameChar) } else { tx.Statement.Omits = columns } return }Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 14.8K bytes - Click Count (0) -
helm/minio/templates/post-job.yaml
{{- end }} {{- with .Values.postJob.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} {{- if .Values.postJob.securityContext.enabled }} securityContext: {{ omit .Values.postJob.securityContext "enabled" | toYaml | nindent 12 }} {{- end }} volumes: - name: etc-path emptyDir: {} - name: tmp emptyDir: {}Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Oct 10 15:48:31 GMT 2024 - 10.4K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/YamlRestCompatTestPlugin.java
yamlCompatTestSourceSet.getOutput().dir(transformCompatTestTask.map(RestCompatTestTransformTask::getOutputDirectory)); // Grab the original rest resources locations so we can omit them from the compatibility testing classpath down below Provider<Directory> originalYamlSpecsDir = project.getTasks() .withType(CopyRestApiTask.class)
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Fri Sep 03 16:26:11 GMT 2021 - 11.7K bytes - Click Count (0) -
helm/minio/templates/statefulset.yaml
runtimeClassName: "{{ .Values.runtimeClassName }}" {{- end }} {{- if and .Values.securityContext.enabled .Values.persistence.enabled }} securityContext: {{- omit .Values.securityContext "enabled" | toYaml | nindent 8 }} {{- end }} {{- if .Values.serviceAccount.create }} serviceAccountName: {{ .Values.serviceAccount.name }} {{- end }} containers:Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 11 12:21:05 GMT 2024 - 10.4K bytes - Click Count (0) -
tests/update_test.go
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 30.4K bytes - Click Count (0)