Page 2 of 11

Re: SQLCipher ported to Harbour (Windows)

Posted: Sat Oct 06, 2012 9:25 pm
by Hazael
Hello Rathinagiri,

I was looking the code of your usefull utility sql1.prg and I found something I didn't understand:
It is on the function sql():

Code: Select all

ASize( tablearr, 0 )      
Shouldn't it be:

Code: Select all

ASize( tablearr, len(table)-1 )
?
Just trying to understand it...
Thanks for any help.

Re: SQLCipher ported to Harbour (Windows)

Posted: Mon Oct 08, 2012 5:53 am
by Rathinagiri
Hi Qatan,

It is just an initialization of the variable tablearr. Since it is a local variable, I think that line is not at all required.

Re: SQLCipher ported to Harbour (Windows)

Posted: Mon Oct 08, 2012 6:37 pm
by Hazael
Hello Rathinagiri,

Right. I thought it was the case but maybe I didn't understand the logic.
BTW do you have the last version of sql1.prg for sqlite only? (or could you point where to download it?)
Thanks for your help

Re: SQLCipher ported to Harbour (Windows)

Posted: Tue Oct 09, 2012 2:43 am
by Rathinagiri
I will upload here.

Re: SQLCipher ported to Harbour (Windows)

Posted: Tue Oct 09, 2012 4:23 am
by Rathinagiri
This is HMGSQL library source code for bridging SQLite/MySQL/PostgreSQL.

Re: SQLCipher ported to Harbour (Windows)

Posted: Tue Oct 09, 2012 6:18 am
by Hazael
Now I noticed it was included with HMG 3.0.44.

BTW I found this info that explains TCL is not needed to build SQLite (I do know if it would work for SQLCipher): http://www.sqlite.org/cvstrac/wiki?p=Bu ... WithoutTcl

I think it is worth of a try... what do you think?
If it works it would reduce the need for an extra tool (TCL) so it would make the whole process even simpler.

And this one: http://techtonik.rainforce.org/2005/12/ ... ndows.html seems very good too.

Thanks for all your help.

Re: SQLCipher ported to Harbour (Windows)

Posted: Thu Dec 06, 2012 12:57 pm
by mol
Hi Rathi!
Can you place a little working sample with SQLCipher?

Re: SQLCipher ported to Harbour (Windows)

Posted: Thu Dec 06, 2012 2:39 pm
by Rathinagiri
Oh yes. I will do it tomorrow.

Re: SQLCipher ported to Harbour (Windows)

Posted: Thu Dec 06, 2012 3:23 pm
by mol
super!

Re: SQLCipher ported to Harbour (Windows)

Posted: Thu Dec 06, 2012 4:01 pm
by Rathinagiri
What kind of sample you want?

Exclusive for SQLite handling or SQLcipher handling?