[Gambas-user] Re: Writing a Gambas/SQLite tutorial

AenDeuRyu aendeuryu at ...43...
Mon Mar 7 19:45:07 CET 2005


Thanks for the quick reply...

> I don't know. Show me the error.

Please ignore this. I went back and tried this again,
and realized it was my fault -- I misunderstood the
purpose of Server->New Server, and didn't use it
properly.

> > * gambas2 default-installs its libraries to
> > /usr/local/lib/gambas2, whereas the deb package
for
> > gambas-gb-db-sqlite installs its libraries to
> > /usr/lib/gambas

> Strange. But this is gambas2, a *development* (break

> everything) version.

Fair enough. If it's alright to ask, does the current
version install its libraries to /usr/lib/gambas?

> The gambas interpreter loads the gambas gb.db
component that loads the 
> gb.db.sqlite database driver that loads the sqlite
library.

Alright...

> > Can gambas actually handle sqlite 
> > databases the way C code does? If not, will that
be an
> > option in the future?

> What do you mean exactly ?

Maybe I understood SQLite's documentation incorrectly.
Postgresql, from what I remember, requires the
postmaster service running in the background,
accepting connections through the socket, and sending
data back and forth that way. SQLite (on the website)
describes its relationship with C as being a library
loaded within the C program that allows you to
interact directly with the data through an SQLish
interface. There's no service that needs to be run in
the background or set up ahead of time. I guess,
because with Gambas, sqlite needs to be set up ahead
of time with g-d-m, I was confused, and mistakenly
thought that something like a client-server
relationship was at work.

Alright, just so I have this straight: From what I
remember, in C, to interact with a postgresql
database, I need to have the server running in the
background accepting connections, whereas with sqlite
I can get straight at the data with the library and
the file location. Does it work the same way in
gambas?

> I'm currently working on the interpreter & compiler
so that in the 
> version 2 components will be able to be written
directly in Gambas. Then, it will 
> be 
easy to make data-bound controls directly in Gambas.

Ok, just to clarify, does that mean that version 2's
components will have these attributes, or that version
2's components will be capable of having them, but
somebody else will need to code them?

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca




More information about the User mailing list