Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for csrsigner (0.05 seconds)

  1. clause/set.go

    package clause
    
    import "sort"
    
    type Set []Assignment
    
    type Assignment struct {
    	Column Column
    	Value  interface{}
    }
    
    // Assigner assignments provider interface
    type Assigner interface {
    	Assignments() []Assignment
    }
    
    func (set Set) Name() string {
    	return "SET"
    }
    
    func (set Set) Build(builder Builder) {
    	if len(set) > 0 {
    		for idx, assignment := range set {
    			if idx > 0 {
    				builder.WriteByte(',')
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Tue Sep 09 01:34:33 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  2. clause/set_test.go

    package clause_test
    
    import (
    	"fmt"
    	"sort"
    	"strings"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    // Compile-time assertions that types implement clause.Assigner
    var (
    	_ clause.Assigner = clause.Assignment{}
    	_ clause.Assigner = clause.Set{}
    )
    
    func TestSet(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Sep 08 11:18:54 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  3. clause/association.go

    }
    
    // AssociationAssigner is an interface for association operation providers
    type AssociationAssigner interface {
    	AssociationAssignments() []Association
    }
    
    // Assignments implements the Assigner interface so that AssociationOperation can be used as a Set method parameter
    func (ao Association) Assignments() []Assignment {
    	return []Assignment{}
    }
    
    // AssociationAssignments implements the AssociationAssigner interface
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Sep 12 05:42:26 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  4. generics.go

    	Table(name string, args ...interface{}) CreateInterface[T]
    	Create(ctx context.Context, r *T) error
    	CreateInBatches(ctx context.Context, r *[]T, batchSize int) error
    	Set(assignments ...clause.Assigner) SetCreateOrUpdateInterface[T]
    }
    
    type ChainInterface[T any] interface {
    	ExecInterface[T]
    	Scopes(scopes ...func(db *Statement)) ChainInterface[T]
    	Where(query interface{}, args ...interface{}) ChainInterface[T]
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Nov 02 14:09:18 GMT 2025
    - 25.9K bytes
    - Click Count (0)
  5. tests/generics_test.go

    		Set: []clause.Assignment{
    			{Column: clause.Column{Name: "amount"}, Value: 100},
    			{Column: clause.Column{Name: "state"}, Value: "new"},
    		},
    	}
    
    	// Verify it implements Assigner interface
    	assignments := assoc.Assignments()
    	if len(assignments) != 0 {
    		t.Errorf("Association.Assignments() should return empty slice, got %v", assignments)
    	}
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Nov 02 14:09:18 GMT 2025
    - 33.7K bytes
    - Click Count (0)
Back to Top