24 Feb 03:11
Re: Squeryl : a strongly typed (LINQ like) Scala DSL for relational databases
Dear Maxime,
On the issue of class generation, i think the recent work on scalaxb by e.e.d3si9n is of relevance here. From an XSD you can generate case classes. It doesn't seem inconceivable to target your class-based schema format as an option. i wonder if there's a play here to get Squeryl to target an XQuery DB, like BDBXML?
Best wishes,
--greg
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117
+1 206.650.3740
http://biosimilarity.blogspot.com
2010/2/23 Maxime Lévesque <maxime.levesque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
The database schema can be generated if you have the classes,
but the other way around is not supported. It wouldn't be
hard to implement, it just doesn't have a big priority for
me at the moment.
CheersOn Tue, Feb 23, 2010 at 3:14 PM, Mohamed Bana <mohamed-8INxWZ5b4gzhvxM+mQhndA@public.gmane.orguk> wrote:Nice!Can I generate the schema or do I have to type it? E.g., the following is generatedclass Author(var id: Long,var firstName: String,var lastName: String)class Book(var id: Long,var title: String,<at> Column("AUTHOR_ID") // the default 'exact match' policy can be overridenvar authorId: Long,var coAuthorId: Option[Long]) {—Mohamed2010/2/23 Maxime Lévesque <maxime.levesque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hi all, I've been writing this SQL like dsl for a while,
and it is now ready to be shared.
I have written some documentation here :
http://squeryl.org
The GitHub repo is here :
http://github.com/max-l/Squeryl
And there is a google group for
discussions, help and (constructive !)
critiques :
http://groups.google.com/group/squeryl
Enjoy !
Max
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117
+1 206.650.3740
http://biosimilarity.blogspot.com
)
RSS Feed