Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for writeQString (0.25 sec)

  1. clause/expression.go

    			builder.WriteString(" = ")
    			builder.AddVar(builder, in.Values[0])
    			break
    		}
    
    		fallthrough
    	default:
    		builder.WriteString(" IN (")
    		builder.AddVar(builder, in.Values...)
    		builder.WriteByte(')')
    	}
    }
    
    func (in IN) NegationBuild(builder Builder) {
    	builder.WriteQuoted(in.Column)
    	switch len(in.Values) {
    	case 0:
    		builder.WriteString(" IS NOT NULL")
    	case 1:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Oct 10 06:45:48 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. clause/on_conflict.go

    			builder.WriteString(" WHERE ")
    			onConflict.TargetWhere.Build(builder)
    			builder.WriteByte(' ')
    		}
    	}
    
    	if onConflict.DoNothing {
    		builder.WriteString("DO NOTHING")
    	} else {
    		builder.WriteString("DO UPDATE SET ")
    		onConflict.DoUpdates.Build(builder)
    	}
    
    	if len(onConflict.Where.Exprs) > 0 {
    		builder.WriteString(" WHERE ")
    		onConflict.Where.Build(builder)
    		builder.WriteByte(' ')
    	}
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Oct 07 05:46:20 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. clause/where.go

    		if len(not.Exprs) > 1 {
    			builder.WriteByte(')')
    		}
    	} else {
    		builder.WriteString("NOT ")
    		if len(not.Exprs) > 1 {
    			builder.WriteByte('(')
    		}
    
    		for idx, c := range not.Exprs {
    			if idx > 0 {
    				switch c.(type) {
    				case OrConditions:
    					builder.WriteString(OrWithSpace)
    				default:
    					builder.WriteString(AndWithSpace)
    				}
    			}
    
    			e, wrapInParentheses := c.(Expr)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. internal/config/certsinfo.go

    		} else {
    			values = append(values, fmt.Sprintf("UnknownOID=%s", name.Type.String()))
    		}
    	}
    	if len(values) > 0 {
    		buf.WriteString(values[0])
    		for i := 1; i < len(values); i++ {
    			buf.WriteString(", " + values[i])
    		}
    		buf.WriteString("\n")
    	}
    	return values
    }
    
    // CertificateText returns a human-readable string representation
    // of the certificate cert. The format is similar to the OpenSSL
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  5. clause/locking.go

    	return "FOR"
    }
    
    // Build build where clause
    func (locking Locking) Build(builder Builder) {
    	builder.WriteString(locking.Strength)
    	if locking.Table.Name != "" {
    		builder.WriteString(" OF ")
    		builder.WriteQuoted(locking.Table)
    	}
    
    	if locking.Options != "" {
    		builder.WriteByte(' ')
    		builder.WriteString(locking.Options)
    	}
    }
    
    // MergeClause merge order by clauses
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Dec 15 08:32:56 UTC 2023
    - 773 bytes
    - Viewed (0)
  6. internal/kms/context.go

    	// heuristic value that seems like a good starting size.
    	b := bytes.NewBuffer(make([]byte, 0, 128))
    	if len(c) == 1 {
    		for k, v := range c {
    			b.WriteString(`{"`)
    			escapeStringJSON(b, k)
    			b.WriteString(`":"`)
    			escapeStringJSON(b, v)
    			b.WriteString(`"}`)
    		}
    		return b.Bytes(), nil
    	}
    
    	sortedKeys := make([]string, 0, len(c))
    	for k := range c {
    		sortedKeys = append(sortedKeys, k)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 6K bytes
    - Viewed (0)
  7. clause/limit.go

    // Build build where clause
    func (limit Limit) Build(builder Builder) {
    	if limit.Limit != nil && *limit.Limit >= 0 {
    		builder.WriteString("LIMIT ")
    		builder.AddVar(builder, *limit.Limit)
    	}
    	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
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 942 bytes
    - Viewed (0)
  8. cmd/bootstrap-peer-server_gen.go

    	if err != nil {
    		err = msgp.WrapError(err, "MinioEnv")
    		return
    	}
    	for za0002, za0003 := range z.MinioEnv {
    		err = en.WriteString(za0002)
    		if err != nil {
    			err = msgp.WrapError(err, "MinioEnv")
    			return
    		}
    		err = en.WriteString(za0003)
    		if err != nil {
    			err = msgp.WrapError(err, "MinioEnv", za0002)
    			return
    		}
    	}
    	// write "Checksum"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 14:49:49 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. cmd/batch-replicate_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.AccessKey)
    	if err != nil {
    		err = msgp.WrapError(err, "AccessKey")
    		return
    	}
    	// write "SecretKey"
    	err = en.Append(0xa9, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.SecretKey)
    	if err != nil {
    		err = msgp.WrapError(err, "SecretKey")
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  10. cmd/storage-datatypes_gen.go

    	if err != nil {
    		err = msgp.WrapError(err, "Scanning")
    		return
    	}
    	err = en.WriteString(z.Endpoint)
    	if err != nil {
    		err = msgp.WrapError(err, "Endpoint")
    		return
    	}
    	err = en.WriteString(z.MountPath)
    	if err != nil {
    		err = msgp.WrapError(err, "MountPath")
    		return
    	}
    	err = en.WriteString(z.ID)
    	if err != nil {
    		err = msgp.WrapError(err, "ID")
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
Back to top