librelist archives

« back to archive

newbie database question

newbie database question

From:
Vdc
Date:
2012-06-07 @ 02:03
I'm at the outset of a new project, and am considering Flask. I want to 
run it on Heroku, and I want to use DynamoDB. There are ways of accessing 
DynamoDB from Heroku, I won't ask here about that.

My question is: From my newbie perspective, it looks to me like Flask is 
pretty database agnostic, although people often use SQLalchemy. My guess 
is that I wouldn't really have any problem using DynamoDB via boto as the 
database in a Flask app. Please correct me if I'm wrong.

Thanks for any input,
Gary


-- 

Gary Robinson
President
Virtual Development Corp.
grobinson@virtualdevelopment.com
http://www.garyrobinson.net




Re: [flask] newbie database question

From:
Simon Sapin
Date:
2012-06-07 @ 07:51
Le 07/06/2012 04:03, VDC a écrit :
> I'm at the outset of a new project, and am considering Flask. I want
> to run it on Heroku, and I want to use DynamoDB. There are ways of
> accessing DynamoDB from Heroku, I won't ask here about that.
>
> My question is: From my newbie perspective, it looks to me like Flask
> is pretty database agnostic, although people often use SQLalchemy. My
> guess is that I wouldn't really have any problem using DynamoDB via
> boto as the database in a Flask app. Please correct me if I'm wrong.
>
> Thanks for any input, Gary

Hi,

As long as you can use DynamoDB from Python it should be fine.

There are many Flask-XYZ extensions that allow you to use XYZ more 
easily with Flask (like integrating transactions with the request cycle) 
but these are often very thin wrappers. Using XYZ directly works just as 
well, only it may be a bit more verbose.

Apparently Flask-DynamoDB does not exist yet, but don’t let that stop you.

Regards,
-- 
Simon Sapin