Creating Operation without Connection

Dimitar Georgiev at
Fri Oct 6 14:44:01 UTC 2017

Didn't spend a lot of time in the code yet, sorry if this is a dumb question.

Since Operation is merely a description of something to be executed
against the database, shouldn't the act of creating one be
referentially transparent? E.g. I should be able to write `public
static Operation<List<Thing>> selectTheThings(){}` and that method
will have no side effects itself. Right now creating creating an Op
seems to be tied to having an instance of Connection, IIUC?

Regards, Dimitar

More information about the jdbc-spec-discuss mailing list