angel_orm@2.0.0-dev.24

This commit is contained in:
Tobe O 2019-04-04 16:15:57 -04:00
parent 4d01ec6a62
commit 84fc722cc3
3 changed files with 14 additions and 1 deletions

View file

@ -12,7 +12,6 @@ class MigrationColumn extends Column {
@override @override
IndexType get indexType => _index; IndexType get indexType => _index;
@override
get defaultValue => _defaultValue; get defaultValue => _defaultValue;
List<MigrationColumnReference> get externalReferences => List<MigrationColumnReference> get externalReferences =>

View file

@ -1,6 +1,7 @@
# 2.0.0-dev.24 # 2.0.0-dev.24
* Fix a bug that caused syntax errors on `ORDER BY`. * Fix a bug that caused syntax errors on `ORDER BY`.
* Add `pattern` to `like` on string builder. `sanitize` is optional. * Add `pattern` to `like` on string builder. `sanitize` is optional.
* Add `RawSql`.
# 2.0.0-dev.23 # 2.0.0-dev.23
* Add `@ManyToMany` annotation, which builds many-to-many relations. * Add `@ManyToMany` annotation, which builds many-to-many relations.

View file

@ -1,3 +1,16 @@
/// A raw SQL statement that specifies a date/time default to the
/// current time.
const RawSql currentTimestamp = const RawSql('CURRENT_TIMESTAMP');
/// Can passed to a [MigrationColumn] to default to a raw SQL expression.
class RawSql {
/// The raw SQL text.
final String value;
const RawSql(this.value);
}
/// Canonical instance of [ORM]. Implies all defaults.
const Orm orm = const Orm(); const Orm orm = const Orm();
class Orm { class Orm {