On Thursday, September 25, 2014 1:21:33 PM UTC-4, tonthon wrote:
>
> 1- Use something like sqlautocode to dynamically build models regarding
> your existing database structure
> 2- Migrate tables to fit your declared models
> 3- Delete your tables
>
> You'll use 1 and 2 if you'd like to keep
Le 25/09/2014 18:53, Rosciuc Bogdan a écrit :
> It looks like I have to use the initialize_db script since the whole
> project is written from scratch.
>
> So let me see if I got this right.
>
> 1) I create the database Metadata by using SqlAlchemy's declarative
> model. At this moment I might not
It looks like I have to use the initialize_db script since the whole
project is written from scratch.
So let me see if I got this right.
1) I create the database Metadata by using SqlAlchemy's declarative model.
At this moment I might not have an already existing database
2) I connect this Meta
most of these questions are more SqlAlchemy oriented, not about pyramid.
the initialize_db stuff is only needed when you're creating a database from
scratch. many people don't do that. there are a handful of SqlAlchemy
oriented projects on PyPi that will build a "declarative" based models.py
f