Fix doc comments

This commit is contained in:
Simon Binder 2023-10-07 22:40:22 +02:00
parent 7ae0ccb1ab
commit e220255e09
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 3 additions and 2 deletions

View File

@ -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 15database. 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');

View File

@ -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])!;