Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for statement (0.36 sec)

  1. internal/s3select/sql/statement.go

    		err := expr.aggregateRow(input, e.tableAlias)
    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // Eval - evaluates the Select statement for the given record. It
    // applies only to non-aggregation queries.
    // The function returns whether the statement passed the WHERE clause and should be outputted.
    func (e *SelectStatement) Eval(input, output Record) (Record, error) {
    	ok, err := e.isPassingWhereClause(input)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  2. internal/s3select/select.go

    	}
    
    	if parsedS3Select.Output.IsEmpty() {
    		return errMissingRequiredParameter(fmt.Errorf("OutputSerialization must be provided"))
    	}
    
    	statement, err := sql.ParseSelectStatement(parsedS3Select.Expression)
    	if err != nil {
    		return err
    	}
    
    	parsedS3Select.statement = &statement
    
    	*s3Select = S3Select(parsedS3Select)
    	return nil
    }
    
    func (s3Select *S3Select) outputRecord() sql.Record {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    "admin:OBDInfo","admin:BandwidthMonitor"],"Resource":["arn:aws:s3:::*"]}]},"readonly":{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["s3:GetBucketLocation","s3:GetObject"],"Resource":["arn:aws:s3:::*"]}]},"readwrite":{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["s3:*"],"Resource":["arn:aws:s3:::*"]}]},"writeonly":{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["s3:PutObject"],"Resource":["arn:aws:s3:::*"]}]}}`,
    
    		// Built-in user should...
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. internal/event/target/postgresql.go

    	case event.NamespaceFormat:
    		// insert or update statement
    		if target.updateStmt, err = target.db.Prepare(fmt.Sprintf(psqlUpdateRow, target.args.Table)); err != nil {
    			return err
    		}
    		// delete statement
    		if target.deleteStmt, err = target.db.Prepare(fmt.Sprintf(psqlDeleteRow, target.args.Table)); err != nil {
    			return err
    		}
    	case event.AccessFormat:
    		// insert statement
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. cmd/iam.go

    	// policy, regardless of whether the number of statements is 0, this
    	// includes `null`, `{}` and `{"Statement": null}`. In fact, MinIO Console
    	// sends `null` when no policy is set and the intended behavior is that the
    	// service account should inherit parent policy.
    	//
    	// However, for a policy like `{"Statement":[]}`, the intention is to not
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  6. cmd/server_test.go

    	bucketPolicyBuf := `{"Version":"2012-10-17","Statement":[{"Action":["s3:GetBucketLocation","s3:ListBucket"],"Effect":"Allow","Principal":{"AWS":["*"]},"Resource":["arn:aws:s3:::%s"]},{"Action":["s3:GetObject"],"Effect":"Allow","Principal":{"AWS":["*"]},"Resource":["arn:aws:s3:::%s/this*"]}]}`
    
    	// generate a random bucket Name.
    	bucketName := getRandomBucketName()
    	// create the policy statement string with the randomly generated bucket name.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  7. cmd/test-utils_test.go

    //	anonReq   - unsigned *http.Request to invoke the handler's response for anonymous requests.
    //	policyFunc    - function to return bucketPolicy statement which would permit the anonymous request to be served.
    //
    // The test works in 2 steps, here is the description of the steps.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  8. cmd/policy_test.go

    		Version:    policy.DefaultVersion,
    		Statements: []miniogopolicy.Statement{},
    	}
    
    	case2Result := &policy.BucketPolicy{
    		Version:    policy.DefaultVersion,
    		Statements: []policy.BPStatement{},
    	}
    
    	case3PolicyInfo := &miniogopolicy.BucketAccessPolicy{
    		Version:    "12-10-2012",
    		Statements: getReadOnlyStatement("mybucket", "/myobject*"),
    	}
    
    	testCases := []struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  9. cmd/bucket-policy-handlers_test.go

    	bucketPolicyTemplate := `{"Version":"2012-10-17","Statement":[{"Sid":"","Effect":"Allow","Principal":{"AWS":["*"]},"Action":["s3:GetBucketLocation","s3:ListBucket"],"Resource":["arn:aws:s3:::%s"]},{"Sid":"","Effect":"Allow","Principal":{"AWS":["*"]},"Action":["s3:GetObject"],"Resource":["arn:aws:s3:::%s/this*"]}]}`
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  10. cmd/admin-handlers-users_test.go

    	policy1 := "deny-svc"
    	policy2 := "allow-svc"
    	policyBytes := []byte(`{
     "Version": "2012-10-17",
     "Statement": [
      {
       "Effect": "Deny",
       "Action": [
        "admin:CreateServiceAccount"
       ]
      }
     ]
    }`)
    
    	newPolicyBytes := []byte(`{
     "Version": "2012-10-17",
     "Statement": [
      {
       "Effect": "Allow",
       "Action": [
        "s3:ListBucket"
       ],
       "Resource": [
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
Back to top