Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestPostgreSQLRegistration (0.08 sec)

  1. internal/event/target/postgresql_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package target
    
    import (
    	"database/sql"
    	"slices"
    	"testing"
    )
    
    // TestPostgreSQLRegistration checks if postgres driver
    // is registered and fails otherwise.
    func TestPostgreSQLRegistration(t *testing.T) {
    	var found bool
    	if slices.Contains(sql.Drivers(), "postgres") {
    		found = true
    	}
    	if !found {
    		t.Fatal("postgres driver not registered")
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. internal/event/target/mysql_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package target
    
    import (
    	"database/sql"
    	"slices"
    	"testing"
    )
    
    // TestPostgreSQLRegistration checks if sql driver
    // is registered and fails otherwise.
    func TestMySQLRegistration(t *testing.T) {
    	var found bool
    	if slices.Contains(sql.Drivers(), "mysql") {
    		found = true
    	}
    	if !found {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 1.1K bytes
    - Viewed (0)
Back to top