@@ -58,7 +58,6 @@ def __init__(
5858 ports : t .Optional [dict ] = None ,
5959 user : t .Optional [str ] = None ,
6060 password : t .Optional [str ] = None ,
61- dbname : t .Optional [str ] = None ,
6261 cmd_opts : t .Optional [dict ] = None ,
6362 ** kwargs ,
6463 ) -> None :
@@ -72,7 +71,6 @@ def __init__(
7271 to the 15432 port on the host.
7372 :param user: optional username to access the DB; if None, try `CRATEDB_USER` environment variable
7473 :param password: optional password to access the DB; if None, try `CRATEDB_PASSWORD` environment variable
75- :param dbname: optional database name to access the DB; if None, try `CRATEDB_DB` environment variable
7674 :param cmd_opts: an optional dict with CLI arguments to be passed to the DB entrypoint inside the container
7775 :param kwargs: misc keyword arguments
7876 """
@@ -82,7 +80,6 @@ def __init__(
8280
8381 self .CRATEDB_USER = user or os .environ .get ("CRATEDB_USER" , "crate" )
8482 self .CRATEDB_PASSWORD = password or os .environ .get ("CRATEDB_PASSWORD" , "crate" )
85- self .CRATEDB_DB = dbname or os .environ .get ("CRATEDB_DB" , "doc" )
8683
8784 self .port_mapping = ports if ports else {4200 : None }
8885 self .port_to_expose = next (iter (self .port_mapping .items ()))
@@ -124,7 +121,6 @@ def _configure_ports(self) -> None:
124121 def _configure_credentials (self ) -> None :
125122 self .with_env ("CRATEDB_USER" , self .CRATEDB_USER )
126123 self .with_env ("CRATEDB_PASSWORD" , self .CRATEDB_PASSWORD )
127- self .with_env ("CRATEDB_DB" , self .CRATEDB_DB )
128124
129125 def _configure (self ) -> None :
130126 self ._configure_ports ()
@@ -145,7 +141,6 @@ def get_connection_url(self, dialect: str = "crate", host: t.Optional[str] = Non
145141 password = self .CRATEDB_PASSWORD ,
146142 host = host ,
147143 port = self .port_to_expose [0 ],
148- dbname = self .CRATEDB_DB ,
149144 )
150145
151146 def _create_connection_url (
0 commit comments