Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 546 for from (0.22 sec)

  1. src/cmd/asm/internal/asm/asm.go

    			// ADR label, R. Label is in From.
    			target = &a[0]
    			prog.To = a[1]
    			targetAddr = &prog.From
    		} else {
    			target = &a[1]
    			prog.From = a[0]
    		}
    	case 3:
    		if p.arch.Family == sys.PPC64 {
    			// Special 3-operand jumps.
    			// a[1] is a register number expressed as a constant or register value
    			target = &a[2]
    			prog.From = a[0]
    			if a[0].Type != obj.TYPE_CONST {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  2. tests/create_test.go

    		t.Fatalf("failed to create data from map, got error: %v", err)
    	}
    
    	var result1 User
    	if err := DB.Where("name = ?", "create_from_map_1").First(&result1).Error; err != nil || result1.Age != 18 {
    		t.Fatalf("failed to create from map, got error %v", err)
    	}
    
    	datas := []map[string]interface{}{
    		{"Name": "create_from_map_2", "Age": 19},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  3. internal/s3select/select_test.go

    			wantResult: `{"_1":1}`,
    		},
    		{
    			name:       "cast_from_int_to_float",
    			query:      `SELECT cast(1 as float) FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":1}`,
    		},
    		{
    			name:       "cast_from_float_to_float",
    			query:      `SELECT cast(1.0 as float) FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":1}`,
    		},
    		{
    			name:       "arithmetic_integer_operand",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  4. tests/benchmark_test.go

    	for x := 0; x < b.N; x++ {
    		DB.Raw("select * from users where id = ?", user.ID).Scan(&u)
    	}
    }
    
    func BenchmarkScanSlice(b *testing.B) {
    	DB.Exec("delete from users")
    	for i := 0; i < 10_000; i++ {
    		user := *GetUser(fmt.Sprintf("scan-%d", i), Config{})
    		DB.Create(&user)
    	}
    
    	var u []User
    	b.ResetTimer()
    	for x := 0; x < b.N; x++ {
    		DB.Raw("select * from users").Scan(&u)
    	}
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jun 01 03:50:57 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  5. src/archive/tar/stat_unix.go

    		case "linux":
    			// Copied from golang.org/x/sys/unix/dev_linux.go.
    			major := uint32((dev & 0x00000000000fff00) >> 8)
    			major |= uint32((dev & 0xfffff00000000000) >> 32)
    			minor := uint32((dev & 0x00000000000000ff) >> 0)
    			minor |= uint32((dev & 0x00000ffffff00000) >> 12)
    			h.Devmajor, h.Devminor = int64(major), int64(minor)
    		case "darwin", "ios":
    			// Copied from golang.org/x/sys/unix/dev_darwin.go.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. internal/handlers/proxy.go

    	protoRegex = regexp.MustCompile(`(?i)^(;|,| )+(?:proto=)(https|http)`)
    )
    
    // GetSourceScheme retrieves the scheme from the X-Forwarded-Proto and RFC7239
    // Forwarded headers (in that order).
    func GetSourceScheme(r *http.Request) string {
    	var scheme string
    
    	// Retrieve the scheme from X-Forwarded-Proto.
    	if proto := r.Header.Get(xForwardedProto); proto != "" {
    		scheme = strings.ToLower(proto)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  7. cmd/common-main.go

    }
    
    func buildServerCtxt(ctx *cli.Context, ctxt *serverCtxt) (err error) {
    	// Get "json" flag from command line argument and
    	ctxt.JSON = ctx.IsSet("json") || ctx.GlobalIsSet("json")
    	// Get quiet flag from command line argument.
    	ctxt.Quiet = ctx.IsSet("quiet") || ctx.GlobalIsSet("quiet")
    	// Get anonymous flag from command line argument.
    	ctxt.Anonymous = ctx.IsSet("anonymous") || ctx.GlobalIsSet("anonymous")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 35.5K bytes
    - Viewed (2)
  8. cni/pkg/log/uds.go

    		}
    		msg.Msg = strings.TrimSpace(msg.Msg)
    		messages = append(messages, msg)
    	}
    	// Lock log message printing to prevent log messages from different CNI
    	// processes interleave.
    	l.mu.Lock()
    	defer l.mu.Unlock()
    	for _, m := range messages {
    		// There is no fatal log from CNI plugin
    		switch m.Level {
    		case "debug":
    			pluginLog.LogWithTime(log.DebugLevel, m.Msg, m.Time)
    		case "info":
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 01:05:12 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  9. cni/pkg/iptables/iptables.go

    		"-j", "CONNMARK",
    		"--set-xmark", inpodTproxyMark)
    
    	// Handle healthcheck probes from the host node. In the host netns, before the packet enters the pod, we SNAT
    	// the healthcheck packet to a fixed IP if the packet is coming from a node-local process with a socket.
    	//
    	// We do this so we can exempt this traffic from ztunnel capture/proxy - otherwise both kube-proxy (legit)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  10. internal/s3select/sql/utils.go

    		// Get last part of path string.
    		ps = ps[idx+1:]
    	}
    	return ps, true
    }
    
    // HasKeypath returns if the from clause has a key path -
    // e.g. S3object[*].id
    func (from *TableExpression) HasKeypath() bool {
    	return len(from.Table.PathExpr) > 1
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Nov 10 16:12:50 GMT 2021
    - 3.6K bytes
    - Viewed (0)
Back to top