- Sort Score
- Result 10 results
- Languages All
Results 1061 - 1070 of 1,384 for funcs (0.02 sec)
-
tests/associations_many2many_test.go
package tests_test import ( "fmt" "sync" "testing" "gorm.io/gorm" "gorm.io/gorm/clause" . "gorm.io/gorm/utils/tests" ) func TestMany2ManyAssociation(t *testing.T) { user := *GetUser("many2many", Config{Languages: 2}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } CheckUser(t, user, user) // Find var user2 User
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Jun 10 13:05:19 UTC 2023 - 13.2K bytes - Viewed (0) -
callbacks/raw.go
package callbacks import ( "gorm.io/gorm" ) func RawExec(db *gorm.DB) { if db.Error == nil && !db.DryRun { result, err := db.Statement.ConnPool.ExecContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...) if err != nil { db.AddError(err) return } db.RowsAffected, _ = result.RowsAffected() }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Nov 29 01:33:20 UTC 2021 - 336 bytes - Viewed (0) -
internal/config/notify/parse.go
"github.com/minio/minio/internal/logger" "github.com/minio/pkg/v3/env" xnet "github.com/minio/pkg/v3/net" ) const ( formatNamespace = "namespace" ) const ( logSubsys = "notify" ) func logOnceIf(ctx context.Context, err error, id string, errKind ...interface{}) { logger.LogOnceIf(ctx, logSubsys, err, id, errKind...) } // ErrTargetsOffline - Indicates single/multiple target failures.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 47K bytes - Viewed (0) -
cmd/erasure-encode.go
import ( "context" "fmt" "io" ) // Writes to multiple writers type multiWriter struct { writers []io.Writer writeQuorum int errs []error } // Write writes data to writers. func (p *multiWriter) Write(ctx context.Context, blocks [][]byte) error { for i := range p.writers { if p.errs[i] != nil { continue } if p.writers[i] == nil { p.errs[i] = errDiskNotFound continue }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 2.9K bytes - Viewed (0) -
internal/config/dns/etcd_dns_test.go
} } } func TestPath(t *testing.T) { for _, path := range []string{"mydns", "skydns"} { result := msgPath("service.staging.skydns.local.", path) if result != etcdPathSeparator+path+"/local/skydns/staging/service" { t.Errorf("Failure to get domain's path with prefix: %s", result) } } } func TestUnPath(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java
return value; }); } protected <T> T processVirtualHost(final Function<String, T> func, final T defaultValue) { final Tuple3<String, String, String>[] vHosts = ComponentUtil.getFessConfig().getVirtualHosts(); return LaRequestUtil.getOptionalRequest().map(req -> {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.7K bytes - Viewed (0) -
cmd/bucket-lifecycle-audit.go
lcEventSrc_s3PutObject lcEventSrc_s3CopyObject lcEventSrc_s3CompleteMultipartUpload ) //revive:enable:var-naming type lcAuditEvent struct { lifecycle.Event source lcEventSrc } func (lae lcAuditEvent) Tags() map[string]string { event := lae.Event src := lae.source const ( ilmSrc = "ilm-src" ilmAction = "ilm-action" ilmDue = "ilm-due"
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 2.6K bytes - Viewed (0) -
tests/update_has_many_test.go
package tests_test import ( "testing" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) func TestUpdateHasManyAssociations(t *testing.T) { user := *GetUser("update-has-many", Config{}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } user.Pets = []*Pet{{Name: "pet1"}, {Name: "pet2"}} if err := DB.Save(&user).Error; err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 2K bytes - Viewed (0) -
istioctl/pkg/authz/analyzer.go
func NewAnalyzer(envoyConfig *configdump.Wrapper) (*Analyzer, error) { listeners, err := envoyConfig.GetDynamicListenerDump(true) if err != nil { return nil, fmt.Errorf("failed to get dynamic listener dump: %s", err) } return &Analyzer{listenerDump: listeners}, nil } // Print print the analysis results. func (a *Analyzer) Print(writer io.Writer) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jul 13 01:59:17 UTC 2022 - 2.1K bytes - Viewed (0) -
cmd/listen-notification-handlers.go
"github.com/minio/minio/internal/grid" "github.com/minio/minio/internal/logger" "github.com/minio/minio/internal/pubsub" "github.com/minio/mux" "github.com/minio/pkg/v3/policy" ) func (api objectAPIHandlers) ListenNotificationHandler(w http.ResponseWriter, r *http.Request) { ctx := newContext(r, w, "ListenNotification") defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6K bytes - Viewed (0)