2021-07-19 04:27:40 +00:00
|
|
|
# Change Log
|
|
|
|
|
2024-06-23 04:09:26 +00:00
|
|
|
## 8.2.0
|
|
|
|
|
|
|
|
* Require Dart >= 3.3
|
|
|
|
* Updated `lints` to 4.0.0
|
|
|
|
|
2023-12-25 03:45:10 +00:00
|
|
|
## 8.1.1
|
|
|
|
|
|
|
|
* Updated repository link
|
|
|
|
|
2023-12-24 04:15:26 +00:00
|
|
|
## 8.1.0
|
|
|
|
|
|
|
|
* Updated `lints` to 3.0.0
|
|
|
|
* Fixed linter warnings
|
|
|
|
|
2023-05-27 00:37:00 +00:00
|
|
|
## 8.0.0
|
|
|
|
|
|
|
|
* Require Dart >= 3.0
|
|
|
|
|
2023-04-22 05:41:41 +00:00
|
|
|
## 7.1.0
|
|
|
|
|
|
|
|
* Require Dart >= 2.18
|
|
|
|
|
2022-08-31 14:48:27 +00:00
|
|
|
## 7.0.1
|
|
|
|
|
|
|
|
* Reduced debugging verbosity
|
|
|
|
|
2022-08-16 11:19:04 +00:00
|
|
|
## 7.0.0
|
|
|
|
|
|
|
|
* Require Dart >= 2.17
|
|
|
|
|
2022-06-16 02:14:17 +00:00
|
|
|
## 6.1.0
|
2022-06-04 01:50:58 +00:00
|
|
|
|
|
|
|
* Fixed issue #68: Support for non-nullable type
|
2022-06-16 02:14:17 +00:00
|
|
|
* Added `defaultValue` to `@Column` annotation
|
2022-06-04 01:50:58 +00:00
|
|
|
|
2022-05-07 07:23:58 +00:00
|
|
|
## 6.0.1
|
|
|
|
|
|
|
|
* Added `mapToDateTime`
|
|
|
|
|
2022-02-22 11:41:06 +00:00
|
|
|
## 6.0.0
|
|
|
|
|
2022-08-16 11:19:04 +00:00
|
|
|
* Require Dart >= 2.16
|
2022-02-22 11:41:06 +00:00
|
|
|
|
|
|
|
## 5.0.0
|
|
|
|
|
2022-04-23 04:21:39 +00:00
|
|
|
* Skipped release
|
2022-02-22 11:41:06 +00:00
|
|
|
|
2022-02-07 12:42:32 +00:00
|
|
|
## 4.1.0
|
|
|
|
|
|
|
|
* Added `MySQLDialect` to handle MySQL database specific features
|
|
|
|
* Updated `insert` and `update` query to support database without writable CTE
|
|
|
|
|
2022-01-13 17:18:40 +00:00
|
|
|
## 4.0.6
|
|
|
|
|
|
|
|
* Fixed multiple `orderBy` error
|
|
|
|
|
2022-01-08 09:07:26 +00:00
|
|
|
## 4.0.5
|
|
|
|
|
|
|
|
* Added `where.raw()`
|
2022-01-13 17:18:40 +00:00
|
|
|
* Added `select(List fields)`
|
2022-01-08 09:07:26 +00:00
|
|
|
|
2022-01-02 07:21:17 +00:00
|
|
|
## 4.0.4
|
|
|
|
|
|
|
|
* Changed default varchar size to 255
|
|
|
|
* Changed default primary key to serial
|
|
|
|
|
2021-12-30 02:07:04 +00:00
|
|
|
## 4.0.3
|
|
|
|
|
|
|
|
* Removed debugging messages
|
|
|
|
|
2021-12-10 06:03:15 +00:00
|
|
|
## 4.0.2
|
|
|
|
|
|
|
|
* Updated linter to `package:lints`
|
|
|
|
* Set `createdAt` and `updatedAt` to current datetime as default
|
|
|
|
|
2021-07-29 11:23:37 +00:00
|
|
|
## 4.0.1
|
|
|
|
|
|
|
|
* Fixed expressions parsing error
|
|
|
|
* Fixed json data type error
|
|
|
|
* Added debug logging to sql query execution
|
|
|
|
|
2021-07-25 13:16:50 +00:00
|
|
|
## 4.0.0
|
|
|
|
|
|
|
|
* Updated `Optional` package
|
|
|
|
|
2021-07-25 10:12:43 +00:00
|
|
|
## 4.0.0-beta.4
|
|
|
|
|
|
|
|
* Added `hasSize` to `ColumnType`
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 4.0.0-beta.3
|
|
|
|
|
|
|
|
* Updated README
|
|
|
|
* Fixed NNBD issues
|
|
|
|
|
|
|
|
## 4.0.0-beta.2
|
|
|
|
|
2021-05-17 14:16:15 +00:00
|
|
|
* Fixed static analysis warning
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 4.0.0-beta.1
|
|
|
|
|
2022-08-16 11:19:04 +00:00
|
|
|
* Migrated to support Dart >= 2.12 NNBD
|
2021-05-02 07:32:24 +00:00
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 3.0.0
|
|
|
|
|
2022-08-16 11:19:04 +00:00
|
|
|
* Migrated to work with Dart >= 2.12 Non NNBD
|
2021-05-02 07:32:24 +00:00
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.1.0-beta.3
|
|
|
|
|
2019-10-13 03:20:07 +00:00
|
|
|
* Remove parentheses from `AS` when renaming raw `expressions`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.1.0-beta.2
|
|
|
|
|
2019-10-13 00:47:00 +00:00
|
|
|
* Add `expressions` to `Query`, to support custom SQL expressions that are
|
|
|
|
read as normal fields.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.1.0-beta.1
|
|
|
|
|
2019-10-12 18:36:24 +00:00
|
|
|
* Calls to `leftJoin`, etc. alias all fields in a child query, to prevent
|
|
|
|
`ambiguous column a0.id` errors.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.1.0-beta
|
|
|
|
|
2019-08-17 21:46:47 +00:00
|
|
|
* Split the formerly 600+ line `src/query.dart` up into
|
|
|
|
separate files.
|
2019-08-17 21:53:23 +00:00
|
|
|
* **BREAKING**: Add a required `QueryExecutor` argument to `transaction`
|
|
|
|
callbacks.
|
2019-08-17 21:58:33 +00:00
|
|
|
* Make `JoinBuilder` take `to` as a `String Function()`. This will allow
|
|
|
|
ORM queries to reference their joined subqueries.
|
2019-08-17 22:00:17 +00:00
|
|
|
* Removed deprecated `Join`, `toSql`, `sanitizeExpression`, `isAscii`.
|
2019-08-17 22:08:49 +00:00
|
|
|
* Always put `ORDER BY` before `LIMIT`.
|
2019-08-17 22:18:39 +00:00
|
|
|
* `and`, `or`, `not` in `QueryWhere` include parentheses.
|
2019-10-09 16:06:40 +00:00
|
|
|
* Add `joinType` to `Relationship` class.
|
2019-08-17 21:46:47 +00:00
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.2
|
|
|
|
|
2019-08-19 14:26:00 +00:00
|
|
|
* Place `LIMIT` and `OFFSET` after `ORDER BY`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.1
|
|
|
|
|
2019-07-04 21:31:18 +00:00
|
|
|
* Apply `package:pedantic` fixes.
|
|
|
|
* `@PrimaryKey()` no longer defaults to `serial`, allowing its type to be
|
|
|
|
inferenced.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0
|
|
|
|
|
2019-04-08 18:33:15 +00:00
|
|
|
* Add `isNull`, `isNotNull` getters to builders.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.24
|
|
|
|
|
2019-04-02 23:30:42 +00:00
|
|
|
* Fix a bug that caused syntax errors on `ORDER BY`.
|
2019-04-03 09:57:27 +00:00
|
|
|
* Add `pattern` to `like` on string builder. `sanitize` is optional.
|
2019-04-04 20:15:57 +00:00
|
|
|
* Add `RawSql`.
|
2019-04-02 23:30:42 +00:00
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.23
|
|
|
|
|
2019-04-02 23:06:19 +00:00
|
|
|
* Add `@ManyToMany` annotation, which builds many-to-many relations.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.22
|
|
|
|
|
2019-03-14 09:21:53 +00:00
|
|
|
* `compileInsert` will explicitly never emit a key not belonging to the
|
|
|
|
associated query.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.21
|
|
|
|
|
2019-02-13 05:00:30 +00:00
|
|
|
* Add tableName to query
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.20
|
|
|
|
|
2019-02-08 03:38:45 +00:00
|
|
|
* Join updates.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.19
|
|
|
|
|
2019-01-27 04:14:20 +00:00
|
|
|
* Implement cast-based `double` support.
|
|
|
|
* Finish `ListSqlExpressionBuilder`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.18
|
|
|
|
|
2019-01-24 17:20:34 +00:00
|
|
|
* Add `ListSqlExpressionBuilder` (still in development).
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.17
|
|
|
|
|
2019-01-23 22:05:58 +00:00
|
|
|
* Add `EnumSqlExpressionBuilder`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.16
|
|
|
|
|
2019-01-23 00:46:49 +00:00
|
|
|
* Add `MapSqlExpressionBuilder` for JSON/JSONB support.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.15
|
|
|
|
|
2018-12-31 11:36:08 +00:00
|
|
|
* Remove `Column.defaultValue`.
|
|
|
|
* Deprecate `toSql` and `sanitizeExpression`.
|
|
|
|
* Refactor builders so that strings are passed through
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.14
|
|
|
|
|
2018-12-08 23:13:10 +00:00
|
|
|
* Remove obsolete `@belongsToMany`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.13
|
|
|
|
|
2018-12-08 23:13:10 +00:00
|
|
|
* Push for consistency with orm_gen @ `2.0.0-dev`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.12
|
|
|
|
|
2018-12-03 23:13:11 +00:00
|
|
|
* Always apply `toSql` escapes.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.11
|
|
|
|
|
2018-12-03 23:13:11 +00:00
|
|
|
* Remove `limit(1)` except on `getOne`
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.10
|
|
|
|
|
2018-12-03 23:13:11 +00:00
|
|
|
* Add `withFields` to `compile()`
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.9
|
|
|
|
|
2018-12-03 16:50:43 +00:00
|
|
|
* Permanent preamble fix
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.8
|
|
|
|
|
2018-12-03 16:50:43 +00:00
|
|
|
* Escapes
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.7
|
|
|
|
|
2018-12-03 16:50:43 +00:00
|
|
|
* Update `toSql`
|
|
|
|
* Add `isTrue` and `isFalse`
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.6
|
|
|
|
|
2018-12-03 13:41:14 +00:00
|
|
|
* Add `delete`, `insert` and `update` methods to `Query`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.4
|
|
|
|
|
2018-12-01 19:12:07 +00:00
|
|
|
* Add more querying methods.
|
|
|
|
* Add preamble to `Query.compile`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.3
|
|
|
|
|
2018-12-01 18:27:42 +00:00
|
|
|
* Brought back old-style query builder.
|
|
|
|
* Strong-mode updates, revised `Join`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.2
|
|
|
|
|
2018-08-24 14:17:12 +00:00
|
|
|
* Renamed `ORM` to `Orm`.
|
2018-08-24 14:19:39 +00:00
|
|
|
* `Orm` now requires a database type.
|
2018-08-24 14:17:12 +00:00
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev.1
|
|
|
|
|
2018-08-24 12:30:38 +00:00
|
|
|
* Restored all old PostgreSQL-specific annotations. Rather than a smart runtime,
|
|
|
|
having a codegen capable of building ORM's for multiple databases can potentially
|
|
|
|
provide a very fast ORM for everyone.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 2.0.0-dev
|
|
|
|
|
2018-05-04 03:51:17 +00:00
|
|
|
* Removed PostgreSQL-specific functionality, so that the ORM can ultimately
|
|
|
|
target all services.
|
|
|
|
* Created a better `Join` model.
|
|
|
|
* Created a far better `Query` model.
|
2018-05-04 03:57:45 +00:00
|
|
|
* Removed `lib/server.dart`
|
2018-05-04 03:51:17 +00:00
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 1.0.0-alpha+10
|
|
|
|
|
2017-11-23 22:38:34 +00:00
|
|
|
* Split into `angel_orm.dart` and `server.dart`. Prevents DDC failures.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 1.0.0-alpha+7
|
|
|
|
|
2017-07-15 18:17:45 +00:00
|
|
|
* Added a `@belongsToMany` annotation class.
|
2024-10-12 10:35:14 +00:00
|
|
|
* Resolved [##20](https://github.com/protevus-dart/orm/issues/20). The
|
2017-07-15 18:17:45 +00:00
|
|
|
`PostgreSQLConnectionPool` keeps track of which connections have been opened now.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 1.0.0-alpha+6
|
|
|
|
|
2017-07-15 15:11:57 +00:00
|
|
|
* `DateTimeSqlExpressionBuilder` will no longer automatically
|
|
|
|
insert quotation marks around names.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 1.0.0-alpha+5
|
|
|
|
|
2017-07-14 23:11:12 +00:00
|
|
|
* Corrected a typo that was causing the aforementioned test failures.
|
|
|
|
`==` becomes `=`.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 1.0.0-alpha+4
|
|
|
|
|
|
|
|
* Added a null-check in `lib/src/query.dart##L24` to (hopefully) prevent it from
|
2017-07-14 23:11:12 +00:00
|
|
|
crashing on Travis.
|
|
|
|
|
2021-07-19 04:27:40 +00:00
|
|
|
## 1.0.0-alpha+3
|
|
|
|
|
2017-07-14 22:04:58 +00:00
|
|
|
* Added `isIn`, `isNotIn`, `isBetween`, `isNotBetween` to `SqlExpressionBuilder` and its
|
|
|
|
subclasses.
|
2019-03-14 09:21:53 +00:00
|
|
|
* Added a dependency on `package:meta`.
|