Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for Raw (0.24 sec)

  1. callbacks/raw.go

    heige <******@****.***> 1638149600 +0800
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Nov 29 01:33:20 GMT 2021
    - 336 bytes
    - Viewed (0)
  2. tests/sql_builder_test.go

    	type result struct {
    		Name  string
    		Email string
    	}
    
    	var results []result
    	DB.Raw("SELECT name, age FROM users WHERE name = ? or name = ?", user2.Name, user3.Name).Scan(&results)
    	if len(results) != 2 || results[0].Name != user2.Name || results[1].Name != user3.Name {
    		t.Errorf("Raw with scan")
    	}
    
    	rows, _ := DB.Raw("select name, age from users where name = ?", user3.Name).Rows()
    	count := 0
    	for rows.Next() {
    		count++
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  3. tests/query_test.go

    	users := []User{
    		{Name: "subquery_raw_1", Age: 10},
    		{Name: "subquery_raw_2", Age: 20},
    		{Name: "subquery_raw_3", Age: 30},
    		{Name: "subquery_raw_4", Age: 40},
    	}
    	DB.Create(&users)
    
    	var count int64
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  4. statement.go

    				write(v.Raw, stmt.Schema.PrioritizedPrimaryField.DBName)
    			} else if len(stmt.Schema.DBNames) > 0 {
    				write(v.Raw, stmt.Schema.DBNames[0])
    			} else {
    				stmt.DB.AddError(ErrModelAccessibleFieldsRequired) //nolint:typecheck,errcheck
    			}
    		} else {
    			write(v.Raw, v.Name)
    		}
    
    		if v.Alias != "" {
    			writer.WriteString(" AS ")
    			write(v.Raw, v.Alias)
    		}
    	case []clause.Column:
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  5. clause/expression_test.go

    		Result: "`table`.`col`",
    	}, {
    		SQL:    "?",
    		Vars:   []interface{}{clause.Column{Table: "table", Name: "col", Raw: true}},
    		Result: "table.col",
    	}, {
    		SQL:    "?",
    		Vars:   []interface{}{clause.Column{Table: "table", Name: clause.PrimaryKey, Raw: true}},
    		Result: "table.id",
    	}, {
    		SQL:    "?",
    		Vars:   []interface{}{clause.Column{Table: "table", Name: "col", Alias: "alias"}},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Aug 10 05:34:33 GMT 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/archive/zip/writer.go

    	b.uint16(h.ReaderVersion)
    	b.uint16(h.Flags)
    	b.uint16(h.Method)
    	b.uint16(h.ModifiedTime)
    	b.uint16(h.ModifiedDate)
    	// In raw mode (caller does the compression), the values are either
    	// written here or in the trailing data descriptor based on the header
    	// flags.
    	if h.raw && !h.hasDataDescriptor() {
    		b.uint32(h.CRC32)
    		b.uint32(uint32(min(h.CompressedSize64, uint32max)))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/ztunnel/configdump/connections.go

    	"encoding/json"
    	"fmt"
    	"net"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    type ConnectionsFilter struct {
    	Namespace string
    	Direction string
    	Raw       bool
    }
    
    func (c *ConfigWriter) PrintConnectionsDump(filter ConnectionsFilter, outputFormat string) error {
    	d := c.ztunnelDump
    	workloads := maps.Values(d.WorkloadState)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  8. internal/store/queuestore.go

    func (store *QueueStore[I]) GetRaw(key string) (raw []byte, err error) {
    	store.RLock()
    
    	defer func(store *QueueStore[I]) {
    		store.RUnlock()
    		if err != nil {
    			// Upon error we remove the entry.
    			store.Del(key)
    		}
    	}(store)
    
    	raw, err = os.ReadFile(filepath.Join(store.directory, key+store.fileExt))
    	if err != nil {
    		return
    	}
    
    	if len(raw) == 0 {
    		return raw, os.ErrNotExist
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  9. callbacks/callbacks.go

    	updateCallback.Clauses = config.UpdateClauses
    
    	rowCallback := db.Callback().Row()
    	rowCallback.Register("gorm:row", RowQuery)
    	rowCallback.Clauses = config.QueryClauses
    
    	rawCallback := db.Callback().Raw()
    	rawCallback.Register("gorm:raw", RawExec)
    	rawCallback.Clauses = config.QueryClauses
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Oct 27 23:56:55 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  10. istioctl/pkg/validate/validate.go

    		raw := make(map[any]any)
    		err := decoder.Decode(&raw)
    		if err == io.EOF {
    			return warnings, errs
    		}
    		if err != nil {
    			errs = multierror.Append(errs, multierror.Prefix(err, fmt.Sprintf("failed to decode file %s: ", path)))
    			return warnings, errs
    		}
    		if len(raw) == 0 {
    			continue
    		}
    		out := transformInterfaceMap(raw)
    		un := unstructured.Unstructured{Object: out}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top