Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/sqlalchemy/__init__.py: 100%

134 statements  

« prev     ^ index     » next       coverage.py v7.0.1, created at 2022-12-25 06:11 +0000

1# sqlalchemy/__init__.py 

2# Copyright (C) 2005-2022 the SQLAlchemy authors and contributors 

3# <see AUTHORS file> 

4# 

5# This module is part of SQLAlchemy and is released under 

6# the MIT License: https://www.opensource.org/licenses/mit-license.php 

7 

8from . import util as _util 

9from .engine import create_engine 

10from .engine import create_mock_engine 

11from .engine import engine_from_config 

12from .inspection import inspect 

13from .schema import BLANK_SCHEMA 

14from .schema import CheckConstraint 

15from .schema import Column 

16from .schema import ColumnDefault 

17from .schema import Computed 

18from .schema import Constraint 

19from .schema import DDL 

20from .schema import DefaultClause 

21from .schema import FetchedValue 

22from .schema import ForeignKey 

23from .schema import ForeignKeyConstraint 

24from .schema import Identity 

25from .schema import Index 

26from .schema import MetaData 

27from .schema import PrimaryKeyConstraint 

28from .schema import Sequence 

29from .schema import Table 

30from .schema import ThreadLocalMetaData 

31from .schema import UniqueConstraint 

32from .sql import alias 

33from .sql import all_ 

34from .sql import and_ 

35from .sql import any_ 

36from .sql import asc 

37from .sql import between 

38from .sql import bindparam 

39from .sql import case 

40from .sql import cast 

41from .sql import collate 

42from .sql import column 

43from .sql import delete 

44from .sql import desc 

45from .sql import distinct 

46from .sql import except_ 

47from .sql import except_all 

48from .sql import exists 

49from .sql import extract 

50from .sql import false 

51from .sql import func 

52from .sql import funcfilter 

53from .sql import insert 

54from .sql import intersect 

55from .sql import intersect_all 

56from .sql import join 

57from .sql import LABEL_STYLE_DEFAULT 

58from .sql import LABEL_STYLE_DISAMBIGUATE_ONLY 

59from .sql import LABEL_STYLE_NONE 

60from .sql import LABEL_STYLE_TABLENAME_PLUS_COL 

61from .sql import lambda_stmt 

62from .sql import lateral 

63from .sql import literal 

64from .sql import literal_column 

65from .sql import modifier 

66from .sql import not_ 

67from .sql import null 

68from .sql import nulls_first 

69from .sql import nulls_last 

70from .sql import nullsfirst 

71from .sql import nullslast 

72from .sql import or_ 

73from .sql import outerjoin 

74from .sql import outparam 

75from .sql import over 

76from .sql import select 

77from .sql import subquery 

78from .sql import table 

79from .sql import tablesample 

80from .sql import text 

81from .sql import true 

82from .sql import tuple_ 

83from .sql import type_coerce 

84from .sql import union 

85from .sql import union_all 

86from .sql import update 

87from .sql import values 

88from .sql import within_group 

89from .types import ARRAY 

90from .types import BIGINT 

91from .types import BigInteger 

92from .types import BINARY 

93from .types import BLOB 

94from .types import BOOLEAN 

95from .types import Boolean 

96from .types import CHAR 

97from .types import CLOB 

98from .types import DATE 

99from .types import Date 

100from .types import DATETIME 

101from .types import DateTime 

102from .types import DECIMAL 

103from .types import Enum 

104from .types import FLOAT 

105from .types import Float 

106from .types import INT 

107from .types import INTEGER 

108from .types import Integer 

109from .types import Interval 

110from .types import JSON 

111from .types import LargeBinary 

112from .types import NCHAR 

113from .types import NUMERIC 

114from .types import Numeric 

115from .types import NVARCHAR 

116from .types import PickleType 

117from .types import REAL 

118from .types import SMALLINT 

119from .types import SmallInteger 

120from .types import String 

121from .types import TEXT 

122from .types import Text 

123from .types import TIME 

124from .types import Time 

125from .types import TIMESTAMP 

126from .types import TupleType 

127from .types import TypeDecorator 

128from .types import Unicode 

129from .types import UnicodeText 

130from .types import VARBINARY 

131from .types import VARCHAR 

132 

133 

134__version__ = "1.4.45" 

135 

136 

137def __go(lcls): 

138 global __all__ 

139 

140 from . import events 

141 from . import util as _sa_util 

142 

143 import inspect as _inspect 

144 

145 __all__ = sorted( 

146 name 

147 for name, obj in lcls.items() 

148 if not (name.startswith("_") or _inspect.ismodule(obj)) 

149 ) 

150 

151 _sa_util.preloaded.import_prefix("sqlalchemy") 

152 

153 from . import exc 

154 

155 exc._version_token = "".join(__version__.split(".")[0:2]) 

156 

157 

158__go(locals())