--
Very interesting work!
What’s the difference with https://github.com/jonifreeman/sqltyped?
--
--
--
> There's a tiny detail that you left out... is connecting to the database at compile time a good idea? :)
I'm not sure yet :) But it's clear that the only component which is able to validate your SQL statements is the database itself.
On Thu, Jan 17, 2013 at 4:18 AM, James Roper <james...@typesafe.com> wrote:
There's a tiny detail that you left out... is connecting to the database at compile time a good idea? :)I wouldn't mind that at all as long as my schema/sql also worked on H2, because then I could just fire up an in memory database and run the evolutions at compile time, so it would be able to build on any server regardless of the state of the server.My thoughts would be that it would have to use evolutions, since if you pulled in changes from another developer, and they changed/added something to the schema, the evolutions would have to run before you could even compile the app.--On Thu, Jan 17, 2013 at 9:50 AM, Guillaume Bort <guillau...@gmail.com> wrote:
--Hi all,I have started to work on a proof of concept that brings full type safety to Anorm (for those of you using it).Here is the demo project:https://github.com/guillaumebort/anormtyped-demoComments are welcome.--
Guillaume Bort, http://guillaume.bort.fr
--
James Roper
Software Engineer
Typesafe - The software stack for applications that scale
Twitter: @jroper
--
Guillaume Bort, http://guillaume.bort.fr
--
There's a tiny detail that you left out... is connecting to the database at compile time a good idea? :)
> There's a tiny detail that you left out... is connecting to the database at compile time a good idea? :)
I'm not sure yet :) But it's clear that the only component which is able to validate your SQL statements is the database itself.
I've been happily playing with this for the last day or two - this is really, really nice.Are there plans to include this in Play itself?Also, will there ever be a way to integrate this nicely with IDE's? Because TypedSQL is a macro, IntelliJ considers almost any code that works with this to be a compile error.
On Wednesday, January 16, 2013 5:50:15 PM UTC-5, Guillaume Bort wrote:Hi all,I have started to work on a proof of concept that brings full type safety to Anorm (for those of you using it).Here is the demo project:https://github.com/guillaumebort/anormtyped-demoComments are welcome.--
Guillaume Bort, http://guillaume.bort.fr
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Some argue that a type safe DSL is better since all your queries are checked by the compiler. Unfortunately the compiler checks your queries based on a meta-model definition that you often write yourself by ‘mapping’ your data structure to the database schema.
There are no guarantees that this meta-model is correct. Even if the compiler says that your code and your queries are correctly typed, it can still miserably fail at runtime because of a mismatch in your actual database definition.
--
-- Certified Prince2:2009 Project Manager Professional Scrum Master I & II Oracle Certified Expert, Enterprise JavaBeans Developer Oracle Certified Professional, Java SE 6 Programmer Now that's a test of the character of an organization. Of the organizations that are attempting to implement Scrum probably, 30% - 35% will successfully implement it. - Ken Schwaber