[Dbconfig-common-devel] dbconfig and default values

Radu Spineanu radu at debian.org
Mon Apr 10 17:22:45 UTC 2006


sean finney wrote:
> hi radu,
> 
> hrm, i'm not sure off the top of my head.  do you have a source
> package you could point me at?
> 
I am in the middle of packaging simba, however i took this idea from
acidbase...

> 
>> The program i am trying to package uses perl dbi, and the connection
>> needs values for port and host:
>>
>> ------------
>>   db => {
>>     dsn  => 'dbi:mysql:database=mirrors_db;host=localhost;port=3306',
>>     user => 'mirrors',
>>     pass => 'mirrors',
>>   },
>> ------------
> 
> so is your problem that the dbc_load_include isn't working at all, or
> is it only that the default localhost/port values aren't being set
> properly?
> 

> istr doing some work to be able to provide "unset" values, that is,
> values for certain settings when blank.  i'll double check on this
> because it was a bit back and i forget how far i got with it.
>
Exactly, i need default localhost/port values.

>> On a side note, do you any examples about using dbc_generate_include
>> with templates ?
> 
> no, i don't think so.  the db-test-mysql-perl package from the examples
> directory uses the dbc_generate_include feature, but that's it.
> probably worth including one though :)
> 
> basically, you do something like
> 
> dbc_generate_include="perl:$destinationfile"
> dbc_generate_include_args="-f template -o template_infile=$srctemplate"
> 
[..]

However will dbc_load_include work with this solution ?

Thanks,
Radu Spineanu



More information about the Dbconfig-common-devel mailing list