Skip to main content

sql_max_identifier_length

Function sql_max_identifier_length 

Source
pub fn sql_max_identifier_length<C: SqlConnection>(conn: &C) -> Option<usize>
Expand description

Maximum identifier length supported by the SQL backend, or None when no documented limit exists.

Useful for to_sql validation: backends that override this report their cap (PostgreSQL=63, MySQL=64, MSSQL=128) so auto-generated index / constraint / column names can be truncated or rejected before round-tripping through DDL that would silently truncate.

Per br-frankenpandas-cs81 (fd90.26).