AltME: Databases

Messages

DocKimbel
Do all your binding have Red-level interfaces now?
I guess some like SDL don't need that.
Kaj
Yes, it's in progress. Some like SQLite are one-to-one in Red like in Red/System. SDL is used more as a part in other low level bindings, such as OpenGL. OpenGL itself is waiting for floats in Red
Pekr
ok, so got valid ODBC connection string fro .xlsx files. R2 crashes when copying a data though ...
p: open [
     scheme: 'ODBC
     target: "Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=C:\Work\sales.xlsx;"
]
Pekr
ok, got it kind of working with the increase of p/locals/rows to 10K lines ... the excel sheets are so complex, that it does not return half of the info, it most probably counts on more columnar/db kind of data ...
pity Saphirion's excel dialect is not available for download anymore. Will try with Anton's old COMlib code ...
DocKimbel
Sorry for the off-topic question, I though I was in another channel.
Pekr
You are used to Red channel being at the top, right? :-)
DocKimbel
Just forgot to check the channel name before posting. ;-)

Pavel
Very light mmap() based b+tree library LMDB a part of OpenLDAP is available separately at symas.com/mdb/. After some mungling I succeed with Mingw  on windows, TCC needs a bit more but works too. Compiled dll is 90kB packed with upx touch directly 30kB what is a size Carl requested for DB backend for Rebol some time ago. test aplications runs under windows. Mingw is more compatible with unix like getopts() used in some tools included in package.
DocKimbel
The "packed with upx" part doesn't seem compatible to me with the way encapped mezz code is loaded by Rebol on booting.
Pekr
I would go with SQLite anyway. Version 4 brings some architectural changes IIRC ...
AdrianS
If you read the LMDB page, there is a SQLite implementation with LMDB replacing SQLite's own B-tree implementation. Performance looks significantly better.
Kaj
SQLite 4 has a new interface for low level storage engines like these, and a default one that's also faster than SQLite 3

AdrianS
LMDB for SQLite 4 is in the works too, it seems. I guess it remains to be seen if it will improve upon the built in implementation.

Pavel
https://code.google.com/p/high-concurrency-btree/ a public domain implementation compiles to about 25 kB. No problem with TCC compiler. using mmap partially sensitive for configuration parameters (page size and amount of cached space). This program doesnt store a data only pointers to them ie creating only indexes.
Pavel
previosly mentioned LMDB was based on work  of Martin Hedenfalk http://www.bzero.se/ldapd/ original implementation needs be touched to be complilable under Windows, but it is worth to look at it. Append only DB

Endo
Cannot connect to MySQL 5x with Rebol/Command's official MySQL driver?
I get "Client does not support authentication protocol" even I use
"update user set Password=OLD_PASSWORD('password') WHERE User='username'; "
which should work.
So the only way is to use http://softinnov.org/tmp/mysql-protocol-41.r  ?

DocKimbel
IIRC, the statically linked libmysql in the SDK is a 3.x version. You can use that MySQL driver version or you can write a binding to a newer libmysql client library...as you wish. ;-)

GiuseppeC
Hi,
  is this the place to talk about R3 ODBC ?

Last message posted 348 weeks ago.