anchor.diff:           sql_date/1
           ]).
   
  --type property() :: atom() | tuple(). %% As defined in proplists
  --type proplist() :: [ property() ].
   %% job ops
   
   -spec fetch_job(JobId :: object_id()) ->
  
positive.code: trunc_date_time_to_second({{YY,MM,DD},{H,M,S}}) ->
      {{YY,MM,DD},{H,M, erlang:trunc(S)}}.
  
  -spec job_join_rows_to_record(Rows :: [proplist()]) ->  #pushy_job{}.
  %% @doc Transforms a collection of proplists representing a job / job_nodes join query
  %% result and collapses them all into a single job record. There is a row for each
  %% job_node. A job_node tuple is extracted from each row; job information is extracted
  
negative.code: job_join_rows_to_record(Rows) ->
      job_join_rows_to_record(Rows, []).
  
  -spec job_join_rows_to_record(Rows :: [proplists:proplist()], [#pushy_job_node{}]) -> #pushy_job{}.
  job_join_rows_to_record([LastRow|[]], JobNodes) ->
      C = proplist_to_job_node(LastRow),
      Job = prepare_pushy_job_record(LastRow),
  