github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/pgwire/testdata/auth/current_database (about)

     1  # This test verifies that the database in the connection string is
     2  # used to set the current database inside the client.
     3  
     4  config secure
     5  ----
     6  
     7  sql
     8  CREATE DATABASE mydb;
     9  ----
    10  ok
    11  
    12  connect user=root database=mydb
    13  ----
    14  ok mydb