Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-07

GetConnectionDef in the interface section

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joao Morais

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?

Thanks.

Joao Morais

Reply by email

Michael Van Canneyt
to Joao Morais
Joao Morais wrote 8 lines
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. Merge to 2.2 is another matter.

Michael.

Reply by email

Joao Morais
to Michael Van Canneyt
Michael Van Canneyt wrote 12 lines
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?

Merge to 2.2 is another matter.

This means no or this means perhaps?

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

Anyway I see your point.

Thanks.

Joao Morais

Reply by email

Michael Van Canneyt
to Joao Morais
Joao Morais wrote 15 lines
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.

Reply by email