Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 150 for Pauses (0.17 sec)

  1. misc/ios/go_ios_exec.go

    // It executes binaries on an iOS device using the XCode toolchain
    // and the ios-deploy program: https://github.com/phonegap/ios-deploy
    //
    // This script supports an extra flag, -lldb, that pauses execution
    // just before the main program begins and allows the user to control
    // the remote lldb session. This flag is appended to the end of the
    // script's arguments and is not passed through to the underlying
    // binary.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  2. clause/values_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestValues(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{
    				clause.Insert{},
    				clause.Values{
    					Columns: []clause.Column{{Name: "name"}, {Name: "age"}},
    					Values:  [][]interface{}{{"jinzhu", 18}, {"josh", 1}},
    				},
    			},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 691 bytes
    - Viewed (0)
  3. clause/set_test.go

    package clause_test
    
    import (
    	"fmt"
    	"sort"
    	"strings"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestSet(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{
    				clause.Update{},
    				clause.Set([]clause.Assignment{{clause.PrimaryColumn, 1}}),
    			},
    			"UPDATE `users` SET `users`.`id`=?",
    			[]interface{}{1},
    		},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  4. cmd/signature-v4-parser.go

    }
    
    // preSignValues data type represents structured form of AWS Signature V4 query string.
    type preSignValues struct {
    	signValues
    	Date    time.Time
    	Expires time.Duration
    }
    
    // Parses signature version '4' query string of the following form.
    //
    //	querystring = X-Amz-Algorithm=algorithm
    //	querystring += &X-Amz-Credential= urlencode(accessKey + '/' + credential_scope)
    //	querystring += &X-Amz-Date=date
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  5. clause/returning.go

    			if idx > 0 {
    				builder.WriteByte(',')
    			}
    
    			builder.WriteQuoted(column)
    		}
    	} else {
    		builder.WriteByte('*')
    	}
    }
    
    // MergeClause merge order by clauses
    func (returning Returning) MergeClause(clause *Clause) {
    	if v, ok := clause.Expression.(Returning); ok {
    		returning.Columns = append(v.Columns, returning.Columns...)
    	}
    
    	clause.Expression = returning
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Oct 27 23:56:55 GMT 2021
    - 681 bytes
    - Viewed (0)
  6. clause/order_by.go

    			if idx > 0 {
    				builder.WriteByte(',')
    			}
    
    			builder.WriteQuoted(column.Column)
    			if column.Desc {
    				builder.WriteString(" DESC")
    			}
    		}
    	}
    }
    
    // MergeClause merge order by clauses
    func (orderBy OrderBy) MergeClause(clause *Clause) {
    	if v, ok := clause.Expression.(OrderBy); ok {
    		for i := len(orderBy.Columns) - 1; i >= 0; i-- {
    			if orderBy.Columns[i].Reorder {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Nov 03 02:30:05 GMT 2020
    - 1.1K bytes
    - Viewed (0)
  7. clause/limit.go

    	if limit.Offset > 0 {
    		if limit.Limit != nil && *limit.Limit >= 0 {
    			builder.WriteByte(' ')
    		}
    		builder.WriteString("OFFSET ")
    		builder.AddVar(builder, limit.Offset)
    	}
    }
    
    // MergeClause merge order by clauses
    func (limit Limit) MergeClause(clause *Clause) {
    	clause.Name = ""
    
    	if v, ok := clause.Expression.(Limit); ok {
    		if (limit.Limit == nil || *limit.Limit == 0) && v.Limit != nil {
    			limit.Limit = v.Limit
    		}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 942 bytes
    - Viewed (0)
  8. internal/rest/client.go

    			if !c.NoMetrics {
    				atomic.AddUint64(&globalStats.errs, 1)
    			}
    			if c.MarkOffline(err) {
    				logger.LogOnceIf(ctx, logSubsys, fmt.Errorf("Marking %s offline temporarily; caused by %w", c.url.Host, err), c.url.Host)
    			}
    		}
    		return nil, &NetworkError{err}
    	}
    
    	// If trace is enabled, dump http request and response,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  9. callbacks.go

    			"row":    {db: db},
    			"raw":    {db: db},
    		},
    	}
    }
    
    // callbacks gorm callbacks manager
    type callbacks struct {
    	processors map[string]*processor
    }
    
    type processor struct {
    	db        *DB
    	Clauses   []string
    	fns       []func(*DB)
    	callbacks []*callback
    }
    
    type callback struct {
    	name      string
    	before    string
    	after     string
    	remove    bool
    	replace   bool
    	match     func(*DB) bool
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 8.6K bytes
    - Viewed (1)
  10. internal/kms/single-key.go

    	"golang.org/x/crypto/chacha20poly1305"
    
    	"github.com/minio/kms-go/kes"
    	"github.com/minio/minio/internal/hash/sha256"
    )
    
    // Parse parses s as single-key KMS. The given string
    // is expected to have the following format:
    //
    //	<key-id>:<base64-key>
    //
    // The returned KMS implementation uses the parsed
    // key ID and key to derive new DEKs and decrypt ciphertext.
    func Parse(s string) (KMS, error) {
    	v := strings.SplitN(s, ":", 2)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
Back to top