Home » Developing U++ » UppHub » found a solution in the interim - firebird
found a solution in the interim - firebird [message #49270] |
Sun, 14 January 2018 20:25  |
|
Hi Novo and group-
I know C++ with Ultimate uses the language aggressively.
I like it though sometimes because the documentation is in the code.
However, Novo is very busy. I am not sure I am using his firebird correctly.
So, for the time being, I will use the new Soci 4.0 master branch.
I fired it up today, and it took very little time to install.
They had a ton of documentation and even a tip or two on google
to help me get the rest of the way.
I will check back periodically to see if anyone writes, but based on
how busy everyone is I am not sure if I can use firebird in bazaar.
It is not a show stopper for me. I can always use TK as a front end.
I just tinker with this stuff, and I think for the serious C++ person,
they will figure out Novo's firebird. I am probably doing it wrong.
Sorry, and thanks for being patient.
Thx. and have a cool rest of Jan.!-
mtdew3q
|
|
|
Re: found a solution in the interim - firebird [message #49291 is a reply to message #49270] |
Tue, 16 January 2018 21:12   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
Hi mtdew3q,
Sorry for the delayed response. I've committed a change which is supposed to help you to connect to firebird on Linux. I've fixed a name of a default client dll and removed references to functions which are not available in firebird 3.0.
Unfortunately, I'm unable to connect to firebird server myself because I'm getting an error below all the time.
Can not access lock files directory /tmp/firebird/
I believe this is related to an incorrect configuration of my server.
I'm testing this by running a command below.
./FirebirdTest /usr/lib/x86_64-linux-gnu/libfbclient.so /home/user/data/db/firebird/test.02.fdb
Regards,
Novo
|
|
|
|
Re: found a solution in the interim - firebird [message #49295 is a reply to message #49270] |
Wed, 17 January 2018 07:15  |
|
Hi Novo-
Please see test code below:
I tested this really quick except that I had to learn to check out a single file on git.
Your code is working awesome.
The code below prints out a list of countries from the employee.fdb sample db.
thx. so much!
01-17-2018 1:15 GMT -5
Have a cool week,
mtdew3q
FBSession s;
s.Connect(
"/usr/local/firebird/examples/empbuild/employee.fdb",
"localhost",
"SYSDBA",
"masterkey"
);
Sql stmt(s);
stmt.SetStatement(
" SELECT * from country"
);
stmt.Run();
while (stmt.Fetch())
{
Cout()<<stmt[0]<<"\n";
}
[Updated on: Wed, 17 January 2018 07:17] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:36:50 CEST 2025
Total time taken to generate the page: 0.00963 seconds
|