edvin
08/11/2016, 7:44 PMedvin
08/11/2016, 7:45 PMedvin
08/11/2016, 7:48 PMFROM
instead of inlining it in text. Both are valid though.Ruckus
08/11/2016, 7:49 PM"id" from customer.id
=> "id" IS customer.id
, but I'm not a fan of of it since IntelliJ by default won't include SELECT as an autocomplete after typing a lowercase sedvin
08/11/2016, 7:51 PMfellshard
08/11/2016, 7:54 PMedvin
08/11/2016, 8:48 PMIN
syntax so you can write it like this:edvin
08/11/2016, 8:48 PMRuckus
08/11/2016, 8:50 PMwhere
block or would where { "id" eq id } and { "name" eq name }
work?edvin
08/11/2016, 8:51 PMedvin
08/11/2016, 8:51 PMRuckus
08/11/2016, 8:51 PMedvin
08/11/2016, 8:52 PMedvin
08/11/2016, 9:45 PMand
outside of where
also.edvin
08/11/2016, 9:46 PMselect * FROM table and name = ?
. That's why it's safer to wrap inside the where, at least for dynamic queries.edvin
08/11/2016, 9:47 PMand
is not an infix function though, so you need to write it on a separate line.Ruckus
08/11/2016, 9:47 PMedvin
08/11/2016, 9:48 PMand
function from Expr
(the base class of all expressions) and into WhereExpr
. Easy to refactor if we want to.edvin
08/11/2016, 9:50 PMedvin
08/11/2016, 9:53 PMedvin
08/11/2016, 9:56 PMedvin
08/11/2016, 9:56 PMedvin
08/11/2016, 9:56 PMgetString
here is ResultSet.getString(columnName)
with a twist.edvin
08/11/2016, 9:57 PMRuckus
08/11/2016, 10:06 PMRuckus
08/11/2016, 10:07 PMedvin
08/11/2016, 10:14 PMRuckus
08/11/2016, 10:18 PM