@@ -25,6 +25,7 @@ from .base import DialectKWArgs
25
25
from .base import SchemaEventTarget
26
26
from .elements import ClauseElement
27
27
from .elements import ColumnClause
28
+ from .elements import ColumnElement
28
29
from .elements import TextClause
29
30
from .selectable import TableClause
30
31
from .. import util
@@ -125,7 +126,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
125
126
primary_key : bool = ...
126
127
nullable : bool = ...
127
128
default : Optional [Any ] = ...
128
- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...
129
+ server_default : Optional [
130
+ Union [FetchedValue , str , TextClause , ColumnElement [_TE ]]
131
+ ] = ...
129
132
server_onupdate : Optional [FetchedValue ] = ...
130
133
index : Optional [bool ] = ...
131
134
unique : Optional [bool ] = ...
@@ -152,7 +155,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
152
155
nullable : bool = ...,
153
156
onupdate : Optional [Any ] = ...,
154
157
primary_key : bool = ...,
155
- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...,
158
+ server_default : Optional [
159
+ Union [FetchedValue , str , TextClause , ColumnElement [Any ]]
160
+ ] = ...,
156
161
server_onupdate : Optional [FetchedValue ] = ...,
157
162
quote : Optional [bool ] = ...,
158
163
unique : Optional [bool ] = ...,
@@ -173,7 +178,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
173
178
nullable : bool = ...,
174
179
onupdate : Optional [Any ] = ...,
175
180
primary_key : bool = ...,
176
- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...,
181
+ server_default : Optional [
182
+ Union [FetchedValue , str , TextClause , ColumnElement [Any ]]
183
+ ] = ...,
177
184
server_onupdate : Optional [FetchedValue ] = ...,
178
185
quote : Optional [bool ] = ...,
179
186
unique : Optional [bool ] = ...,
@@ -196,7 +203,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
196
203
nullable : bool = ...,
197
204
onupdate : Optional [Any ] = ...,
198
205
primary_key : bool = ...,
199
- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...,
206
+ server_default : Optional [
207
+ Union [FetchedValue , str , TextClause , ColumnElement [_TE ]]
208
+ ] = ...,
200
209
server_onupdate : Optional [FetchedValue ] = ...,
201
210
quote : Optional [bool ] = ...,
202
211
unique : Optional [bool ] = ...,
@@ -218,7 +227,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
218
227
nullable : bool = ...,
219
228
onupdate : Optional [Any ] = ...,
220
229
primary_key : bool = ...,
221
- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...,
230
+ server_default : Optional [
231
+ Union [FetchedValue , str , TextClause , ColumnElement [_TE ]]
232
+ ] = ...,
222
233
server_onupdate : Optional [FetchedValue ] = ...,
223
234
quote : Optional [bool ] = ...,
224
235
unique : Optional [bool ] = ...,
0 commit comments