[Python] Porting medica2

Marco Mariani marco.mariani a prometeia.it
Ven 22 Gen 2010 14:53:01 CET


On 01/22/2010 01:56 PM, Manlio Perillo wrote:

> Puoi creare le view in un file SQL e poi usare reflect=True,

che faccio gia' per il resto dello schema, ok


> ma questo
> non funziona con il modo in cui uso SQLAlchemy, dato che richiede di
> effettuare il binding dell'oggetto metadata ad un engine *prima* che
> crei la tabella collegata alla view.
>
> Io invece dedico un intero modulo Python alla sola definizione dello
> schema SQL per un dato package, definendo un oggetto Metadata globale
> (al modulo).

Capito.

Beh, la prima cosa che mi e' venuta in mente e' anche il modo suggerito
da Bayer:


http://www.mail-archive.com/sqlalchemy@googlegroups.com/msg15796.html


-- 
This e-mail (and any attachment(s)) is strictly confidential and for use
only by intended recipient(s). Any use, distribution, reproduction or
disclosure by any other person is strictly prohibited. The content of
this e-mail does not constitute a commitment by the Company except where
provided for in a written agreement between this e-mail addressee and
the Company. If you are not an intended recipient(s), please notify the
sender promptly and destroy this message and its attachments without
reading or saving it in any manner. Any non authorized use of the
content of this message constitutes a violation of the obligation to
abstain from learning of the correspondence among other subjects, except
for more serious offence, and exposes the person responsible to the
relevant consequences.



Maggiori informazioni sulla lista Python