Closed CrockAgile closed 10 years ago
Or I suppose that there is no need for our own classes because all that info is stored on the DB, so really just need to know how to interact with the DB, reading, updating, etc.
I think interaction is going to be handled by a connection abstraction layer, which will go through SnakeMQ, which will communicate with SQLAlchemy. If you have any code written, please push it to a feature branch off develop so that it's shared, that way as the backend is developed, your questions will get answered by implementation (believe me, I have the same questions).
Sorry for the delay. I had to rebuild the script that creates the database. Its done, and I am working on a key and tutorial script to show you how to call information out of the database. It will be with my next push to my repo.
Thanks Greg! Actually already have been reading over a bunch of your database code and think I have it somewhat figured out, but I am sure your information will be useful as well! I am currently testing two approaches. One being just a direct database statement based approach, more on the functional side of things. And the other is direct mapping to the database, so I can just refer to the DB in an OOP manner. Benefit of the latter would be that it comes with built in rollback support and may save on required code in the long run at the cost of initial investment.
@crockj72 Alright. example.py (available on my repo, and in the pull request) should answer your questions. databaseKey.txt should help as well. Enjoy!
That is excellent and in fact your new update pretty much matches exactly the updates I was making haha so points for us both coming up with the same things from the ORM docs? I will update my code and might modify little pieces of yours just for some consistency. Issue closed!
As I work on the prototypes of the backend functions I have been accumulating a couple of questions I thought that maybe some of you may be able to answer, so please feel free to chime in if you think you may have some answer for me!
Thank you for helping with my confusion! <3