Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for locked (0.14 sec)

  1. clause/locking.go

    package clause
    
    const (
    	LockingStrengthUpdate    = "UPDATE"
    	LockingStrengthShare     = "SHARE"
    	LockingOptionsSkipLocked = "SKIP LOCKED"
    	LockingOptionsNoWait     = "NOWAIT"
    )
    
    type Locking struct {
    	Strength string
    	Table    Table
    	Options  string
    }
    
    // Name where clause name
    func (locking Locking) Name() string {
    	return "FOR"
    }
    
    // Build build where clause
    func (locking Locking) Build(builder Builder) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 773 bytes
    - Viewed (0)
  2. tests/docker-compose.yml

    Jinzhu <******@****.***> 1710750526 +0800
    Others
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 08:28:46 GMT 2024
    - 862 bytes
    - Viewed (0)
  3. tests/README.md

    # Test Guide
    
    ```bash
    cd tests
    # prepare test databases
    docker-compose up
    
    # run all tests
    ./tests_all.sh
    Plain Text
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sun Feb 23 01:38:51 GMT 2020
    - 110 bytes
    - Viewed (0)
  4. clause/locking_test.go

    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Locking{Strength: clause.LockingStrengthUpdate, Options: clause.LockingOptionsSkipLocked}},
    			"SELECT * FROM `users` FOR UPDATE SKIP LOCKED", nil,
    		},
    	}
    
    	for idx, result := range results {
    		t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) {
    			checkBuildClauses(t, result.Clauses, result.Result, result.Vars)
    		})
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  5. tests/tests_all.sh

      cd ..
    fi
    
    # SqlServer for Mac M1
    if [[ -z $GITHUB_ACTION ]]; then
      if [ -d tests ]
      then
        cd tests
        if [[ $(uname -a) == *" arm64" ]]; then
          MSSQL_IMAGE=mcr.microsoft.com/azure-sql-edge docker-compose start || true
          go install github.com/microsoft/go-sqlcmd/cmd/sqlcmd@latest || true
          SQLCMDPASSWORD=LoremIpsum86 sqlcmd -U sa -S localhost:9930 -Q "IF DB_ID('gorm') IS NULL CREATE DATABASE gorm" > /dev/null || true
    Shell Script
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 1.6K bytes
    - Viewed (0)
Back to top