ANY DBE for SQLITE in Xbase++ 2.0 ?

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

ANY DBE for SQLITE in Xbase++ 2.0 ?

#1 Post by unixkd »

Hi All

The original spec of 2.0 indicated that it will have DBE for SQLite. Is it available in 2.0 now

Thanks.

Joe

User avatar
Auge_Ohr
Posts: 1406
Joined: Wed Feb 24, 2010 3:44 pm

Re: ANY DBE for SQLITE in Xbase++ 2.0 ?

#2 Post by Auge_Ohr »

don't know if Xbase++ v2.x can handle Sqlite already. i use it "native" with this CLASS from Pablo Botella
testsqlite.zip
need ot4xb
(249.49 KiB) Downloaded 832 times
greetings by OHR
Jimmy

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: ANY DBE for SQLITE in Xbase++ 2.0 ?

#3 Post by unixkd »

Hi Jimmy

I dont want to write new codes for my application. I just want a situation where my existing applications can connect to SQLITE without code changes.

Thanks.

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: ANY DBE for SQLITE in Xbase++ 2.0 ?

#4 Post by c-tec »

Hello Joe,
this will not work as you think, for example open a browser with a few thousands of records with a SQL table and a DBF table for browsing. You have to rewrite your code, and then I recommend SQLEXPRESS. I have made a tool that can synchronize DBF tables to any SQL databases automatically, this is enough for my customers, mostly they only need access to the data, and not writing in my system. I use DbRegisterClient() for this.
regards
Joe
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
Tom
Posts: 1170
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: ANY DBE for SQLITE in Xbase++ 2.0 ?

#5 Post by Tom »

Xbase++ supports SQLite, but not as a direct replacement for record navigated databases. This should work with PostGreSQL, but not without any changes in the app - some little work must be done, but the DBE is not finished yet.

As Rudolf said. If you want to move your app to SQL, the easiest way would be the "DBF upsize tool" and PGDBE (ISAM-SQL). There are other options, but switching the DBE without any changes is none.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: ANY DBE for SQLITE in Xbase++ 2.0 ?

#6 Post by rdonnay »

Tom -

I have a customer who is trying to migrate his app to PostGreSQL.

He has done the upsize but is disappointed in performance.
He uses a lot of code block that do complex algorithms when browsing data.
Lots of seeks into other databases.

We are looking at converting his entire app into using SQL SELECT statements to improve performance.
Are you using PostGreSQL in your app now?

Roger
The eXpress train is coming - and it has more cars.

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: ANY DBE for SQLITE in Xbase++ 2.0 ?

#7 Post by unixkd »

Hi Tom

You said: Xbase++ supports SQLite, but not as a direct replacement for record navigated databases

What DBE ? ODBCDBE ? If yes what is the connection string. I dont like ODBCDBE because it is too slow.

Thanks

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: ANY DBE for SQLITE in Xbase++ 2.0 ?

#8 Post by c-tec »

Hello Joe,
if you convert to SQL statements like Roger will do and Tom recommend, you are open for all SQL systems and versions and not only for those that Alaska decide to support. You have only to handle some minor differences and your system is fit for the future. Also you can also benefit from all powerful things that SQL offer. So I see no way for using a SQL DBE in a professional system. I still have no idea why Alaska put so much work to develop a SQL DBE.

regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: ANY DBE for SQLITE in Xbase++ 2.0 ?

#9 Post by unixkd »

Hi Rudulf

Back to SQLITE. How will the Database be connected ?

Thanks

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: ANY DBE for SQLITE in Xbase++ 2.0 ?

#10 Post by c-tec »

Hello Joe,
there is a native version from OT4XB, but I use SQLEXPRESS because it supports much more things. You can download the demo and look at the very good docs.
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply