Home » Developing U++ » UppHub » firebird (success with ibpp)
firebird [message #48408] |
Sat, 01 July 2017 22:09 |
|
Hi-
Just wondering, is anyone else using firebird in bazaar? Thx. for putting firebird out there.
Update: The firebird code in the bazaar seems really cool. I can't get it to build at this moment, so I am heading over to lazarus/freepascal. I will check back someday very soon. I'm reading firebird books to learn small applications that run on a network. I will check out PostgreSQL with transactions too. The main thing is I need practice with isolation levels, concurrency, transactions, and pessimistic locking. I can do that in U++ and/or free pascal. Have a very cool summer
U++ is very cool. There is a professor at college I know. I will tell him about U++. I think his students would think it is way cool.
Here is my hobby site where I upload stuff I am working on. I put a link for firebird with ibpp and UPP. http://www.3rdshiftcoder.net
#include "foo.h"
#include "ibpp.h"
#include <iostream>
int main(int argc, const char *argv[])
{
std::string fn;
std::string ln;
try
{
IBPP::Database db = IBPP::DatabaseFactory("localhost", "/usr/local/firebird/examples/empbuild/employee.fdb",
"sysdba", "mypasswd");
db->Connect();
IBPP::Transaction tr = IBPP::TransactionFactory(db);
IBPP::Statement st = IBPP::StatementFactory(db, tr);
tr->Start();
st->Execute("SELECT first_name, last_name FROM employee");
while (st->Fetch())
{
st->Get(1, fn);
st->Get(2, ln);
cout << fn.c_str() << " - " << ln.c_str() << "\n";
}
tr->Commit();
db->Disconnect();
}
catch (IBPP::Exception& e)
{
cout << e.ErrorMessage();
}
return 0;
}
[Updated on: Mon, 10 July 2017 05:02] Report message to a moderator
|
|
|
|
Re: firebird [message #49234 is a reply to message #48408] |
Wed, 10 January 2018 07:43 |
|
Hi Novo-
Thx. so much for posting the cool fix.
I can't wait to take it for a test drive!
I just saw your post today Jan 09, 2017. I will check out by this weekend.
Have cool January
mtdew3q
|
|
|
Goto Forum:
Current Time: Fri Mar 29 14:58:17 CET 2024
Total time taken to generate the page: 0.01061 seconds
|