Skip to main content

column_default_sql

Function column_default_sql 

Source
pub fn column_default_sql(
    pyql: &str,
    schema: &SchemaDescriptor,
) -> Option<String>
Expand description

The SQL for a pointer’s PyQL default as a column DEFAULT clause, or None when a column DEFAULT cannot hold it — it reads a session global, selects an object, or otherwise needs the query around it. Those are applied by compile_insert instead; see inlined_pointer_defaults.