Re: [Gambas-user] sqlite database inside an executable

2012-06-01 Thread Benoît Minisini
Le 29/05/2012 07:43, Bruce a écrit : Is there any way to access (read-only of course) an sqlite database inside the gambas executable? Strange idea I know, but I've got this really good idea. Bruce At program startup, you must copy the sqlite file from the executable (with COPY) to a real

Re: [Gambas-user] sqlite database inside an executable

2012-05-30 Thread Rolf Schmidt
Hi Bruce, what about to cat the database-file at the end of an executable and strip it later (perhaps with cut) and store it, where you like. Another methode could be, study the C-code of the sqlite-libs and see, if you can open the database with an offset - i.e. the data will begin at the end

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Jussi Lahtinen
I suppose it is possible, but not easy. Unless you copy database out from executable to access it. But what's the point then... or anyway..? Jussi On 29 May 2012 08:43, Bruce bbr...@paddys-hill.net wrote: Is there any way to access (read-only of course) an sqlite database inside the gambas

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread John Spikowski
On Tue, 2012-05-29 at 15:13 +0930, Bruce wrote: Is there any way to access (read-only of course) an sqlite database inside the gambas executable? Strange idea I know, but I've got this really good idea. Bruce FireFox uses SQLite to manage their 'cookie' DB. I don't think the OS is going

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Randall Morgan
Can you explain in a little more detail what you want to do? On Mon, May 28, 2012 at 10:43 PM, Bruce bbr...@paddys-hill.net wrote: Is there any way to access (read-only of course) an sqlite database inside the gambas executable? Strange idea I know, but I've got this really good idea.

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Bruce
On Tue, 2012-05-29 at 12:17 -0700, Randall Morgan wrote: Can you explain in a little more detail what you want to do? On Mon, May 28, 2012 at 10:43 PM, Bruce bbr...@paddys-hill.net wrote: Is there any way to access (read-only of course) an sqlite database inside the gambas

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Emil Lenngren
If you only use the database file as a container for help files, isn't it possible to store the help files directly under a directory structure (which can be packed in the executable) or something, instead of having a database? /Emil 2012/5/30 Randall Morgan rmorga...@gmail.com As I understand

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Bruce
On Tue, 2012-05-29 at 16:19 -0700, Randall Morgan wrote: As I understand Sqlite, the database is file based, and the file path can be passed to the open/connect method. So what is to keep you from putting the db file in the data directory of the application? That's where it is (and that's why

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Bruce
On Wed, 2012-05-30 at 01:38 +0200, Emil Lenngren wrote: If you only use the database file as a container for help files, isn't it possible to store the help files directly under a directory structure (which can be packed in the executable) or something, instead of having a database? /Emil

[Gambas-user] sqlite database inside an executable

2012-05-28 Thread Bruce
Is there any way to access (read-only of course) an sqlite database inside the gambas executable? Strange idea I know, but I've got this really good idea. Bruce -- Live Security Virtual Conference Exclusive live event