Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 426 for statement (0.22 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  2. statement.go

    			subdb := v.Session(&Session{Logger: logger.Discard, DryRun: true}).getInstance()
    			if v.Statement.SQL.Len() > 0 {
    				var (
    					vars = subdb.Statement.Vars
    					sql  = v.Statement.SQL.String()
    				)
    
    				subdb.Statement.Vars = make([]interface{}, 0, len(vars))
    				for _, vv := range vars {
    					subdb.Statement.Vars = append(subdb.Statement.Vars, vv)
    					bindvar := strings.Builder{}
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  3. statement_test.go

    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestWhereCloneCorruption(t *testing.T) {
    	for whereCount := 1; whereCount <= 8; whereCount++ {
    		t.Run(fmt.Sprintf("w=%d", whereCount), func(t *testing.T) {
    			s := new(Statement)
    			for w := 0; w < whereCount; w++ {
    				s = s.clone()
    				s.AddClause(clause.Where{
    					Exprs: s.BuildCondition(fmt.Sprintf("where%d", w)),
    				})
    			}
    
    			s1 := s.clone()
    			s1.AddClause(clause.Where{
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Sat Dec 23 13:19:41 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  4. helm/minio/templates/_helper_policy.tpl

    {{- $statements_length := len .statements -}} {{- $statements_length := sub $statements_length 1 -}} { "Version": "2012-10-17", "Statement": [ {{- range $i, $statement := .statements }} { "Effect": "{{ $statement.effect | default "Allow" }}", "Action": [ "{{ $statement.actions | join "\",\n\"" }}" ]{{ if $statement.resources }}, "Resource": [ "{{ $statement.resources | join "\",\n\"" }}" ]{{ end }} {{- if $statement.conditions }} {{- $condition_len := len $statement.conditions }} {{- $condition_len...
    Others
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Aug 19 14:39:11 GMT 2023
    - 872 bytes
    - Viewed (0)
  5. finisher_api.go

    					case string:
    						if field := db.Statement.Schema.LookUpField(column); field != nil {
    							db.AddError(field.Set(db.Statement.Context, db.Statement.ReflectValue, eq.Value))
    						}
    					case clause.Column:
    						if field := db.Statement.Schema.LookUpField(column.Name); field != nil {
    							db.AddError(field.Set(db.Statement.Context, db.Statement.ReflectValue, eq.Value))
    						}
    					}
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/sql/StatementUtil.java

         * {@link Statement}を閉じます。
         * <p>
         * {@link Statement#close()}が例外をスローした場合はログにエラーメッセージを出力します。 例外は再スローされません。
         * </p>
         *
         * @param statement
         *            {@link Statement}
         * @see Statement#close()
         */
        public static void close(final Statement statement) {
            if (statement == null) {
                return;
            }
            try {
                statement.close();
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  7. callbacks/delete.go

    			return
    		}
    
    		if db.Statement.Schema != nil {
    			for _, c := range db.Statement.Schema.DeleteClauses {
    				db.Statement.AddClause(c)
    			}
    		}
    
    		if db.Statement.SQL.Len() == 0 {
    			db.Statement.SQL.Grow(100)
    			db.Statement.AddClauseIfNotExists(clause.Delete{})
    
    			if db.Statement.Schema != nil {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Feb 25 02:48:23 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  8. callbacks/create.go

    		if db.Statement.Schema != nil {
    			if !db.Statement.Unscoped {
    				for _, c := range db.Statement.Schema.CreateClauses {
    					db.Statement.AddClause(c)
    				}
    			}
    
    			if supportReturning && len(db.Statement.Schema.FieldsWithDefaultDBValue) > 0 {
    				if _, ok := db.Statement.Clauses["RETURNING"]; !ok {
    					fromColumns := make([]clause.Column, 0, len(db.Statement.Schema.FieldsWithDefaultDBValue))
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  9. tests/table_test.go

    	r := dryDB.Table("`user`").Find(&User{}).Statement
    	if !regexp.MustCompile("SELECT \\* FROM `user`").MatchString(r.Statement.SQL.String()) {
    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    	r = dryDB.Table("user as u").Select("name").Find(&User{}).Statement
    	if !regexp.MustCompile("SELECT .name. FROM user as u WHERE .u.\\..deleted_at. IS NULL").MatchString(r.Statement.SQL.String()) {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Sat Mar 09 09:31:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  10. scan.go

    				if isArrayKind {
    					db.Statement.ReflectValue.Set(reflect.Zero(reflectValue.Type()))
    				} else {
    					// if the slice cap is externally initialized, the externally initialized slice is directly used here
    					if reflectValue.Cap() == 0 {
    						db.Statement.ReflectValue.Set(reflect.MakeSlice(reflectValue.Type(), 0, 20))
    					} else {
    						reflectValue.SetLen(0)
    						db.Statement.ReflectValue.Set(reflectValue)
    					}
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Mar 15 06:14:48 GMT 2024
    - 9.8K bytes
    - Viewed (0)
Back to top