[Gambas-devel] Problem with sqlite...

Fabien Bodard gambasfr at ...4...
Thu Nov 10 22:18:20 CET 2005


Le Jeudi 10 Novembre 2005 14:33, nigel at ...2... a écrit :
> Fabian,
>
> The user does not matter -- as such they are not used within sqlite (file
> permissions control whether a user can access the database or not)., but
> you should put the path for the database in the host.
>
> e.g. host: /home/me/mydatabases
>
> Then the database will be created within that directory.
>
> Nigel

it was in the help... sorry i've put many time to see that !


For SQLite connections, the following algorithm is used: 
If Name is null, then a memory database is opened. 
If Name is an absolute path, then this path is used. 
If Name is a relative path, then: 
If Host is null, then the database is located in the application temporary 
directory, which is /tmp/gambas.$UID/sqlite . 
Otherwise, Host gives the database directory, and the database path is the 
result of concatenating Host and Name. 
This class is creatable.


Thank you Nigel :)


Fabien





More information about the Devel mailing list