@@ -162,23 +162,19 @@ def ROUNDS_ON_PREC_LOSS(self) -> bool:
162162 @abstractmethod
163163 def quote (self , s : str ):
164164 "Quote SQL name"
165- ...
166165
167166 @abstractmethod
168167 def concat (self , items : List [str ]) -> str :
169168 "Provide SQL for concatenating a bunch of columns into a string"
170- ...
171169
172170 @abstractmethod
173171 def is_distinct_from (self , a : str , b : str ) -> str :
174172 "Provide SQL for a comparison where NULL = NULL is true"
175- ...
176173
177174 @abstractmethod
178175 def to_string (self , s : str ) -> str :
179176 # TODO rewrite using cast_to(x, str)
180177 "Provide SQL for casting a column to string"
181- ...
182178
183179 @abstractmethod
184180 def random (self ) -> str :
@@ -191,17 +187,14 @@ def current_timestamp(self) -> str:
191187 @abstractmethod
192188 def offset_limit (self , offset : Optional [int ] = None , limit : Optional [int ] = None ):
193189 "Provide SQL fragment for limit and offset inside a select"
194- ...
195190
196191 @abstractmethod
197192 def explain_as_text (self , query : str ) -> str :
198193 "Provide SQL for explaining a query, returned as table(varchar)"
199- ...
200194
201195 @abstractmethod
202196 def timestamp_value (self , t : datetime ) -> str :
203197 "Provide SQL for the given timestamp value"
204- ...
205198
206199 @abstractmethod
207200 def set_timezone_to_utc (self ) -> str :
@@ -239,7 +232,6 @@ def CONNECT_URI_PARAMS(self) -> List[str]:
239232 @abstractmethod
240233 def _query (self , sql_code : str ) -> list :
241234 "Send query to database and return result"
242- ...
243235
244236 @abstractmethod
245237 def query_table_schema (self , path : DbPath ) -> Dict [str , tuple ]:
@@ -249,17 +241,14 @@ def query_table_schema(self, path: DbPath) -> Dict[str, tuple]:
249241 Note: This method exists instead of select_table_schema(), just because not all databases support
250242 accessing the schema using a SQL query.
251243 """
252- ...
253244
254245 @abstractmethod
255246 def select_table_unique_columns (self , path : DbPath ) -> str :
256247 "Provide SQL for selecting the names of unique columns in the table"
257- ...
258248
259249 @abstractmethod
260250 def query_table_unique_columns (self , path : DbPath ) -> List [str ]:
261251 """Query the table for its unique columns for table in 'path', and return {column}"""
262- ...
263252
264253 @abstractmethod
265254 def _process_table_schema (
@@ -277,21 +266,10 @@ def _process_table_schema(
277266 @abstractmethod
278267 def parse_table_name (self , name : str ) -> DbPath :
279268 "Parse the given table name into a DbPath"
280- ...
281269
282270 @abstractmethod
283271 def close (self ):
284272 "Close connection(s) to the database instance. Querying will stop functioning."
285- ...
286-
287- @property
288- @abstractmethod
289- def is_closed (self ) -> bool :
290- "Return whether or not the connection has been closed"
291-
292- @abstractmethod
293- def _normalize_table_path (self , path : DbPath ) -> DbPath :
294- ...
295273
296274 @property
297275 @abstractmethod
0 commit comments