dynamoid
https://github.com/veraticus/dynamoid
Ruby ORM for Amazon's DynamoDB
Gitlab::Database::DateTime#subtract_datetimes
Find the first of the `end_time_attrs` that isn't `NULL`. Subtract from it
the first of the `start_time_attrs` that isn't NULL. `SELECT` the resulting interval
along with an alias specified by the `as` parameter.
Note: For MySQL, the interval is returned in seconds.
For PostgreSQL, the interval is returned as an INTERVAL type.Edit
git clone [email protected]:veraticus/dynamoid.git
cd dynamoid
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Database--DateTime-subtract_datetimes-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Database::DateTime#subtract_datetimes"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--Database--DateTime-subtract_datetimes-for-pr
hub pull-request
# Celebrate!