Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

SQLite?

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Shin The Gin

Hi!

I'm still trying to get some database work done with lazarus. The goal is to have a TDataSet descendent for PostgreSQL access. I studied the TDataSet component source (fpc) to get the clue, but didn't. ;-)

Now I found SQLite (fpc) to be used as a template for TDataSet descendents and started to write a Package, so I can install it to the Lazarus IDE. The unit compiles fine and I changed the component tab from 'MK' to 'Data Access'. It now installs fine, except I get no component icon in 'Data Access', although it's a true TComponent descendent and has a proper registration procedure.

Any suggestions?

Manythanx
Shin - A.k.a. Thomas Braun

Reply by email

Tony Maro
to Shin The Gin
Shin The Gin wrote 6 lines
started to write a Package, so I can install it to the Lazarus IDE. The unit compiles fine and I changed the component tab from 'MK' to 'Data Access'. It now installs fine, except I get no component icon in 'Data Access', although it's a true TComponent descendent and has a proper registration procedure.

If you added the unit to the package before the register procedure was added, the package hasn't recognized it.

In the package dialog, select the file with the components and make sure the "register unit" is checked. If not, check it and rebuild / reinstall it.

-Tony

Reply by email

Shin The Gin
to Shin The Gin: Hi! I'm still trying to get some database work done with lazarus. The goal is to have a…
Tony Maro wrote
Shin The Gin wrote:

[No new component after installing SQLite]

If you added the unit to the package before the register procedure was added, the package hasn't recognized it.

No, the register procedure is already done near EOF sqlitedataset.pas.

In the package dialog, select the file with the components and make sure the "register unit" is checked. If not, check it and rebuild / reinstall it.

Done that, been there ;-) - No effect!

Thanx
Shin - A.k.a. Thomas Braun

Reply by email

Michal Zaborowski
to Shin The Gin: Hi! I'm still trying to get some database work done with lazarus. The goal is to have a…

Hello,
I'm doing SQLite components for Delphi.
They are open-sourced ( LGPLed ;) so you
can try... I have no time right now for
preparing them for Lazarus. Maybe in the
future. If you would like to try - please
inform me about problems, your sugestions...

Developer's page:
http://sourceforge.net/projects/sqlite4delphi

Regards Michal Zaborowski (TeXXaS) http://sqlite4delphi.sourceforge.net/

Reply by email

Shin The Gin
to Shin The Gin: Hi! I'm still trying to get some database work done with lazarus. The goal is to have a…
Mattias Gaertner wrote
On Wed, 26 Nov 2003 16:17:11 +0100 Shin The Gin wrote: > Hi!

...

Show quoted text 9 lines
> ...It now installs fine, except I get no component > icon in 'Data Access', although it's a true TComponent descendent and has > a proper registration procedure. > > Any suggestions? Open Package, click on the unit and check if "Register Unit" is checked (in the "File Properties" groupbox).

Ok, I did as follows:
1. File->New->Package
2. Add unit->sqlitedataset.pas
3.The next dialog shows these checked:
- Has Register procedure
- Add LFM, LRS files, if they exist
4. I press Ok
5. Now the file properties for the newly added unit shows this checked:
- Register unit
6. I see no "registered plugins" in the list below.
7. Save
8. Recompile clean
9. Install
10. Recompile Lazarus
11. Restart of Lazarus
12. No new component in 'Data Access' ;-(

I found SQLite in the fpc-1.9.0 source tree. Maybe I need another source version of SQLite?

Thanxalot!
Shin - A.k.a. Thomas Braun

Reply by email

Shin The Gin
to Shin The Gin: Hi! I'm still trying to get some database work done with lazarus. The goal is to have a…
Mattias Gaertner wrote 11 lines
On Fri, 28 Nov 2003 17:18:13 +0100 Shin The Gin wrote: > Am Freitag, 28. November 2003 16:37 schrieb Mattias Gaertner: > > After restarting lazarus: is the package marked as installed in the > > package graph? > > No, it remains in the status: 'install on next start' Then either you compiled an IDE without packages or you started an old IDE executable.

Definetly not. Maybe I have to write a .LRS-File?

Show quoted text 6 lines
> Apropos! > Is it allowed to attach sources with this Mailing-List? > Let's say gzipped tars? Yes. AFAIK, the limit is 50kb.

Ok. Attached! (15Kb)

Thanxalot
Shin - A.k.a. Thomas Braun

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00086.bin
Type: application/octet-stream
Size: 15050 bytes
Desc: "SQLitePack.tgz"
Url : http://localhost/pipermail/lazarus/attachments/20031128/ae56b078/bin00086.bin

Reply by email

Shin The Gin
to Shin The Gin: Hi! I'm still trying to get some database work done with lazarus. The goal is to have a…
Mattias Gaertner wrote
After restarting lazarus: is the package marked as installed in the package graph?

No, it remains in the status: 'install on next start'

If yes, then please send me the example, so I can find the bug.

Apropos!
Is it allowed to attach sources with this Mailing-List? Let's say gzipped tars?

Manythanx
Shin - A.k.a. Thomas Braun

Reply by email