Appson,Is there any plan to directly support SQLite? NOT ODBC
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- Is there any plan to directly support SQLite? NOT ODBC
- youping ouyang
- PowerBuilder
- Tuesday, 25 September 2018 08:16 AM UTC
- Tuesday, 25 September 2018 13:40 PM UTC
- PowerBuilder
- # 1
I have played around with this:
http://www.ch-werner.de/sqliteodbc
It is an ODBC driver with the SQLite code built in so it is straight forward to set up.
- Tuesday, 25 September 2018 13:45 PM UTC
- PowerBuilder
- # 2
Have you created pbodb***.ini entries for SQLite? If yes, please share.
- Tuesday, 25 September 2018 19:20 PM UTC
- PowerBuilder
- # 3
We have no plans at this point to support SQLite for desktop app deployment. For mobile deployment it is already supported. We see far greater use cases/demand for SQLite on mobile device than on desktop, but we'll keep monitoring the situation.
- Roland Smith
- Tuesday, 25 September 2018 20:13 PM UTC
-
Helpful Loading... Helpful 0
- Armeen Mazda @Appeon
- Tuesday, 25 September 2018 20:48 PM UTC
-
Helpful Loading... Helpful 0
- Wednesday, 26 September 2018 01:40 AM UTC
- PowerBuilder
- # 4
Thanks, sqlite is very important for offline database,especially for a cloud software,we can use powerbuilder develop a local software with sqlite offline database and it can sync to cloud database,in chinese powerbuilder community,some developers had developed sqlite directly support for powerbuilder use pbni , but not support datastore or datawindow,i hope appeon can support sqlite in furture @Armeen Mazda
- Armeen Mazda @Appeon
- Wednesday, 26 September 2018 06:47 AM UTC
-
Helpful Loading... Helpful 0
- Friday, 5 January 2024 13:46 PM UTC
- PowerBuilder
- # 5
To confirm, Powerbuilder can connect to an SQLite db via ODBC (32 bit and 64 bit) correct? There are no plans for PowerBuilder to connect directly to an SQLite database?
In my spare time I'm going to build a mobile app with a local database and back-end sync to a server/cloud database. Trying to decide the best local database to use.
- Armeen Mazda @Appeon
- Friday, 5 January 2024 16:59 PM UTC
-
Helpful Loading... Helpful 0
- Roland Smith
- Sunday, 7 January 2024 00:52 AM UTC
-
Helpful Loading... Helpful 0
- Monday, 8 January 2024 22:28 PM UTC
- PowerBuilder
- # 6
I agree with Joseph. We use SQLite for mobile apps offline functionality as well PB desktop apps (connecting via SQLCA). SQLite db is quite stable and quick (even supports triggers).
- Sivaprakash BKR
- Tuesday, 9 January 2024 07:58 AM UTC
Would like to know whether database transactions work as expected, with Commit and Rollback, when (sqlite) used in Desktop apps? Can u share how you connect with sqlite database?
We are experimenting here with http://www.ch-werner.de/sqliteodbc/ odbc driver in 64 bit PB apps.
-
Helpful Loading... Helpful 0
- Benjamin Daniels
- Tuesday, 9 January 2024 12:18 PM UTC
In my comment i meant ODBC (sqlca obvious). Most of the work on is on mobile devices and we use connection below. We use straight forward ODBC connection with autocommit on. The same on desktop but not much DB work is done on desktop app.
// Profile for sqlite offline connection (PS2020, build 2797)
SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = True
SQLCA.DBParm = "ConnectString='DSN=mysqliteodbc;UID=;PWD='; EnabledLocalDB='true'"
connect using SQLCA;
if SQLCA.sqlcode <> 0 then
messagebox("Connection Error", SQLCA.sqlerrtext)
return -1
end if
-
Helpful Loading... Helpful 0
- Sivaprakash BKR
- Thursday, 11 January 2024 11:32 AM UTC
We use a similar (DSN-Less) connection and have been facing issues in multiple dw/ds update for few windows, with database transaction enabled.
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.
I am also using the driver from http://www.ch-werner.de/sqliteodbc at present and I can tell you its not the full real deal which is unfortunate. But it does work with the basic crud so there is that. Also if something were to happen which breaks the driver or its ability to be used with PowerBuilder 2019 R3 or later, those that use it in projects will be hooped.
Its a free win for PowerBuilder developers writing small apps that need a free database solution locally that doesn't have to have stored procedures or the large overhead of other large enterprise DBMS tools. I too miss the free SQL Anywhere royalty free runtime from earlier days so this is sorely lacking now in current Appeon PB.
There are some issues with the http://www.ch-werner.de/sqliteodbc driver that others should be aware of.
It should be noted that you can only depend on using the x64 version of the ch-werner sqlite driver and you must build x64 versions of your PB applications and even further must compile to PBD. While everything 'seems' to work under 32 bit and non-pbd builds of your PB app, once you start to do some dynamic datawindow tasks you will find flakey problems on your target where even super simple basic stuff fails. Yesterday for example everything in a small app I was working on was fine under PB IDE in the development environment. Deployed the application to another win10 machine for some early testing soon burned many hours of debugging and problem solving only to figure out, x64 pb compile + pbd + x64 sqlite = win ; any other combinations = hours of frustration and suffering.
These difficulties all unsupported because essentially this third party odbc driver is not a appeon product which makes me wince of the idea of moving ahead with this sqlite driver for any production solution. So we are back again thinking of what other driver to use and how much is it going to cost us now?
Its a valuable win in my opinion to add a free fully supported sqlite driver for Appeon PowerBuilder moving forward even if you don't see a lot of requests there may be more than you realize and this is a bigger deal to those who want low cost deployable royalty free DESKTOP and MOBILE solutions. If you add it, they shall come?