Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GormValue (0.35 sec)

  1. interfaces.go

    }
    
    // Tx sql.Tx interface
    type Tx interface {
    	ConnPool
    	TxCommitter
    	StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt
    }
    
    // Valuer gorm valuer interface
    type Valuer interface {
    	GormValue(context.Context, *DB) clause.Expr
    }
    
    // GetDBConnector SQL db connector
    type GetDBConnector interface {
    	GetDBConn() (*sql.DB, error)
    }
    
    // Rows rows interface
    type Rows interface {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Sat Aug 19 13:33:31 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  2. tests/scanner_valuer_test.go

    }
    
    type NullString struct {
    	sql.NullString
    }
    
    type Point struct {
    	X, Y int
    }
    
    func (point Point) GormDataType() string {
    	return "geo"
    }
    
    func (point Point) GormValue(ctx context.Context, db *gorm.DB) clause.Expr {
    	return clause.Expr{
    		SQL:  "ST_PointFromText(?)",
    		Vars: []interface{}{fmt.Sprintf("POINT(%d %d)", point.X, point.Y)},
    	}
    }
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  3. statement.go

    			stmt.QuoteTo(writer, v)
    		case Valuer:
    			reflectValue := reflect.ValueOf(v)
    			if reflectValue.Kind() == reflect.Ptr && reflectValue.IsNil() {
    				stmt.AddVar(writer, nil)
    			} else {
    				stmt.AddVar(writer, v.GormValue(stmt.Context, stmt.DB))
    			}
    		case clause.Interface:
    			c := clause.Clause{Name: v.Name()}
    			v.MergeClause(&c)
    			c.Build(stmt)
    		case clause.Expression:
    			v.Build(stmt)
    		case driver.Valuer:
    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)
  4. docs/iam/identity-manager-plugin.go

    		MaxValiditySeconds: 3600,
    		Claims: map[string]interface{}{
    			"groups": []string{"databases"},
    		},
    	},
    }
    
    func mainHandler(w http.ResponseWriter, r *http.Request) {
    	token := r.FormValue("token")
    	if token == "" {
    		writeErrorResponse(w, errors.New("token parameter not given"))
    		return
    	}
    
    	rsp, ok := tokens[token]
    	if !ok {
    		w.WriteHeader(http.StatusForbidden)
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 2.1K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg net/http, method (*Request) Cookies() []*Cookie
    pkg net/http, method (*Request) FormFile(string) (multipart.File, *multipart.FileHeader, error)
    pkg net/http, method (*Request) FormValue(string) string
    pkg net/http, method (*Request) MultipartReader() (*multipart.Reader, error)
    pkg net/http, method (*Request) ParseForm() error
    pkg net/http, method (*Request) ParseMultipartForm(int64) error
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top