Sign in Join

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

Mailing lists / fpc-pascal / 2012-12

Accessing low-level Firebird facilities

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Mark Morgan Lloyd

Can somebody please lend me a hand making three sets of calls to (I think) ibase60dyn.pp please. I've written functions to make and poll asynchronous notifications for PostgreSQL, but I need the corresponding code for Firebird.

If somebody could point me at (Pascal) examples I'd appreciate it, otherwise I could post my existing fragments here if somebody was prepared to look at them and tell me what needs changing.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Reinier Olislagers
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 8 lines
Can somebody please lend me a hand making three sets of calls to (I think) ibase60dyn.pp please. I've written functions to make and poll asynchronous notifications for PostgreSQL, but I need the corresponding code for Firebird. If somebody could point me at (Pascal) examples I'd appreciate it, otherwise I could post my existing fragments here if somebody was prepared to look at them and tell me what needs changing.

Perhaps the fb events code Ludo Brands wrote could be useful?

- Example code:
packages\fcl-db\examples\fbeventstest.pp
- The source
packages\fcl-db\src\sqldb\interbase\fbeventmonitor.pp
- the equivalent for PostgreSQL:
packages\fcl-db\src\sqldb\postgres\pqeventmonitor.pp

Regards,
Reinier

Reply by email

Mark Morgan Lloyd
to Reinier Olislagers
Reinier Olislagers wrote 18 lines
On 22-12-2012 19:00, Mark Morgan Lloyd wrote: > Can somebody please lend me a hand making three sets of calls to (I > think) ibase60dyn.pp please. I've written functions to make and poll > asynchronous notifications for PostgreSQL, but I need the corresponding > code for Firebird. > > If somebody could point me at (Pascal) examples I'd appreciate it, > otherwise I could post my existing fragments here if somebody was > prepared to look at them and tell me what needs changing. Perhaps the fb events code Ludo Brands wrote could be useful? - Example code: packages\fcl-db\examples\fbeventstest.pp - The source packages\fcl-db\src\sqldb\interbase\fbeventmonitor.pp - the equivalent for PostgreSQL: packages\fcl-db\src\sqldb\postgres\pqeventmonitor.pp

Thanks Reinier, I'll dig into that later (I might be back). What I'm trying to do is use PostgreSQL as the primary backend for something, but allow for Firebird as a local cache since it's generally considered to be a bit lighter-weight.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Martin Schreiber
to Mark Morgan Lloyd: Can somebody please lend me a hand making three sets of calls to (I think) ibase60dyn.pp…
Mark Morgan Lloyd wrote 8 lines
Can somebody please lend me a hand making three sets of calls to (I think) ibase60dyn.pp please. I've written functions to make and poll asynchronous notifications for PostgreSQL, but I need the corresponding code for Firebird. If somebody could point me at (Pascal) examples I'd appreciate it, otherwise I could post my existing fragments here if somebody was prepared to look at them and tell me what needs changing.

MSEgui has code for Firebird and PostgreSQL server notifications. http://gitorious.org/mseide-msegui/mseide-msegui/trees/master/lib/common/db

Low level code is in mpqconnection.pp and mibconnection.pas, backend independent code in msedbevents.pas.

Martin

Reply by email

Mark Morgan Lloyd
to Martin Schreiber
Martin Schreiber wrote 5 lines
MSEgui has code for Firebird and PostgreSQL server notifications. http://gitorious.org/mseide-msegui/mseide-msegui/trees/master/lib/common/db Low level code is in mpqconnection.pp and mibconnection.pas, backend independent code in msedbevents.pas.

Thanks. I must say that Firebird appears to make extremely heavy going of this when compared with Postgres.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email