pomm-project / ModelManager

Model Manager for the Pomm database framework.
MIT License
66 stars 27 forks source link

Disable Prefixing with session name and/or schema #60

Closed mvrhov closed 5 years ago

mvrhov commented 8 years ago

If only one schema and/or session is used in a project then there is no need to nest the Models so deep.

Having an option to disable prefix for either of them would be nice as this would also mean less deep namespaces

chanmix51 commented 8 years ago

IMHO, the good way of doing the thing is the way it is done in Pomm 1.x. Giving the user to specify the path as a pattern like --dir-pattern={Session}/{Schema}Schema or, in your case --dir-pattern={Session} but it could also accept constant expressions like --dir-pattern=Database/{Session}Production/{Schema}Schema

Would that be ok ?

mvrhov commented 8 years ago

That would be ok

chanmix51 commented 5 years ago

Fixed with Pomm-Project/Cli#31