Ian Bicking wrote:
> Predrag Peranovic wrote:
>
>> 1. How to get columns name, format , size and rest of attributes
>> (like text size, notNull) from an SQLObject?
>
>
> Right now SomeSQLObject._SO_columnDict will give you the Col objects
> (keyed by attribute name). In the future, I hope to change all the
> columns to be descriptors, so when you do SomeSQLObject.columnName you
> will get the Col object, and it will have a clear interface for
> introspection. But until then you'll have to track changes, as
> there's no stable interface for this yet.
Ok, thanks
>> 2. How to set additional parameters to Firebird connection, like:
>> charset, role, dialect?
>
>
> I've applied these changes to the repository.
>
> Generally, you can still get to the connection via
> sqlobject.firebird.FirebirdConnection. Maybe there should be an
> easier way. You can also use the URI form.
>
> Any query parameters you use will be passed through as keyword
> arguments, though right now only as strings. At some point we might
> need to do some translation to different types. Hmm... is dialect
> always an integer?
>
> Anyway, you should be able to do
> firebird://user:password@host/dbname?charset=ISO-8859&role=admin (or
> however those are supposed to be formatted).
Dialect is always integer, but to be honest it's parameter is important
only if you want to connect to some very old database, and it can wait.
Connecting working fine with conncectForURI and with
sqlobject.firebird.FirebirdConnection.
Thanks,
Predrag Peranovic
|