Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for Content (2.89 sec)

  1. statement.go

    	Joins                []join
    	Preloads             map[string][]interface{}
    	Settings             sync.Map
    	ConnPool             ConnPool
    	Schema               *schema.Schema
    	Context              context.Context
    	RaiseErrorOnNotFound bool
    	SkipHooks            bool
    	SQL                  strings.Builder
    	Vars                 []interface{}
    	CurDestIndex         int
    	attrs                []interface{}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  2. tests/scopes_test.go

    package tests_test
    
    import (
    	"context"
    	"testing"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func NameIn1And2(d *gorm.DB) *gorm.DB {
    	return d.Where("name in (?)", []string{"ScopeUser1", "ScopeUser2"})
    }
    
    func NameIn2And3(d *gorm.DB) *gorm.DB {
    	return d.Where("name in (?)", []string{"ScopeUser2", "ScopeUser3"})
    }
    
    func NameIn(names []string) func(d *gorm.DB) *gorm.DB {
    	return func(d *gorm.DB) *gorm.DB {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. tests/transaction_test.go

    			})
    		}); err != nil {
    			t.Fatalf("prepare statement and nested transaction coexist" + err.Error())
    		}
    	})
    }
    
    func TestCancelTransaction(t *testing.T) {
    	ctx := context.Background()
    	ctx, cancelFunc := context.WithCancel(ctx)
    	cancelFunc()
    
    	user := *GetUser("cancel_transaction", Config{})
    	DB.Create(&user)
    
    	err := DB.WithContext(ctx).Transaction(func(tx *gorm.DB) error {
    		var result User
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. schema/schema.go

    package schema
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"go/ast"
    	"reflect"
    	"strings"
    	"sync"
    
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/logger"
    )
    
    type callbackType string
    
    const (
    	callbackTypeBeforeCreate callbackType = "BeforeCreate"
    	callbackTypeBeforeUpdate callbackType = "BeforeUpdate"
    	callbackTypeAfterCreate  callbackType = "AfterCreate"
    	callbackTypeAfterUpdate  callbackType = "AfterUpdate"
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  5. .github/workflows/tests.yml

    name: tests
    
    on:
      push:
        branches-ignore:
          - 'gh-pages'
      pull_request:
        branches-ignore:
          - 'gh-pages'
    
    permissions:
      contents: read
    
    jobs:
      # Label of the container job
      sqlite:
        strategy:
          matrix:
            go: ['1.22', '1.21', '1.20']
            platform: [ubuntu-latest] # can not run in windows OS
        runs-on: ${{ matrix.platform }}
    
        steps:
        - name: Set up Go 1.x
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:24:34 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top