Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setLinger (0.59 sec)

  1. src/database/sql/sql.go

    	case LevelSerializable:
    		return "Serializable"
    	case LevelLinearizable:
    		return "Linearizable"
    	default:
    		return "IsolationLevel(" + strconv.Itoa(int(i)) + ")"
    	}
    }
    
    var _ fmt.Stringer = LevelDefault
    
    // TxOptions holds the transaction options to be used in [DB.BeginTx].
    type TxOptions struct {
    	// Isolation is the transaction isolation level.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    func (*XM) String() string { return "" }
    
    func TestPtrToMethods(t *testing.T) {
    	var y struct{ XM }
    	yp := New(TypeOf(y)).Interface()
    	_, ok := yp.(fmt.Stringer)
    	if !ok {
    		t.Fatal("does not implement Stringer, but should")
    	}
    }
    
    func TestMapAlloc(t *testing.T) {
    	m := ValueOf(make(map[int]int, 10))
    	k := ValueOf(5)
    	v := ValueOf(7)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top