mirror of https://github.com/AMT-Cheif/drift.git
Fix doc comments
This commit is contained in:
parent
7ae0ccb1ab
commit
e220255e09
|
@ -357,7 +357,7 @@ final class DateTimeModifier extends Constant<String> {
|
|||
/// Adds or subtracts [seconds] seconds from this date time value.
|
||||
///
|
||||
/// Note that drift assumes date time values to be encoded as unix timestamps
|
||||
/// (with second accuracy) in the 1⁰5database. So adding seconds with a
|
||||
/// (with second accuracy) in the database. So adding seconds with a
|
||||
/// fractional value may not always be preserved in a chain of computation.
|
||||
const DateTimeModifier.seconds(num seconds) : this._('$seconds seconds');
|
||||
|
||||
|
|
|
@ -87,7 +87,8 @@ class QueryRow {
|
|||
/// Interprets the column named [key] under the known drift type [type].
|
||||
///
|
||||
/// Like [read], except that the [type] is fixed and not inferred from the
|
||||
/// type parameter [T].
|
||||
/// type parameter [T]. Also, this method does not support nullable values -
|
||||
/// use [readNullableWithType] if needed.
|
||||
@optionalTypeArgs
|
||||
T readWithType<T extends Object>(BaseSqlType<T> type, String key) {
|
||||
return _db.typeMapping.read(type, data[key])!;
|
||||
|
|
Loading…
Reference in New Issue