Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 133 for upvars (0.19 sec)

  1. utils/tests/dummy_dialecter.go

    		}
    		shiftDelimiter++
    	}
    
    	if continuousBacktick > 0 && !selfQuoted {
    		writer.WriteString("``")
    	}
    	writer.WriteByte('`')
    }
    
    func (DummyDialector) Explain(sql string, vars ...interface{}) string {
    	return logger.ExplainSQL(sql, nil, `"`, vars...)
    }
    
    func (DummyDialector) DataTypeOf(*schema.Field) string {
    	return ""
    }
    
    func (d DummyDialector) Translate(err error) error {
    	return d.TranslatedErr
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 06 06:03:31 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  2. clause/delete_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestDelete(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Delete{}, clause.From{}},
    			"DELETE FROM `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Delete{Modifier: "LOW_PRIORITY"}, clause.From{}},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Jun 02 01:18:01 GMT 2020
    - 608 bytes
    - Viewed (0)
  3. callbacks/row.go

    			db.Statement.Dest, db.Error = db.Statement.ConnPool.QueryContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    		} else {
    			db.Statement.Dest = db.Statement.ConnPool.QueryRowContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    		}
    
    		db.RowsAffected = -1
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 05:40:41 GMT 2023
    - 581 bytes
    - Viewed (0)
  4. tests/test_inherited_custom_class.py

            return uuid.UUID
    
        @property
        def __dict__(self):
            """Spoof a missing __dict__ by raising TypeError, this is how
            asyncpg.pgroto.pgproto.UUID behaves"""
            raise TypeError("vars() argument must have __dict__ attribute")
    
    
    @needs_pydanticv2
    def test_pydanticv2():
        from pydantic import field_serializer
    
        app = FastAPI()
    
        @app.get("/fast_uuid")
        def return_fast_uuid():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3K bytes
    - Viewed (0)
  5. .github/workflows/update-rbe.yml

            map sigbuild-r2.12-python3.9 2.12-python3.9
            map sigbuild-r2.12-python3.10 2.12-python3.10
            map sigbuild-r2.12-python3.11 2.12-python3.11
            # TF 2.12 + Clang (containers are the same, but env vars in configs.bzl are different)
            map sigbuild-r2.12-clang 2.12-python3.9
            map sigbuild-r2.12-clang-python3.8 2.12-python3.8
            map sigbuild-r2.12-clang-python3.9 2.12-python3.9
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 10 15:40:34 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  6. clause/locking_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestLocking(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Locking{Strength: clause.LockingStrengthUpdate}},
    			"SELECT * FROM `users` FOR UPDATE", nil,
    		},
    		{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  7. tests/sql_builder_test.go

    	stmt := dryRunDB.Create(&user).Statement
    	if stmt.SQL.String() == "" || len(stmt.Vars) != 9 {
    		t.Errorf("Failed to generate sql, got %v", stmt.SQL.String())
    	}
    
    	stmt2 := dryRunDB.Find(&user, "id = ?", user.ID).Statement
    	if stmt2.SQL.String() == "" || len(stmt2.Vars) != 1 {
    		t.Errorf("Failed to generate sql, got %v", stmt2.SQL.String())
    	}
    }
    
    type ageInt int8
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  8. cmd/object-lambda-handlers.go

    	objectAPI := api.ObjectAPI()
    	if objectAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    	object, err := unescapePath(vars["object"])
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Check for auth type to return S3 compatible error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  9. callbacks/delete.go

    				if db.AddError(err) == nil {
    					db.RowsAffected, _ = result.RowsAffected()
    				}
    
    				return
    			}
    
    			if rows, err := db.Statement.ConnPool.QueryContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...); db.AddError(err) == nil {
    				gorm.Scan(rows, db, mode)
    				db.AddError(rows.Close())
    			}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Feb 25 02:48:23 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  10. schema/interfaces.go

    package schema
    
    import (
    	"gorm.io/gorm/clause"
    )
    
    // ConstraintInterface database constraint interface
    type ConstraintInterface interface {
    	GetName() string
    	Build() (sql string, vars []interface{})
    }
    
    // GormDataTypeInterface gorm data type interface
    type GormDataTypeInterface interface {
    	GormDataType() string
    }
    
    // FieldNewValuePool field new scan value pool
    type FieldNewValuePool interface {
    	Get() interface{}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sun Feb 04 07:49:19 GMT 2024
    - 980 bytes
    - Viewed (0)
Back to top