Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SQL (0.02 sec)

  1. generics.go

    			subdb.Statement.SQL.Reset()
    			subdb.Statement.Vars = stmt.Vars
    			if strings.Contains(sql, "@") {
    				clause.NamedExpr{SQL: sql, Vars: vars}.Build(subdb.Statement)
    			} else {
    				clause.Expr{SQL: sql, Vars: vars}.Build(subdb.Statement)
    			}
    		} else {
    			subdb.Statement.Vars = append(stmt.Vars, subdb.Statement.Vars...)
    			subdb.callbacks.Query().Execute(subdb)
    		}
    
    		builder.WriteString(subdb.Statement.SQL.String())
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. tests/go.mod

    	github.com/HuaweiCloudDeveloper/gaussdb-go v1.0.0-rc1 // indirect
    	github.com/davecgh/go-spew v1.1.1 // indirect
    	github.com/go-sql-driver/mysql v1.9.3 // indirect
    	github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
    	github.com/golang-sql/sqlexp v0.1.0 // indirect
    	github.com/jackc/pgpassfile v1.0.0 // indirect
    	github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  3. statement.go

    					cv.BindVarTo(&bindvar, subdb.Statement, vv)
    					sql = strings.Replace(sql, bindvar.String(), "?", 1)
    				}
    
    				subdb.Statement.SQL.Reset()
    				subdb.Statement.Vars = stmt.Vars
    				if strings.Contains(sql, "@") {
    					clause.NamedExpr{SQL: sql, Vars: vars}.Build(subdb.Statement)
    				} else {
    					clause.Expr{SQL: sql, Vars: vars}.Build(subdb.Statement)
    				}
    			} else {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. tests/generics_test.go

    	}
    }
    
    func TestGenericsToSQL(t *testing.T) {
    	ctx := context.Background()
    	sql := DB.ToSQL(func(tx *gorm.DB) *gorm.DB {
    		gorm.G[User](tx).Limit(10).Find(ctx)
    		return tx
    	})
    
    	if !regexp.MustCompile("SELECT \\* FROM .users..* 10").MatchString(sql) {
    		t.Errorf("ToSQL: got wrong sql with Generics API %v", sql)
    	}
    }
    
    func TestGenericsScanUUID(t *testing.T) {
    	ctx := context.Background()
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    * Update [SQL tutorial with SQLAlchemy, using `Depends` to improve editor support and reduce code repetition](https://fastapi.tiangolo.com/tutorial/sql-databases/). PR [#52](https://github.com/tiangolo/fastapi/pull/52).
    
    * Improve middleware naming in tutorial for SQL with SQLAlchemy [https://fastapi.tiangolo.com/tutorial/sql-databases/](https://fastapi.tiangolo.com/tutorial/sql-databases/).
    
    ## 0.6.1
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
  6. go.mod

    	github.com/fatih/color v1.18.0
    	github.com/felixge/fgprof v0.9.5
    	github.com/fraugster/parquet-go v0.12.0
    	github.com/go-ldap/ldap/v3 v3.4.11
    	github.com/go-openapi/loads v0.22.0
    	github.com/go-sql-driver/mysql v1.9.2
    	github.com/gobwas/ws v1.4.0
    	github.com/golang-jwt/jwt/v4 v4.5.2
    	github.com/gomodule/redigo v1.9.2
    	github.com/google/uuid v1.6.0
    	github.com/inconshreveable/mousetrap v1.1.0
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Sep 06 17:33:19 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. go.sum

    github.com/go-openapi/validate v0.24.0/go.mod h1:iyeX1sEufmv3nPbBdX3ieNviWnOZaJ1+zquzJEf2BAQ=
    github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
    github.com/go-sql-driver/mysql v1.9.2 h1:4cNKDYQ1I84SXslGddlsrMhc8k4LeDVj6Ad6WRjiHuU=
    github.com/go-sql-driver/mysql v1.9.2/go.mod h1:qn46aNg1333BRMNU69Lq93t8du/dwxI64Gl8i5p1WMU=
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Sep 06 17:33:19 UTC 2025
    - 79.9K bytes
    - Viewed (0)
  8. cmd/object-handlers.go

    		}
    	}
    }
    
    // SelectObjectContentHandler - GET Object?select
    // ----------
    // This implementation of the GET operation retrieves object content based
    // on an SQL expression. In the request, along with the sql expression, you must
    // also specify a data serialization format (JSON, CSV) of the object.
    func (api objectAPIHandlers) SelectObjectContentHandler(w http.ResponseWriter, r *http.Request) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 120.6K bytes
    - Viewed (0)
Back to top