--
You received this message because you are subscribed to the Google Groups "Reahl discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reahl-discus...@googlegroups.com.
To post to this group, send email to reahl-...@googlegroups.com.
Visit this group at http://groups.google.com/group/reahl-discuss.
For more options, visit https://groups.google.com/d/optout.
I appreciate your information on how to change the database that reahl uses internally. I would appreciate some information on how to make use of reahl's sqlalchemy support. I need to configure it.
Finally, I find it unusual that a test for a Reahl app cannot use theSQLAlchemy metadata that is used for the app itself to make itsconnections. I would think it would be accessible to both. In fact,anything else means the test might pass when the code might fail orvice versa due to differences in test and live environment.
I have some suggestions for [this
- where it says "a little Reahl help" it should like to thereahl.sqlalchemysupport docs.- likewise when this same page says "some glue" that should also be alink to those docs.- where it says "In a complete Reahl program, none of this databasehousekeeping is visible in code – Reahl provides tools that dealwith it." there should be a link to the tools that deal with it.
-- Reahl, the Python only web framework: http://www.reahl.org
He Terrence,
On 22/04/2015 03:39, Terrence Brannon wrote:
I appreciate your information on how to change the database that reahl uses internally. I would appreciate some information on how to make use of reahl's sqlalchemy support. I need to configure it.
I think you pointed out a glaring hole in the docs. We'll have to write something up.
Seems there are two issues here:
(a) how to use postgresql instead of sqlite; and
(b) something you want to configure regarding sqlalchemy
Craig answered (a).
But I don't understand what you need configurable about using sqlalchemy.
Seems there are two issues here:
(a) how to use postgresql instead of sqlite; and
(b) something you want to configure regarding sqlalchemy
Craig answered (a).
No, Craig gave an answer to (a) regarding how to switch the database that Reahl uses internally for it's housekeeping. What I want is an answer to: "How can I allow Reahl to use SQLite for its internal tasks while I use postgresql for my application database usage"...
If that is not possible, then I need to know how to use Postgresql for both my application and for Reahls internal housekeeping.
But I don't understand what you need configurable about using sqlalchemy.
Furthermore, there should be a way to flexibly switch between staging and production connection URLs.
Hi Terrence,
On 22/04/2015 12:08, Terrence Brannon wrote:
Seems there are two issues here:
(a) how to use postgresql instead of sqlite; and
(b) something you want to configure regarding sqlalchemy
Craig answered (a).
No, Craig gave an answer to (a) regarding how to switch the database that Reahl uses internally for it's housekeeping. What I want is an answer to: "How can I allow Reahl to use SQLite for its internal tasks while I use postgresql for my application database usage"...
If that is not possible, then I need to know how to use Postgresql for both my application and for Reahls internal housekeeping.
Nope, that's not possible. There is only on database shared by your program and Reahl itself. The answer Craig gave thus applies to that one database.
Visit this group at https://groups.google.com/group/reahl-discuss.
...
--
...
--
...
--
...
reahlsystem.databasecontrols [<class 'reahl.postgresqlsupport.PostgresqlControl'>, <class 'reahl.component.dbutils.NullDatabaseControl'>]
postgres(ql)?://(?P<user>\w+)(:(?P<password>\w+))?@(?P<host>\w+)(:(?P<port>\d+))?/(?P<database>\w+)$
reahlsystem.connection_uri postgresql://fiberuser:f1b&rgest@localhost/fibergest
;-)
--
You received this message because you are subscribed to a topic in the Google Groups "Reahl discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reahl-discuss/E6W6Yg8YxRY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reahl-discus...@googlegroups.com.
To post to this group, send an email to reahl-...@googlegroups.com.
;-)
Il 19 mar 2016 19:22, "Craig Sparks" <cr...@reahl.org> ha scritto:
Great, seems you guys have been having fun without me. ;->
On 19/03/2016 14:03, Iwan Vosloo wrote:
On 19/03/2016 12:10, Giuseppe Traficante wrote:
now i've created myusername, mydbname with pwd a and it works!
Great Giuseppe!
I have logged a bug for this at: https://bugs.launchpad.net/reahl/+bug/1559434
The workaround is to include the following lines in your reahl.config.py:
from reahl.postgresqlsupport import PostgresqlControl
PostgresqlControl.uri_regex_string = r'postgres(ql)?://(?P<user>\w+)(:(?P<password>.*))?@(?P<host>\w+)(:(?P<port>\d+))?/(?P<database>\w+)$'
Regards
- Iwan
--
You received this message because you are subscribed to a topic in the Google Groups "Reahl discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reahl-discuss/E6W6Yg8YxRY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reahl-discuss+unsubscribe@googlegroups.com.