155 Commits

Author SHA1 Message Date
Chris Tsang
065ab80cd0 0.9.2 2022-08-20 14:06:55 +08:00
Chris Tsang
fad54627cd Update sea-query to 0.26.3 2022-08-20 14:06:55 +08:00
Chris Tsang
632471a526 Update chrono version 2022-08-14 00:46:38 +08:00
Rob Ede
5735c25e69
exclude chrono default features 2022-08-08 15:15:54 +02:00
Ivan Krivosheev
2731878d0e Set minimal rustc version 2022-08-07 02:34:43 +03:00
Chris Tsang
0db2575461 0.9.1 2022-07-22 00:14:26 +08:00
Chris Tsang
ad5a566a17 0.9.0 2022-07-12 00:25:47 +08:00
Chris Tsang
324c6c8793 Pin dependencies 2022-07-11 23:53:24 +08:00
Billy Chan
d6831e5295
Bump version of sqlx, sea-query, sea-schema, time and uuid (#834)
* Bump version of sqlx, sea-query, sea-schema, time and uuid

* PostgreSQL `u32` was wrapped in `Oid` (launchbadge/sqlx#1602)

* Update test cases

* Fix clippy warnings

* cargo fmt

* Fix clippy warnings

* Bump sea-schema to ^0.9.2

* Update test cases

* Pin on sea-query minor version
2022-07-05 01:05:11 +08:00
Chris Tsang
a97104559a Fix build error 2022-07-02 14:44:39 +08:00
Chris Tsang
ef6393d5c6 Consolidate feature flags 2022-07-02 14:17:14 +08:00
Chris Tsang
52855f8890 Tweaks 2022-06-26 18:35:18 +08:00
SandaruKasa
4f26b4a585
sqlx_logging_level, a wrapper around sqlx::ConnectOptions::log_statements (#800)
* sqlx_logging_level

* ` = { version = "..." }`
2022-06-26 18:29:44 +08:00
Chris Tsang
12ec00272c Revert "Cursor Pagination (#754)"
This reverts commit 6f9dbd260e6e004c369abe0019b4374253db7d3b.
2022-06-26 18:23:47 +08:00
Billy Chan
6f9dbd260e
Cursor Pagination (#754)
* Cursor pagination

* Apply filter / range filter on cursor; Allow non-primary key filter

* Fixup

* Update cursor API

* Cursor pagination with composite keys

* Docs
2022-06-26 17:48:00 +08:00
Chris Tsang
018ea94912 0.8.0 2022-05-10 00:07:57 +08:00
Billy Chan
cdc70f4fd9
Insert Default (#589)
* Insert default

* Update sea-query

* Fixup

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-05-09 23:46:38 +08:00
Billy Chan
498c0154ca Restructure SeaORM migration
Bump codegen's sea-query version [cli]

Update CLI subcommand method

Move migration utility into sea-orm-migration
2022-05-09 12:30:55 +08:00
Chris Tsang
6308ee7c45 Update sea-query 2022-04-26 23:48:36 +08:00
Chris Tsang
d6fb93e48c Update sea-query 2022-04-18 17:18:10 +08:00
Chris Tsang
53b6819a80 Test patched sea-query 2022-04-18 11:12:45 +08:00
Marcel
e20f6e24c5
Update sea-query dependency to 0.24.0 (#673)
* Use sea-query 0.24.0

* window: None

* window: None

* window: None
2022-04-18 11:04:30 +08:00
Chris Tsang
e9cf93f4b5 0.7.1 2022-03-27 00:26:48 +08:00
Chris Tsang
018d9d8fd3 0.7.0 2022-03-26 18:35:49 +08:00
Marco Napetti
e80aa07c7c
Add Send to StreamTrait (#622)
* update ouroboros

* Add Send to StreamTrait
2022-03-22 17:17:07 +08:00
Chris Tsang
49b63a00d4 update sea-query 2022-03-15 13:53:03 +08:00
Billy Chan
9687819a7e
Supports time crate 2022-03-13 18:18:15 +08:00
Billy Chan
cdd188e561
Exclude mock from default features 2022-03-01 15:12:23 +08:00
Chris Tsang
c2ee25a809 0.6.0 2022-02-07 00:22:43 +08:00
Billy Chan
8eb095385d Migration (#335)
* Refactor `ConnectionTrait`

* Refactoring

* Build index & foreign key statements

* Fix imports

* Fixup

* Rocket example with migration

* async-std compatible with the tokio 1.0 runtime

* Use reexported dependency

* Compile without selecting any db backend

* Updating sea-orm-cli dep

* sea-orm-cli migrate commands

* cargo fmt

* Test [cli]

* Refactoring

* Clap app name should be "sea-orm-cli"

* Correctly capture MIGRATION_DIR

* Rename README

* Add `sea-orm-cli migrate init` command

* Update README

* Try restructured sea-query dependency (SeaQL/sea-schema#41)

* Set `DATABASE_URL` environment variable
2022-02-05 20:34:54 +08:00
Chris Tsang
7f3ad2e582 Update sea-query dependency 2022-02-01 14:29:16 +08:00
Billy Chan
8145088814 Refactoring
`ColumnDef` with default value

Cargo fmt

Update docs

Fixup

Support `DateTimeLocal`

Update docs

Codegen write db timestamp column as `DateTimeUtc` type

Update dependency

Merge branch 'sea-query/add-new-column-ref' into pr/429

feat: apply alias on `ColumnRef::SchemaTableColumn`
2022-02-01 14:29:03 +08:00
Charles Chege
52f38a10ea Support the use of chrono::DateTime<Utc> in sea-orm
Add documentation for this

Temporarily use a fork to include new Sea-query code

Add tests for DateTimeUtc

Solve Github actions error by add the code to create a table

Assertion accuracy tests

Rectify incorrect format
2022-02-01 14:27:33 +08:00
Chris Tsang
82bad4a376 0.5.0 2022-01-01 16:05:36 +08:00
Chris Tsang
4b7234a959 0.5.0-rc.1 2021-12-26 02:43:14 +08:00
Chris Tsang
47cbf50c3c
Merge branch 'master' into pulls/361 2021-12-25 17:41:29 +08:00
Billy Chan
2d5aa2a61b
Log with tracing-subscriber (#399)
* chore: log examples with tracing-subscriber

* chore: log [issues] with tracing-subscriber

* chore: log [cli] with tracing-subscriber

* feat: tracing will emit log if tracing-subscriber is not setup
2021-12-24 23:59:37 +08:00
Chris Tsang
9ef44be422
Merge pull request #370 from SeaQL/bump-query-dep-to-pr-202 2021-12-15 00:50:53 +08:00
Chris Tsang
7da5b6bf90
Merge pull request #373 from nappa85/master 2021-12-15 00:49:52 +08:00
Billy Chan
66a005237c
Update sea-orm to depends on sea-query 0.20.0 2021-12-12 23:03:11 +08:00
Chris Tsang
5656c4981d 0.4.2 2021-12-12 22:55:11 +08:00
Chris Tsang
8db9d10c12 Bump sea-query 2021-12-11 14:26:18 +08:00
Marco Napetti
8ad9781a3f Remove debug features 2021-12-09 16:20:53 +01:00
Marco Napetti
6b94673dd9 First metric and tracing implementation 2021-12-09 15:12:41 +01:00
Billy Chan
af1ffdad83
Rename sea-strum lib back to strum 2021-12-07 17:21:03 +08:00
Chris Tsang
871a5e8de6 0.4.1 2021-12-05 00:18:12 +08:00
Chris Tsang
b5bdb683ee Bump sea-query 2021-12-04 21:56:34 +08:00
Billy Chan
1229287fd8
Support Up to 6 Values Composite Primary Key (#353)
* Support up to 6 composite primary key

* Test [issues]

* Test [issues]
2021-12-04 20:57:05 +08:00
Chris Tsang
01f005289a 0.4.0 2021-11-19 23:11:33 +08:00
Billy Chan
2520ee4070
Use sea-query 0.19.0 2021-11-19 15:03:04 +08:00