mfenniak / rethinkdb-net

A C# / .NET client driver for RethinkDB.
Other
247 stars 37 forks source link

ReQL date/time operations #120

Open mfenniak opened 11 years ago

mfenniak commented 11 years ago

These all look pretty straightforward; most of the "hard" work was adjusting the DateTime and DateTimeOffset datum converters to use the new ReQL pseudotype format.

now time epoch_time iso8601 in_timezone timezone during date time_of_day year month day day_of_week day_of_year hours minutes seconds to_iso8601 to_epoch_time

spiffytech commented 9 years ago

What is the timeline of implementing the date operation? (I'm using the Json.NET serializer)

If it won't be implemented soon, could you please raise a NotImplementedException for it (and the rest of these)? Currently, I get this very unclear / completely unhelpful error message when I try using date:

//conn.Run(Tables.sleeps.Filter(fun sleep -> sleep.date.Date = midnightDate).Nth(0))

System.InvalidOperationException
variable 'sleep' of type 'sleep_log.DomainTypes+Sleep' referenced from scope '', but it is not defined