Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » firebird (success with ibpp)
firebird [message #48408] Sat, 01 July 2017 22:09 Go to next message
mtdew3q is currently offline  mtdew3q
Messages: 181
Registered: July 2010
Location: Upstate, NY (near Canada)
Experienced Member

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 Cool

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 #48950 is a reply to message #48408] Wed, 08 November 2017 18:08 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior Contributor
I've fixed compilation of Firebird with msvc.

Regards,
Novo
Re: firebird [message #49234 is a reply to message #48408] Wed, 10 January 2018 07:43 Go to previous message
mtdew3q is currently offline  mtdew3q
Messages: 181
Registered: July 2010
Location: Upstate, NY (near Canada)
Experienced Member

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 Smile

mtdew3q
Previous Topic: ChromiumBrowserExample compilation error due to lack of "cef_atomicops_x86_gcc.h"
Next Topic: Firebird connection problem
Goto Forum:
  


Current Time: Thu Oct 21 06:35:36 CEST 2021

Total time taken to generate the page: 0.01126 seconds