Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 236 for limit (0.19 sec)

  1. clause/limit.go

    // Limit limit clause
    type Limit struct {
    	Limit  *int
    	Offset int
    }
    
    // Name where clause name
    func (limit Limit) Name() string {
    	return "LIMIT"
    }
    
    // Build build where clause
    func (limit Limit) Build(builder Builder) {
    	if limit.Limit != nil && *limit.Limit >= 0 {
    		builder.WriteString("LIMIT ")
    		builder.AddVar(builder, *limit.Limit)
    	}
    	if limit.Offset > 0 {
    		if limit.Limit != nil && *limit.Limit >= 0 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 942 bytes
    - Viewed (0)
  2. clause/limit_test.go

    			"SELECT * FROM `users` LIMIT ?",
    			[]interface{}{limit0},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Limit{Limit: &limit0}, clause.Limit{Offset: 0}},
    			"SELECT * FROM `users` LIMIT ?",
    			[]interface{}{limit0},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Limit{Offset: 20}},
    			"SELECT * FROM `users` OFFSET ?",
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. cmd/server-rlimit.go

    		return err
    	}
    
    	// Set max memory limit as current memory limit.
    	if _, maxLimit, err = sys.GetMaxMemoryLimit(); err != nil {
    		return err
    	}
    
    	// set debug memory limit instead of GOMEMLIMIT env
    	_ = setDebugMemoryLimit(ctx)
    
    	err = sys.SetMaxMemoryLimit(maxLimit, maxLimit)
    	return err
    }
    
    func setDebugMemoryLimit(ctx *cli.Context) error {
    	if ctx == nil {
    		return nil
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. cmd/handler-api.go

    	if runtime.GOOS == "linux" {
    		// Useful in container mode
    		limit := cgroupMemLimit()
    		if limit > 0 {
    			// A valid value is found, return its 75%
    			available = (limit * 3) / 4
    			return
    		}
    	} // for all other platforms limits are based on virtual memory.
    
    	memStats, err := mem.VirtualMemory()
    	if err != nil {
    		return
    	}
    	// A valid value is available return its 75%
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  5. tests/test_dependency_overrides.py

            "in": "main-depends",
            "params": {"q": "foo", "skip": 0, "limit": 100},
        }
    
    
    def test_main_depends_q_foo_skip_100_limit_200():
        response = client.get("/main-depends/?q=foo&skip=100&limit=200")
        assert response.status_code == 200
        assert response.json() == {
            "in": "main-depends",
            "params": {"q": "foo", "skip": 100, "limit": 200},
        }
    
    
    def test_decorator_depends():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

          }
    
          if (dot < limit) {
            result.writeByte('.'.code)
            pos = dot + 1
          } else {
            break
          }
        }
    
        return result.readUtf8()
      }
    
      private fun encodeLabel(
        string: String,
        pos: Int,
        limit: Int,
        result: Buffer,
      ): Boolean {
        if (!string.requiresEncode(pos, limit)) {
          result.writeUtf8(string, pos, limit)
          return true
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Splitter.java

      private final int limit;
    
      private Splitter(Strategy strategy) {
        this(strategy, false, CharMatcher.none(), Integer.MAX_VALUE);
      }
    
      private Splitter(Strategy strategy, boolean omitEmptyStrings, CharMatcher trimmer, int limit) {
        this.strategy = strategy;
        this.omitEmptyStrings = omitEmptyStrings;
        this.trimmer = trimmer;
        this.limit = limit;
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/flowcontrol/v1beta1/generated.proto

      // `borrowingLimitPercent`, if present, configures a limit on how many
      // seats this priority level can borrow from other priority levels.
      // The limit is known as this level's BorrowingConcurrencyLimit
      // (BorrowingCL) and is a limit on the total number of seats that this
      // level may borrow at any one time.
      // This field holds the ratio of that limit to the level's nominal
      // concurrency limit. When this field is non-nil, it must hold a
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/flowcontrol/v1beta2/generated.proto

      // `borrowingLimitPercent`, if present, configures a limit on how many
      // seats this priority level can borrow from other priority levels.
      // The limit is known as this level's BorrowingConcurrencyLimit
      // (BorrowingCL) and is a limit on the total number of seats that this
      // level may borrow at any one time.
      // This field holds the ratio of that limit to the level's nominal
      // concurrency limit. When this field is non-nil, it must hold a
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/flowcontrol/v1alpha1/generated.proto

      // `borrowingLimitPercent`, if present, configures a limit on how many
      // seats this priority level can borrow from other priority levels.
      // The limit is known as this level's BorrowingConcurrencyLimit
      // (BorrowingCL) and is a limit on the total number of seats that this
      // level may borrow at any one time.
      // This field holds the ratio of that limit to the level's nominal
      // concurrency limit. When this field is non-nil, it must hold a
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.4K bytes
    - Viewed (0)
Back to top