Skip to content

Commit 784e5df

Browse files
committed
docs: document autostring
1 parent 99f4564 commit 784e5df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sqlmodel/sql/sqltypes.py

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66

77
class AutoString(types.TypeDecorator): # type: ignore
8+
"""
9+
Determines the best sqlalchemy string type based on the database dialect.
10+
11+
For example, when using Postgres this will return sqlalchemy's String()
12+
"""
13+
814
impl = types.String
915
cache_ok = True
1016
mysql_default_length = 255

0 commit comments

Comments
 (0)