Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 762 for myself (0.18 sec)

  1. tests/connection_test.go

    package tests_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/driver/mysql"
    	"gorm.io/gorm"
    )
    
    func TestWithSingleConnection(t *testing.T) {
    	expectedName := "test"
    	var actualName string
    
    	setSQL, getSQL := getSetSQL(DB.Dialector.Name())
    	if len(setSQL) == 0 || len(getSQL) == 0 {
    		return
    	}
    
    	err := DB.Connection(func(tx *gorm.DB) error {
    		if err := tx.Exec(setSQL, expectedName).Error; err != nil {
    			return err
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 28 14:16:42 GMT 2022
    - 963 bytes
    - Viewed (0)
  2. tests/tests_test.go

    	}
    }
    
    func OpenTestConnection(cfg *gorm.Config) (db *gorm.DB, err error) {
    	dbDSN := os.Getenv("GORM_DSN")
    	switch os.Getenv("GORM_DIALECT") {
    	case "mysql":
    		log.Println("testing mysql...")
    		if dbDSN == "" {
    			dbDSN = mysqlDSN
    		}
    		db, err = gorm.Open(mysql.Open(dbDSN), cfg)
    	case "postgres":
    		log.Println("testing postgres...")
    		if dbDSN == "" {
    			dbDSN = postgresDSN
    		}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  3. guava-tests/test/com/google/common/io/BaseEncodingTest.java

          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testBase64() {
        // The following test vectors are specified in RFC 4648 itself
        testEncodingWithSeparators(base64(), "", "");
        testEncodingWithSeparators(base64(), "f", "Zg==");
        testEncodingWithSeparators(base64(), "fo", "Zm8=");
        testEncodingWithSeparators(base64(), "foo", "Zm9v");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Aug 25 16:34:08 GMT 2022
    - 24.6K bytes
    - Viewed (0)
  4. internal/config/notify/config.go

    	Elasticsearch map[string]target.ElasticsearchArgs `json:"elasticsearch"`
    	Kafka         map[string]target.KafkaArgs         `json:"kafka"`
    	MQTT          map[string]target.MQTTArgs          `json:"mqtt"`
    	MySQL         map[string]target.MySQLArgs         `json:"mysql"`
    	NATS          map[string]target.NATSArgs          `json:"nats"`
    	NSQ           map[string]target.NSQArgs           `json:"nsq"`
    	PostgreSQL    map[string]target.PostgreSQLArgs    `json:"postgresql"`
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.8K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/sql-databases.md

    ### Create a `SessionLocal` class
    
    Each instance of the `SessionLocal` class will be a database session. The class itself is not a database session yet.
    
    But once we create an instance of the `SessionLocal` class, this instance will be the actual database session.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetOperationsTest.java

                        checkArgument(elements.length == 1);
                        return Sets.union(Sets.<String>newHashSet(elements), Sets.newHashSet(elements));
                      }
                    })
                .named("singleton U itself")
                .withFeatures(CollectionSize.ONE, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

      }
    
      /** Test proper handling of case where an object is not equal to itself */
      public void testNonReflexiveEquals() {
        Object obj = new NonReflexiveObject();
        equalsTester.addEqualityGroup(obj);
        try {
          equalsTester.testEquals();
        } catch (AssertionFailedError e) {
          assertErrorMessage(e, obj + " must be Object#equals to itself");
          return;
        }
        fail("Should get non-reflexive error");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

     *     .addEqualityGroup(new User("page"), new User("page"))
     *     .addEqualityGroup(new User("sergey"))
     *     .testEquals();
     * </pre>
     *
     * <p>This tests:
     *
     * <ul>
     *   <li>comparing each object against itself returns true
     *   <li>comparing each object against null returns false
     *   <li>comparing each object against an instance of an incompatible class returns false
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

      }
    
      /** Test proper handling of case where an object is not equal to itself */
      public void testNonReflexiveEquals() {
        Object obj = new NonReflexiveObject();
        equalsTester.addEqualityGroup(obj);
        try {
          equalsTester.testEquals();
        } catch (AssertionFailedError e) {
          assertErrorMessage(e, obj + " must be Object#equals to itself");
          return;
        }
        fail("Should get non-reflexive error");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  10. docs_src/websockets/tutorial003_py39.py

    """
    
    
    class ConnectionManager:
        def __init__(self):
            self.active_connections: list[WebSocket] = []
    
        async def connect(self, websocket: WebSocket):
            await websocket.accept()
            self.active_connections.append(websocket)
    
        def disconnect(self, websocket: WebSocket):
            self.active_connections.remove(websocket)
    
        async def send_personal_message(self, message: str, websocket: WebSocket):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top