You cannot post messages because only members can post, and you are not currently a member.
Description:
A group for discussing Ambition, the ambitious Ruby to SQL gem.
|
|
|
generating gem doesn't include sexp_translator.rb?
|
| |
I'm not sure if it's a recent addition or not, but I noticed this
happening when just trying to require ambition:
Loading development environment (Rails 2.0.2)
/Library/Ruby/Site/1.8/rubygem s/custom_require.rb:27:in
`gem_original_require': no such file to load -- ambition/
sexp_translator (MissingSourceFile)... more »
|
|
The nil? sugar
|
| |
I've documented the process by which nil? was added to the ambition adapter in a blog post: [link] Should I be doing more of these mini "how-tos"? A broader overview? What right now is keeping you from doing what you dream of? Too complicated, API not documented enough, etc.... more »
|
|
Proc#to_sexp leaks memory
|
| |
Hi all
I just found out that the ruby2ruby of Proc#to_sexp leaks memory, and
browsing the ambition source code t looks the ambition implementation
of the same method will also leak memory because methods are being
added to the ProcHolder class but are never removed. In Sequel we have
a different implementation that might be a little slower (though I... more »
|
|
Detect behaviour
|
| |
I notice that detect seems to return an array. Shouldn't it return
either a single record or nil?
|
|
Some noob questions
|
| |
First off, I know everyone else has said it, but this has got to be
the best darn project I've yet seen for Rails! anyway, on with my
questions:
1. Practically, what is the difference between entries() and to_a()?
Functionally they seem to behave the same.
2. Is it possible to construct a query involving joins that do an... more »
|
|
DataMapper
|
| |
There is talk here:
[link]
of using Ambition as the first-class SQL creation tool in DataMapper
and integrating it into DM as closely as possible.
It is mentioned on the Ambition website that a DM adapter is in the
works. Who is doing this and/or is there another group?... more »
|
|
! operator
|
| |
Is there anyway to support a ! operator? I've been working on the
sphinx adapter, and say we want to do a query like:
'dog OR cat OR "white tigers" NOT (lions OR bears) AND
title:animals'
This is how I'd expect to do it in ruby:
Tweet.select{ |t| ("dog" || "cat" || "white tiger") && ( ("lions"... more »
|
|
ambitious-activeldap 0.1.1
|
| |
CHANGES: The ActiveLdap project changed gem names between 0.8.x and 0.9.x. Accordingly, I'm making the ambition adapter dependent on 0.9.x.
|
|
Adapters and Such
|
| |
Okay, automatt has successfully extracted his ActiveLDAP adapter into its own project: [link] I'm gonna extract the ActiveRecord one when I get some time. This is probably how we should handle things moving forward. If anyone wants to start working on an adapter and needs a GitHub... more »
|
|
Procs -> Sexp question (concerning JRuby)
|
| |
howdy, I was trying to get ambition to run under JRuby, which didn't work. JRuby has a version of ParseTree (jParseTree) that I maintain. Problem: JRuby 1.0.x can't support the current implementation of the way you implement to_sexp (as I understand from this: [link] ):... more »
|
|
|