3 ms·
This is pretty neat, I certainly like not having a separate query language embedded as strings and manipulated with string concatenation etc. (SQL injection ...
by mpweiher 13y ago
This is pretty neat, I certainly like not having a separate query language embedded as strings and manipulated with string concatenation etc. (SQL injection ...).
Similar:
- Avi Bryant's Relational Object Expressions bring relational algebra into the programming language:
courseTitlesForProfessorNamed: aString
|courses|
courses := (professors * courses
select: [[:ea | (ea lastName = aString) & (ea id = ea professorID)].
^ (courses project: #title) copyFrom: 1 to: 10.
http://www.cincomsmalltalk.com/userblogs/avi/blogView?showComments=true&entry=3246121322 http://www.cincomsmalltalk.com/userblogs/avi/blogView?showCo...: and http://c2.com/cgi/wiki?RelationsAsFirstClassObjects http://c2.com/cgi/wiki?RelationsAsFirstClassObjects
- The query system for the Gemstone object database evaluates query blocks against proxies that capture the messages and translate the procedural queries into logical queries:
myEmployees select: { :emp | emp.age > emp.lengthOfService }
http://community.gemstone.com/download/attachments/6816350/GS64-ProgGuide-3.0.pdf http://community.gemstone.com/download/attachments/6816350/G...