How can I use sqlite3.dll embed inside App as resource
Moderators: gto, EgonHugeist
How can I use sqlite3.dll embed inside App as resource
Hello:
How can I use sqlite3.dll embed inside App as resource? I can use sqlite functions directly using sqlite3.dll as resource, loading with BTMemoryModule, but, Zeos need the file in the root of the app, no recognise it from memory
This will be the best for developers, beause Zeos is very helpfull and strong, but need the sqlite3.dll plus the app.
Thanks
How can I use sqlite3.dll embed inside App as resource? I can use sqlite functions directly using sqlite3.dll as resource, loading with BTMemoryModule, but, Zeos need the file in the root of the app, no recognise it from memory
This will be the best for developers, beause Zeos is very helpfull and strong, but need the sqlite3.dll plus the app.
Thanks
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
When reading this, I think you could 'simply' edit ZPlainSqliteDriver.pas and add a new TZSQLiteBaseDriver descendent TZSqlite3ResourcePlaindriver and override TZSQLiteBaseDriver.Create and TZSQLiteBaseDriver.LoadAPI.
Then edit ZDbcSQLite.pas to 'register' this new Plaindriver.
If you can make that work, please share your eperience and code here, so we can evaluate if it's reasonable to put it into zeoslib.
Mark
Then edit ZDbcSQLite.pas to 'register' this new Plaindriver.
If you can make that work, please share your eperience and code here, so we can evaluate if it's reasonable to put it into zeoslib.
Mark
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
Hi Mark!
What I think is a lot of resources, each one storing a DLL of a specific driver. I'm studding the BTMemoryModule.
The first problem is the licence of BTMemoryModule. Currently it licensed with Mozilla Public License Version 1.1. I don't know if it can be used/distributed directly with ZeosLib.
The second problem is portability. BTMemoryModule can be compiled with Delphi/Lazarus only on Windows 32 bits. I'm thinking in port it to Linux 32/64 bits.
What I think is a lot of resources, each one storing a DLL of a specific driver. I'm studding the BTMemoryModule.
The first problem is the licence of BTMemoryModule. Currently it licensed with Mozilla Public License Version 1.1. I don't know if it can be used/distributed directly with ZeosLib.
The second problem is portability. BTMemoryModule can be compiled with Delphi/Lazarus only on Windows 32 bits. I'm thinking in port it to Linux 32/64 bits.
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
I found this article in Lazarus Wiki: http://wiki.lazarus.freepascal.org/fb_embedded2_Laz
It describes the way how to include firebird embeded dll in exe file. I haven't tested it myself.
The author claims success with Zeos components:
It describes the way how to include firebird embeded dll in exe file. I haven't tested it myself.
The author claims success with Zeos components:
The good thing is that your data-access components will work with embedded database, without change. For example, I use Zeoslib. Compiled .exe works without DLLs distributed.
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact: