@@ -26,15 +26,15 @@ class Database:
2626 """Kùzu database instance."""
2727
2828 def __init__ (
29- self ,
30- database_path : str | Path ,
31- * ,
32- buffer_pool_size : int = 0 ,
33- max_num_threads : int = 0 ,
34- compression : bool = True ,
35- lazy_init : bool = False ,
36- read_only : bool = False ,
37- max_db_size : int = (1 << 43 ),
29+ self ,
30+ database_path : str | Path ,
31+ * ,
32+ buffer_pool_size : int = 0 ,
33+ max_num_threads : int = 0 ,
34+ compression : bool = True ,
35+ lazy_init : bool = False ,
36+ read_only : bool = False ,
37+ max_db_size : int = (1 << 43 ),
3838 ):
3939 """
4040 Parameters
@@ -92,10 +92,10 @@ def __enter__(self) -> Self:
9292 return self
9393
9494 def __exit__ (
95- self ,
96- exc_type : type [BaseException ] | None ,
97- exc_value : BaseException | None ,
98- exc_traceback : TracebackType | None ,
95+ self ,
96+ exc_type : type [BaseException ] | None ,
97+ exc_value : BaseException | None ,
98+ exc_traceback : TracebackType | None ,
9999 ) -> None :
100100 self .close ()
101101
@@ -146,21 +146,8 @@ def init_database(self) -> None:
146146 self .max_db_size ,
147147 )
148148
149- def set_logging_level (self , level : str ) -> None :
150- """
151- Set the logging level.
152-
153- Parameters
154- ----------
155- level : str
156- Logging level. One of "debug", "info", "err".
157-
158- """
159- self .check_for_database_close ()
160- self ._database .set_logging_level (level )
161-
162149 def get_torch_geometric_remote_backend (
163- self , num_threads : int | None = None
150+ self , num_threads : int | None = None
164151 ) -> tuple [KuzuFeatureStore , KuzuGraphStore ]:
165152 """
166153 Use the database as the remote backend for torch_geometric.
@@ -213,13 +200,13 @@ def get_torch_geometric_remote_backend(
213200 )
214201
215202 def _scan_node_table (
216- self ,
217- table_name : str ,
218- prop_name : str ,
219- prop_type : str ,
220- dim : int ,
221- indices : IndexType ,
222- num_threads : int ,
203+ self ,
204+ table_name : str ,
205+ prop_name : str ,
206+ prop_type : str ,
207+ dim : int ,
208+ indices : IndexType ,
209+ num_threads : int ,
223210 ) -> NDArray [Any ]:
224211 self .check_for_database_close ()
225212 import numpy as np
0 commit comments