r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[SQLite] C library embeddable DB .

GiuseppeC
13-Dec-2007
[643]
I ask here too, I want to adopt a database system for my rebol projects: 
which are the advantages of SQLLite over RebDB ? Why should adopt 
the first or the latter ?
Henrik
13-Dec-2007
[644]
I ask here too
 No need to cross post. We can all see the messages.
Pekr
13-Dec-2007
[645x2]
SQLite has one main advantage - it supports SQL like syntax - you 
can join tables. I can't imagine living without those features anymore.
RebDB is also mostly - in memory only database. It does not live 
on hd. So - SQLite has one advantage here - it supports locking over 
file-shared SQLite database.
GiuseppeC
13-Dec-2007
[647]
Sorry Henrik my intentions where not to SPAM, I have later found 
the SQL lite group than the RebDB. Promise I'll write only once starting 
from now. Don't be upset :-)
Pekr
13-Dec-2007
[648]
That is still not full-fledget SQL server - those provide you with 
network independent access ...
GiuseppeC
13-Dec-2007
[649]
Pekr, joining tables and having the data on disk are already two 
good points for SQL Lite. Obviusly I need Rebol/Pro licence before 
using it.
Pekr
13-Dec-2007
[650]
not necessarily.
GiuseppeC
13-Dec-2007
[651]
I ahve read in the doc that Rebol/Pro is necessary. Could you explain 
?
Pekr
13-Dec-2007
[652x2]
Well - there is btn-sqlite (better than nothing) driver on rebol.org 
It works, with one bad effect - black console window appearing during 
the shell call. Just recently I put it on high priority list for 
W.7.6 to be fixed - all is needed is to set one flag for shell call 
....
I hope that it gets fixed.
GiuseppeC
13-Dec-2007
[654]
Thanks pekr, I'll take a look at it. Next year, when I'll have more 
knoledge in RebGUI and Rebol2 I need to start a project which needs 
a database but it will be a single user project so SQL lite.is good 
enough.
Pekr
13-Dec-2007
[655]
Next year you will be using R3 :-)
GiuseppeC
13-Dec-2007
[656x2]
Then I'll give me Rebol/Pro or the whole command/sdk as present.
NO, I want to use R2. I will be using R3 only for small projects 
and to help the comminity into debugging ! Have you already read 
what I think about people complaining R3. Your is a provocation !!! 
:-)))))
Pavel
14-Dec-2007
[658]
To GiuseppeC there is a simple server based on SQLite look at SQLIte 
Wiki/SQLiteNetworks/uSQLiteServer a protocol to this is also in rebol.org.


Anyway I can tell you a secret not to tell anybody: try to use rebface.exe 
from public available REBOL/SDK 2.7.5 BETA . It seems the /Pro restriction 
is not applied there for some reason and SQLite protocol works sweet 
for me there.

You can got  an idea run "local database backend" in one rebface 
process and application in another on rebol version of your choice. 

THANKS ASHLEY FOR A GOOD JOB.
GiuseppeC
14-Dec-2007
[659]
Now I expect a totally free Rebol/Command :-)
BrianH
14-Dec-2007
[660]
You don't need /Command SQLite, just library access and you get that 
in /Pro. There are other advantages to /Command though.
GiuseppeC
14-Dec-2007
[661x2]
I know. I will buy the /pro version next year and the whole package 
when my application will be ready.
(Hoping in a free upgrade to R3)
Robert
17-Dec-2007
[663x2]
Petr, congrats to really find a bug. I think I have been hit by this 
one too.
I will make an update of the SQLite engine. I'm still using a rather 
old one.
Pekr
19-Dec-2007
[665]
New version released ... hehe, my ticket is part of the announcement 
:-) http://www.sqlite.org/news.html
Graham
19-Dec-2007
[666]
what's sqlite's domain?
Pekr
19-Dec-2007
[667x3]
what do you mean by "domain"?
I can confirm it fixes data corruption for my case. Nice fix!
do you mean domain of usage? or?
Graham
19-Dec-2007
[670]
domain of use
Pekr
19-Dec-2007
[671]
single user apps. Or fileshared ones. Embedded space. Advantage against 
mySQL embedded - SQL interface, free. Not easily used for server 
solutions, although could be solved by some server dispatching requests. 
No installation, just one single dll.
Graham
19-Dec-2007
[672x2]
message board??
probably not from what you say.
Ashley
19-Dec-2007
[674]
Why not? It's ACID compliant and SQLite on a server where all file 
ops are local to the DB process seems OK to me.
Ashley
20-Dec-2007
[675]
From "Suggested Uses For SQLite" ( http://www.sqlite.org/features.html
)

Website Database

 Because it requires no configuration and stores information in order 
 disk files, SQLite is a popular choice as the database to back small 
 to medium-sized websites

Stand-in For An Enterprise RDBMS

 SQLite is often used as a surrogate for an enterprise RDBMS for demonstration 
 purposes or for testing. SQLite is fast and requires no setup, which 
 takes a lot of the hassle out of testing and which makes demos perky 
 and easy to launch.
Pekr
20-Dec-2007
[676]
Is there any commonly suggested server mode? I mean tcp server, serialising 
requests, querying db and returning results back to users?
BrianH
20-Dec-2007
[677x3]
It is usually suggested that you build your own wrapper. REBOL/Services 
would be good for this.
BTW, your new release doesn't seem to be downloading :(
Graham, that features page also says how to use SQLite to manage 
the files that store your application data. It's a cool hack.
Graham
20-Dec-2007
[680x3]
Maybe Altme could use it to store local messages?
I'm storing user configuration data on the server (firebird) in a 
text blob field ... which is one serialized rebol object.  Each time 
I change a configuation parameter, the whole object is saved back 
to the database.
It does raise interesting possibilities though for other things.
GiuseppeC
27-Dec-2007
[683]
I have found an interesting PHP project I would like to see ported 
on Rebol: http://adodb.sourceforge.net/. It is a layer to access 
nearly all database available in this world with plugings.
Will
24-Mar-2008
[684]
how can I connect to multiple databases at the same time without 
disconnecting?
Pekr
25-Mar-2008
[685x2]
via the 'attach command?
with the driver, just use connect [db1 db2 db3] etc. IIRC, you can 
attach max 9 databases ...
Pavel
25-Mar-2008
[687]
Or recompile the DLL with MAXDATABASES optinon increased
Will
25-Mar-2008
[688]
What I need is connect to a database , than in a second time, connect 
to another database, multiple connections open, no sqlite attach, 
possible?
Robert
26-Mar-2008
[689]
Why not use ATTACH?
Will
29-Mar-2008
[690x2]
I wanted separate connections, but maybe I understand it wrong as 
it is not same as with mysql, so probably have to go with attach, 
thanks for the suggestions.
I'm on os x 10.5.2, sqlite.r works fine with system preinstalled 
sqlite which is version 3.4.0, but doesn't work with latest version 
3.5.7 (installed thru macports), is this known or os x specific?
BrianH
29-Mar-2008
[692]
I expect that is due to changes in SQLite - it has changed the API 
a bit between 3.4.0 and 3.5.x