- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 857 for Nil$ (0.04 sec)
-
tests/gorm_test.go
"gorm.io/gorm" ) func TestOpen(t *testing.T) { dsn := "gorm:gorm@tcp(localhost:9910)/gorm?loc=Asia%2FHongKong" // invalid loc _, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) if err == nil { t.Fatalf("should returns error but got nil") } } func TestReturningWithNullToZeroValues(t *testing.T) { dialect := DB.Dialector.Name() switch dialect { case "mysql", "sqlserver":
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jun 01 07:22:21 UTC 2023 - 3.3K bytes - Viewed (0) -
callbacks/create.go
pkFieldName = "@id" ) insertID, err := result.LastInsertId() insertOk := err == nil && insertID > 0 if !insertOk { if !supportReturning { db.AddError(err) } return } if db.Statement.Schema != nil { if db.Statement.Schema.PrioritizedPrimaryField == nil || !db.Statement.Schema.PrioritizedPrimaryField.HasDefaultValue { return }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Apr 08 03:29:55 UTC 2024 - 12.5K bytes - Viewed (0) -
internal/grid/msg_gen.go
err = dc.ReadNil() if err != nil { err = msgp.WrapError(err, "Err") return } z.Err = nil } else { if z.Err == nil { z.Err = new(string) } *z.Err, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "Err") return } } case "t": z.T, err = dc.ReadTime() if err != nil { err = msgp.WrapError(err, "T")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jul 25 21:07:21 UTC 2024 - 22.4K bytes - Viewed (0) -
internal/kms/stub.go
Ciphertext: []byte("stubplaincharswhichare32bytelong"), }, nil } // Decrypt is a non-functional stub. func (s StubKMS) Decrypt(_ context.Context, req *DecryptRequest) ([]byte, error) { return req.Ciphertext, nil } // MAC is a non-functional stub. func (s StubKMS) MAC(_ context.Context, m *MACRequest) ([]byte, error) { return m.Message, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 3.6K bytes - Viewed (0) -
tests/error_translator_test.go
if err = db.AutoMigrate(&City{}, &Museum{}); err != nil { t.Fatalf("failed to migrate countries & cities tables, got error: %v", err) } city := City{Name: "Amsterdam"} err = db.Create(&city).Error if err != nil { t.Fatalf("failed to create city: %v", err) } err = db.Create(&Museum{Name: "Eye Filmmuseum", CityID: city.ID}).Error if err != nil { t.Fatalf("failed to create museum: %v", err) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jul 12 13:21:22 UTC 2023 - 3.1K bytes - Viewed (0) -
internal/config/etcd/etcd.go
func New(cfg Config) (*clientv3.Client, error) { if !cfg.Enabled { return nil, nil } cli, err := clientv3.New(cfg.Config) if err != nil { return nil, err } cli.KV = namespace.NewKV(cli.KV, cfg.PathPrefix) cli.Watcher = namespace.NewWatcher(cli.Watcher, cfg.PathPrefix) cli.Lease = namespace.NewLease(cli.Lease, cfg.PathPrefix) return cli, nil } func parseEndpoints(endpoints string) ([]string, bool, error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 28 23:17:22 UTC 2024 - 5.2K bytes - Viewed (0) -
cmd/xl-storage.go
if contextCanceled(ctx) { return nil, time.Time{}, ctx.Err() } if err := checkPathLength(itemPath); err != nil { return nil, time.Time{}, err } f, err := OpenFile(itemPath, readMode, 0o666) if err != nil { return nil, time.Time{}, err } defer f.Close() stat, err := f.Stat() if err != nil { return nil, time.Time{}, err } if stat.IsDir() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 91.3K bytes - Viewed (0) -
internal/config/lambda/event/arn_test.go
testCases := []struct { s string expectedARN *ARN expectErr bool }{ {"", nil, true}, {"arn:minio:s3-object-lambda:::", nil, true}, {"arn:minio:s3-object-lambda::1:webhook:remote", nil, true}, {"arn:aws:s3-object-lambda::1:webhook", nil, true}, {"arn:minio:sns::1:webhook", nil, true}, {"arn:minio:s3-object-lambda::1:webhook", &ARN{TargetID{"1", "webhook"}, ""}, false},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 2.2K bytes - Viewed (0) -
cmd/dummy-handlers.go
ctx := newContext(r, w, "GetBucketWebsite") defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r)) vars := mux.Vars(r) bucket := vars["bucket"] objAPI := api.ObjectAPI() if objAPI == nil { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL) return } // Allow GetBucketWebsite if policy action is set, since this is a dummy call
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 15:25:16 UTC 2024 - 8.8K bytes - Viewed (0) -
internal/config/notify/parse.go
if err != nil { return nil, err } for id, args := range natsTargets { if !args.Enable { continue } t, err := target.NewNATSTarget(id, args, logOnceIf) if err != nil { return nil, err } targets = append(targets, t) } case config.NotifyNSQSubSys: nsqTargets, err := GetNotifyNSQ(cfg[config.NotifyNSQSubSys]) if err != nil { return nil, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 47K bytes - Viewed (0)