@@ -25,6 +25,7 @@ from .base import DialectKWArgs
2525from .base import SchemaEventTarget
2626from .elements import ClauseElement
2727from .elements import ColumnClause
28+ from .elements import ColumnElement
2829from .elements import TextClause
2930from .selectable import TableClause
3031from .. import util
@@ -125,7 +126,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
125126 primary_key : bool = ...
126127 nullable : bool = ...
127128 default : Optional [Any ] = ...
128- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...
129+ server_default : Optional [
130+ Union [FetchedValue , str , TextClause , ColumnElement [_TE ]]
131+ ] = ...
129132 server_onupdate : Optional [FetchedValue ] = ...
130133 index : Optional [bool ] = ...
131134 unique : Optional [bool ] = ...
@@ -152,7 +155,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
152155 nullable : bool = ...,
153156 onupdate : Optional [Any ] = ...,
154157 primary_key : bool = ...,
155- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...,
158+ server_default : Optional [
159+ Union [FetchedValue , str , TextClause , ColumnElement [Any ]]
160+ ] = ...,
156161 server_onupdate : Optional [FetchedValue ] = ...,
157162 quote : Optional [bool ] = ...,
158163 unique : Optional [bool ] = ...,
@@ -173,7 +178,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
173178 nullable : bool = ...,
174179 onupdate : Optional [Any ] = ...,
175180 primary_key : bool = ...,
176- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...,
181+ server_default : Optional [
182+ Union [FetchedValue , str , TextClause , ColumnElement [Any ]]
183+ ] = ...,
177184 server_onupdate : Optional [FetchedValue ] = ...,
178185 quote : Optional [bool ] = ...,
179186 unique : Optional [bool ] = ...,
@@ -196,7 +203,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
196203 nullable : bool = ...,
197204 onupdate : Optional [Any ] = ...,
198205 primary_key : bool = ...,
199- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...,
206+ server_default : Optional [
207+ Union [FetchedValue , str , TextClause , ColumnElement [_TE ]]
208+ ] = ...,
200209 server_onupdate : Optional [FetchedValue ] = ...,
201210 quote : Optional [bool ] = ...,
202211 unique : Optional [bool ] = ...,
@@ -218,7 +227,9 @@ class Column(DialectKWArgs, SchemaItem, ColumnClause[_TE]):
218227 nullable : bool = ...,
219228 onupdate : Optional [Any ] = ...,
220229 primary_key : bool = ...,
221- server_default : Optional [Union [FetchedValue , str , TextClause ]] = ...,
230+ server_default : Optional [
231+ Union [FetchedValue , str , TextClause , ColumnElement [_TE ]]
232+ ] = ...,
222233 server_onupdate : Optional [FetchedValue ] = ...,
223234 quote : Optional [bool ] = ...,
224235 unique : Optional [bool ] = ...,
0 commit comments