Rebol Talk Forum  |  Whats New?  |  News & Announcements  |  Topic: New REBOL Database Engine
Pages: [1] Print
Author Topic: New REBOL Database Engine  (Read 144 times)
btiffin
Jr. Member
**
Offline Offline

Posts: 51


View Profile
New REBOL Database Engine
« on: April 25, 2008, 08:48:49 AM »

TRETBASE is out.  http://tretbase.com

Paul Tretter has done an excellent job of creating a REBOL database manager.  Fast, simple and very very REBOL.  Along with the Create Update Retrieve and Delete, the key function is db/search.   Search accepts simple data, which scans the database returning any matches, or block data where the real REBOL power starts to show.   Inside the block is a search criteria code block and a results return control block.

Code:
>> db/search people [[age > 40] [name]]

Will return names of all entries of people over 40 (for example).

Code:
>> db/search trial [[print n  true] [r/1 r/3]]

Using TRETBASE's builtin  R record keyword, the above search returns all records (the first and third fields), in a nicely formatted block of data.  I added the print n to show off the builtin N keyword and to highlight that the search criteria can be pretty much any REBOL code.  All search blocks that return true trigger the result return control block.   Result control can include computations, fields by path notation, fields by name, literals, much more.

Too many features to list.  And like REBOL itself, all in a small package;  30K source for version 1 posted in April 2008.

Do yourself a favour and check out this extremely powerful database engine.   http://www.tretbase.com
Logged
Brian Wisti
Newbie
*
Offline Offline

Posts: 40


View Profile WWW
Re: New REBOL Database Engine
« Reply #1 on: April 25, 2008, 04:57:15 PM »

Thanks for sharing this! I have been hoping to see a nice file-based REBOL db.
Logged

Brian Wisti -- My Rebol Notes
Pages: [1] Print 
Rebol Talk Forum  |  Whats New?  |  News & Announcements  |  Topic: New REBOL Database Engine
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 17, 2008, 06:53:04 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2169 Posts in 562 Topics by 1224 Members
Latest Member: thyptoste

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc