News for hackers. Stuff that matters.
Re:A survey of the current state of Golang ORMs by windowsworkstoo on Sunday October 05, 2014 @06:02AM (#8411900)
Yes, nice, same here.

One question out of curiosity - on your IStorageQuery interface what methods do you have? Do you have the usual by Id's etc or do you have a query object that you pass in that can build/translate to the relevant SQL?

Re:A survey of the current state of Golang ORMs by sudowhodoido on Sunday October 05, 2014 @06:09AM (#8411909)
Query object. The interface is as follows (I simplified a bit above:

    public interface IStorageQuery<T,Q> where Q : IStorageQueryCommand
    {
        IEnumerable<T> Query(Q query);
    }
IStorageQueryCommand is an empty marker interface.

Internally this is all bound to the query by property name.