@@ -50,26 +50,6 @@ def __repr__(self) -> str:
5050 """Print a string representation of the catalog."""
5151 return self .catalog .__repr__ ()
5252
53- def names (self ) -> list [str ]:
54- """Returns the list of databases in this catalog."""
55- return self .catalog .names ()
56-
57- def database (self , name : str = "public" ) -> Database :
58- """Returns the database with the given ``name`` from this catalog."""
59- return Database (self .catalog .database (name ))
60-
61-
62- class Database :
63- """DataFusion Database."""
64-
65- def __init__ (self , db : df_internal .Database ) -> None :
66- """This constructor is not typically called by the end user."""
67- self .db = db
68-
69- def __repr__ (self ) -> str :
70- """Print a string representation of the database."""
71- return self .db .__repr__ ()
72-
7353 def names (self ) -> set [str ]:
7454 """This is an alias for `schema_names`."""
7555 return self .schema_names ()
@@ -109,6 +89,10 @@ def __init__(self, schema: df_internal.catalog.RawSchema) -> None:
10989 """This constructor is not typically called by the end user."""
11090 self ._raw_schema = schema
11191
92+ def __repr__ (self ) -> str :
93+ """Print a string representation of the schema."""
94+ return self ._raw_schema .__repr__ ()
95+
11296 def names (self ) -> set [str ]:
11397 """This is an alias for `table_names`."""
11498 return self .table_names ()
0 commit comments