[orm-devel] Re: Unified Connection Strings
Diedrich Vorberg
orm-devel@mailman.tux4web.de
Tue, 3 Dec 2002 10:33:31 +0100
Hallo,
there is a version with a unified format for connection strings in the
CVS repository.
the orm.datasource.datasource docstring:
"""
Return a ORM datasource object constructed from a connection string.
The connection strings follow the conventions for PostgreSQL DSNs:
they consist of keyword=value pairs seperated with whitespace.
Keywords recognized are:
adapter - name of the ORM adapter used. Use the name from the
adapters/ directory.
db - name of the database to connect to
user - Database username
password - Password used for authentication
host - hostname or IP address of the machine the database
runs on (note that there might be a difference if you
use 127.0.0.1 or localhost. The first creating a tcp/ip
connection, the latter a unix/fifo connection. This is
true for at leas psql and mysql
Each of the database backends may define its own keywords. For
instance PostgreSQL will understand each of the original keywords
as aliases. Check the documentation!
Values may not contain spaces.
"""
Diedrich
--
_..._ Diedrich Vorberg
.' '.
/ _ _ \ http://www.tux4web.de
| (o)_(o) | info@tux4web.de
\( ) / .---.
//'._.'\ \ / \ Internet Dienstleistungen
// . \ \ \.@-@./ und 'Consulting'.
|| . \ \ /`\_/`\
|\ : / | // _ \\ Linux Rules!
\ `) ' (` /_ | \ )|_
_)``".____,.'"` (_ /`\_`> <_/ \
) )'--'( ( \__/'---'\__/
'---` `---`