[fpc-devel] GetConnectionDef in the interface section

Michael Van Canneyt michael.vancanneyt at wisa.be
Mon Jul 16 20:22:07 CEST 2007



On Mon, 16 Jul 2007, Joao Morais wrote:

> Michael Van Canneyt wrote:
> > 
> > On Sun, 15 Jul 2007, Joao Morais wrote:
> > 
> > > Hello,
> > >
> > > It's possible include the following declaration:
> > >
> > > function GetConnectionDef(ConnectorName: string): TConnectionDef;
> > >
> > > in the interface section of the sqldb unit and merge to 2.2?
> > 
> > Moving it to interface is not a problem.
> 
> Nice, thanks. Can you upload the change?

Done.

> 
> > Merge to 2.2 is another matter.
> 
> This means no or this means perhaps?

Rather no.

> 
> If this means no, give me how can I instantiate a SQLConnection from a string,
> or sqldb isn't flexible enough?

You should use TSQLConnector for this, it takes care of the necessary
details. I don't see why you would need GetConnectionDef since TSQLConnector
handles everything...

Michael.



More information about the fpc-devel mailing list