Subject | RE: [firebird-support] Embedded C++ |
---|---|
Author | Alan McDonald |
Post date | 2006-02-16T12:06:20Z |
> >>Thinking of using Embedded C++ for a small project.ok so why wouldn't you pass the connection around? seems sensible to me.
> >>
> >>I have a question, the old IB docs aren't totally clear.
> >>
> >>Can connections be shared, across source files, and how do you
> do this????
> >>
> >>W
> >>
> >
> >
> > assuming you mean embedded firebird using C++
> > embedded is a dll (client and server roled into one).
> > the host application of the dll can open a database and make as many
> > connections to it as it desires, but it is opened exclusively
> by the hosted
> > dll and no other application loading it's own dll will get
> access to the db
> > file while it is open via the first attachment
> > Alan
> >
>
> Actually I meant Embedded SQL in a C++ program using EXEC SQL statements.
>
> Here is what I meant:
>
> znog.cpp contains EXEC SQL statements and sets up a connection
>
> ziffle.cpp contains functions called by znog.cpp and I want to use the
> same connection. So I am not setting up 15 gazillion connections for
> the same client.
>
> W
A