[PonyORM-list] Table names

Vincent LE GOFF vincent.legoff.srs at gmail.com
Mon Jun 15 18:27:00 UTC 2015


Hi everyone,

I was wondering something very simple:  In an application with a lot of 
classes that should be saved in the database, name conflict isn't that 
scarce.  In fact, since I'm trying to design a modular project, everyone 
could add new classes.  Pony might not like that a bit if two classes 
have similar names.

An obvious solution is to use the full names of classes 
(package.subpackage.subsubpackage....ClassName) instead.  We could use 
underscores instead of dots, dots are not a good idea in table names I 
guess.  I might be able to create a metaclass of some sort to do just 
that.  But perhaps there's an easier way to do it. Besides, I don't know 
if it would react well.

Thanks for your help and your work,

Vincent


More information about the ponyorm-list mailing list