Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 134 for begitu (0.17 sec)

  1. tests/connpool_test.go

    	return c.db.Ping()
    }
    
    // If you use BeginTx returned *sql.Tx as shown below then you can't record queries in a transaction.
    //
    //	func (c *wrapperConnPool) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) {
    //		 return c.db.BeginTx(ctx, opts)
    //	}
    //
    // You should use BeginTx returned gorm.Tx which could wrap *sql.Tx then you can record all queries.
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. finisher_api.go

    		if err = fc(tx); err == nil {
    			panicked = false
    			return tx.Commit().Error
    		}
    	}
    
    	panicked = false
    	return
    }
    
    // Begin begins a transaction with any transaction options opts
    func (db *DB) Begin(opts ...*sql.TxOptions) *DB {
    	var (
    		// clone statement
    		tx  = db.getInstance().Session(&Session{Context: db.Statement.Context, NewDB: db.clone == 1})
    		opt *sql.TxOptions
    		err error
    	)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  3. prepare_stmt.go

    	db.PreparedSQL = append(db.PreparedSQL, query)
    	db.Mux.Unlock()
    
    	return cacheStmt, nil
    }
    
    func (db *PreparedStmtDB) BeginTx(ctx context.Context, opt *sql.TxOptions) (ConnPool, error) {
    	if beginner, ok := db.ConnPool.(TxBeginner); ok {
    		tx, err := beginner.BeginTx(ctx, opt)
    		return &PreparedStmtTX{PreparedStmtDB: db, Tx: tx}, err
    	}
    
    	beginner, ok := db.ConnPool.(ConnPoolBeginner)
    	if !ok {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 28 08:47:39 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

            statsCache.asMap().entrySet().stream().forEach(e -> {
                final StatsObject data = e.getValue();
                final Long begin = data.remove(BEGIN_KEY);
                if (begin != null) {
                    printStats(e.getKey(), data, begin, false);
                }
            });
    
        }
    
        public void begin(final Object keyObj) {
            getCacheKey(keyObj).ifPresent(key -> {
                try {
                    statsCache.get(key);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

          |
          """.trimMargin()
        val pkcs8Pem =
          """
          |-----BEGIN PRIVATE KEY-----
          |MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCA7ODT0xhGSNn4ESj6J
          |lu/GJQZoU9lDrCPeUcQ28tzOWw==
          |-----END PRIVATE KEY-----
          |
          """.trimMargin()
        val bcPkcs8Pem =
          """
          |-----BEGIN PRIVATE KEY-----
          |ME0CAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEMzAxAgEBBCA7ODT0xhGSNn4ESj6J
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  6. cmd/object-api-datatypes.go

    type ListMultipartsInfo struct {
    	// Together with upload-id-marker, this parameter specifies the multipart upload
    	// after which listing should begin.
    	KeyMarker string
    
    	// Together with key-marker, specifies the multipart upload after which listing
    	// should begin. If key-marker is not specified, the upload-id-marker parameter
    	// is ignored.
    	UploadIDMarker string
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  7. interfaces.go

    	SavePoint(tx *DB, name string) error
    	RollbackTo(tx *DB, name string) error
    }
    
    // TxBeginner tx beginner
    type TxBeginner interface {
    	BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
    }
    
    // ConnPoolBeginner conn pool beginner
    type ConnPoolBeginner interface {
    	BeginTx(ctx context.Context, opts *sql.TxOptions) (ConnPool, error)
    }
    
    // TxCommitter tx committer
    type TxCommitter interface {
    	Commit() error
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Aug 19 13:33:31 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  8. logger/logger.go

    	}
    }
    
    // Trace print sql message
    //
    //nolint:cyclop
    func (l *logger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error) {
    	if l.LogLevel <= Silent {
    		return
    	}
    
    	elapsed := time.Since(begin)
    	switch {
    	case err != nil && l.LogLevel >= Error && (!errors.Is(err, ErrRecordNotFound) || !l.IgnoreRecordNotFoundError):
    		sql, rows := fc()
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Nov 07 02:19:41 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/InternetDomainName.java

        this.name = name;
        this.parts = parts;
      }
    
      /**
       * The index in the {@link #parts()} list at which the public suffix begins. For example, for the
       * domain name {@code myblog.blogspot.co.uk}, the value would be 1 (the index of the {@code
       * blogspot} part). The value is negative (specifically, {@link #NO_SUFFIX_FOUND}) if no public
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 20:47:23 GMT 2024
    - 28K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/CrawlerStatsHelperTest.java

                    localLogMsg.set(buf.toString());
                }
            };
            crawlerStatsHelper.init();
        }
    
        public void test_beginDone() {
            String key = "test";
            crawlerStatsHelper.begin(key);
            crawlerStatsHelper.done(key);
            logger.info(localLogMsg.get());
            String[] values = localLogMsg.get().split("\t");
            assertEquals(3, values.length);
            assertEquals("url:test", values[0]);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6K bytes
    - Viewed (0)
Back to top