As told by Jonathan, I’m trying to create a separate package for the models. 
Can anyone point me in the right direction to create the models as a module. I 
can’t seem to think how to do it because of the different ways you can connect 
to the database and there is the unit test to do. I just need a pointer or some 
reference to do this.

Thanks.
Desmond
On 14 May 2019, 02:22 +0800, Jonathan Vanasco <jonat...@findmeon.com>, wrote:
> Are all of these APIs for the same company/organization (e.g. in-house 
> services), or are you developing something for different companies (you are 
> an agency with clients)?
>
> If everything is for the same company, I typically define and maintain a 
> single model in a dedicated separate package.  The various applications then 
> import and use that single model.  The model has it's own unit-tests to 
> ensure everything works as expected, but some tests are in the projects as 
> well.  Build/Deploy on each application runs the single model's tests too. 
> This ensures no project breaks the model.
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and 
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full 
> description.
> ---
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at https://groups.google.com/group/sqlalchemy.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sqlalchemy/e8bb854b-e2cd-476a-9158-9ef9bf18b477%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/3d421572-66c1-4168-b20e-479bccd0afd7%40Spark.
For more options, visit https://groups.google.com/d/optout.

Reply via email to