File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change 30
30
import trino .client
31
31
import trino .logging
32
32
from trino .transaction import Transaction , IsolationLevel , NO_TRANSACTION
33
+ from trino .exceptions import (
34
+ Warning ,
35
+ Error ,
36
+ InterfaceError ,
37
+ DatabaseError ,
38
+ DataError ,
39
+ OperationalError ,
40
+ IntegrityError ,
41
+ InternalError ,
42
+ ProgrammingError ,
43
+ NotSupportedError ,
44
+ )
33
45
34
-
35
- __all__ = ["connect" , "Connection" , "Cursor" ]
46
+ __all__ = [
47
+ # https://www.python.org/dev/peps/pep-0249/#globals
48
+ "apilevel" ,
49
+ "threadsafety" ,
50
+ "paramstyle" ,
51
+ "connect" ,
52
+ "Connection" ,
53
+ "Cursor" ,
54
+ # https://www.python.org/dev/peps/pep-0249/#exceptions
55
+ "Warning" ,
56
+ "Error" ,
57
+ "InterfaceError" ,
58
+ "DatabaseError" ,
59
+ "DataError" ,
60
+ "OperationalError" ,
61
+ "IntegrityError" ,
62
+ "InternalError" ,
63
+ "ProgrammingError" ,
64
+ "NotSupportedError" ,
65
+ ]
36
66
37
67
38
68
apilevel = "2.0"
You can’t perform that action at this time.
0 commit comments