1. Michael Bayer
  2. sqlalchemy
  3. Issues

Issues

Issue #3086 new

server_default poorly documented

Michael Bayer
repo owner created an issue

it only includes text(). illustrate how enough information to support an example like:

tbl = Table("derp", metadata,
    Column("arr", ARRAY(Text),
                server_default=array([literal_column("'foo'"),
                                    literal_column("'bar'"),
                                    literal_column("'baz'")])),
)

that is, expressions, literals, etc. as a task elsewhere we have to figure out if we should drop the literal_column aspect of this.