Subject | Re: [firebird-support] Firebird C++ API? |
---|---|
Author | Elmar Haneke |
Post date | 2004-02-23T10:32:31Z |
> I'm more familiar using a C, or C++, API by callingThis might let you prefer using the API-calls.
> functions than embedding SQL statements in my source.
> The Interbase 6 Developers Guide suggests using theI would guessthat you might get problems when e.g. trying to pass
> API has some advantages over using the embedded SQL.
statement handles as parameters while using embedded SQL.
> You can write your own application using C or C++, orYou can also have SQL-Statements within your code when using API. But
> another programming language,and embed SQL statements in
> the code.
they are strings there.
> Advantages of using the InterBase APIThis might be relecant when using some IDE qhich does not really
>
> Simplification of compiling procedure—no precompiler
support external precompilers.
> Does "API application" refer to using C style functionYes.
> calls to communicate to the database?
> If so, where is the C, or preferably the C++, APIIt's the API-Guide from the Interbase 6 Documentation.
> described?
> I've downloaded the new 1.5.0.4920 Windows embeddedIt should be part of the server-Archive.
> executable today. I don't see any C header (.h) files
> among those expanded when I unzipped the embedded
> Windows distribution.
One addition to consider: Using embedded SQL does allow you to have
your SQL-Statements analysed at compile time. Besides an small
performance gain (which i would estimate as minor) this does check
your application for correct SQL - including misspelled names.
Elmar