Allow specifying a schema for created databases

Bug #1025384 reported by James Westby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postgresfixture
Triaged
Wishlist
Unassigned

Bug Description

When creating a db you usually want to populate it with a schema so you can start running queries.

It might be nice for postgresfixture to allow specifying a schema and it doing the work of
executing the DDL.

Thanks,

James

Revision history for this message
Gavin Panella (allenap) wrote :

As discussed on IRC, I think postgresfixture's lack of features is a virtue right now, but if this can be done "to one side", say as a subclass of ClusterFixture, or as a fixture that accepts a Cluster, that would fit in nicely.

Changed in postgresfixture:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 1025384] Re: Allow specifying a schema for created databases

FWIW there is schema application code in lazr.postgresql, which would
be most suitable for combining with this, vs conflating schema
management and cluster management.

Revision history for this message
Gavin Panella (allenap) wrote :

Thanks for that Rob. I suspect fixing this bug will involve documenting some options rather than adding code.

Changed in postgresfixture:
importance: Low → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.