Re: Regal: An SQL relational algebra builder

2014-05-19 Thread Dylan Knutson via Digitalmars-d-announce
On Friday, 16 May 2014 at 13:42:30 UTC, Jacob Carlborg wrote: On 16/05/14 09:58, Dylan Knutson wrote: Ya know, it might be able to be made into a struct; I'll fiddle with it tomorrow. The main reason it was made a class was so .join had to take a Table type as its first parameter, and

Re: Regal: An SQL relational algebra builder

2014-05-19 Thread Jacob Carlborg via Digitalmars-d-announce
On 2014-05-19 16:45, Dylan Knutson wrote: I've played around with making things structs a bit more, and have modified regal to have Table and Sql be structs (by having Sql and the generic Node class wrapped in a tagged union). Making Table a struct was just a matter of putting some common

Re: Regal: An SQL relational algebra builder

2014-05-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 16/05/14 02:29, Dylan Knutson wrote: Hi all, I'd like to announce the initial version of Regal, an SQL relational algebra builder for D. It's intended as a backbone for a relational database ORM, in line with how Arel works with Rails' ActiveRecord, but nearly any project that generates SQL

Re: Regal: An SQL relational algebra builder

2014-05-16 Thread Dylan Knutson via Digitalmars-d-announce
Does this need to be a class, can it be a struct instead? Ya know, it might be able to be made into a struct; I'll fiddle with it tomorrow. The main reason it was made a class was so .join had to take a Table type as its first parameter, and internally Table implements a Joinable interface

Re: Regal: An SQL relational algebra builder

2014-05-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 16/05/14 09:58, Dylan Knutson wrote: Ya know, it might be able to be made into a struct; I'll fiddle with it tomorrow. The main reason it was made a class was so .join had to take a Table type as its first parameter, and internally Table implements a Joinable interface (which is needed for

Regal: An SQL relational algebra builder

2014-05-15 Thread Dylan Knutson via Digitalmars-d-announce
Hi all, I'd like to announce the initial version of Regal, an SQL relational algebra builder for D. It's intended as a backbone for a relational database ORM, in line with how Arel works with Rails' ActiveRecord, but nearly any project that generates SQL dynamically can benefit from