forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: Add BindTimeDelta() and ColumnTimeDelta() to sql::Statement
These helpers use the recommended approach to serialize/deserialize a base::TimeDelta to/from int64. These methods are added to encourage usage of built-in ways to insert and retrieve a TimeDelta from a sql database, and discourage usage of the `statement.BindInt64(delta.ToInternalValue())` pattern since TimeDelta::ToInternalValue is deprecated. Bug: 1402777, 1195962 Change-Id: Ia6db6b8ff862be25d60b6ffa67f4e7e56204330d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4118621 Reviewed-by: Christos Froussios <[email protected]> Reviewed-by: manuk hovanesian <[email protected]> Commit-Queue: Kirubel Aklilu <[email protected]> Reviewed-by: Evan Stade <[email protected]> Cr-Commit-Position: refs/heads/main@{#1085968}
- Loading branch information
Kirubel Aklilu
authored and
Chromium LUCI CQ
committed
Dec 21, 2022
1 parent
609e0ae
commit 97f422c
Showing
6 changed files
with
106 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.