<div dir="ltr">Thanks! I hope PonyOrm can develop better.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-01 17:30 GMT+08:00 Alexey Malashkevich <span dir="ltr"><<a href="mailto:alexeymalashkevich@gmail.com" target="_blank">alexeymalashkevich@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">At this point Pony doesn't generate models from the database tables. <br>However Pony can map entities to legacy databases.<br>
For this purpose you can use parameters "_table_", "column", "columns":<br>
<br> class MyEntity(db.Entity):<br> _table_ = "legacy_table"<br> attr1 = Required(unicode, column="db_column1")<br><br>Check the "Mapping customization" part in the Pony documentation for an example<br>
<a href="http://doc.ponyorm.org/entities.html#mapping-customization" target="_blank">http://doc.ponyorm.org/entities.html#mapping-customization</a><br>Let us know if you have any further questions.<br><br>Regards,<br>Alexey<br>
</div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div class="">On Tue, Apr 1, 2014 at 8:01 AM, ���� <span dir="ltr"><<a href="mailto:gf0842wf@gmail.com" target="_blank">gf0842wf@gmail.com</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">
<div dir="ltr">Hi! How can I use pony to generate a model from a legacy database?<br><div>Look forward to your reply.Thanks!<br></div></div>
<br></div>_______________________________________________<br>
ponyorm-list mailing list<br>
<a href="mailto:ponyorm-list@ponyorm.org" target="_blank">ponyorm-list@ponyorm.org</a><br>
<a href="/ponyorm-list" target="_blank">/ponyorm-list</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
ponyorm-list mailing list<br>
<a href="mailto:ponyorm-list@ponyorm.org">ponyorm-list@ponyorm.org</a><br>
<a href="/ponyorm-list" target="_blank">/ponyorm-list</a><br>
<br></blockquote></div><br></div>