angel_orm@2.0.0-dev.24
This commit is contained in:
parent
4d01ec6a62
commit
84fc722cc3
3 changed files with 14 additions and 1 deletions
|
@ -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 =>
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue