56 Commits

Author SHA1 Message Date
Billy Chan
71dbffc725
Fix clippy (#1426)
* Fix clippy

* Fix clippy
2023-01-27 18:50:20 +08:00
Billy Chan
77bddd85a5
Fixup 2022-09-22 15:07:37 +08:00
Billy Chan
43495de0aa
Fix clippy warnings - 1 (#967)
* Fix clippy warnings

* cargo fmt

* Fix clippy warnings

* cargo fmt
2022-08-12 20:02:53 +08:00
Billy Chan
3d5f4424a8
Fixup 2021-11-16 13:09:07 +08:00
Billy Chan
f504ad1eef
Refactor Schema 2021-11-11 15:11:52 +08:00
Billy Chan
2f7c9ccda7
Refactoring 2021-11-03 10:56:06 +08:00
Billy Chan
0bbb50b7f6
Merge remote-tracking branch 'origin/master' into active-enum 2021-11-03 10:52:29 +08:00
Billy Chan
d22ff0db5e
Fixup 2021-11-02 18:35:36 +08:00
Billy Chan
55de1968bb
Add create_enum_from_entity 2021-10-27 12:37:35 +08:00
Billy Chan
8858d64dd0
create_table_from_entity with DB backend 2021-10-25 15:48:01 +08:00
Billy Chan
868a469de0
Test integer enum 2021-10-20 18:02:23 +08:00
Chris Tsang
668fb64224 Refactor test suite 2021-10-15 15:46:25 +08:00
Billy Chan
b48f1251b0
Add #244 as test cases 2021-10-15 12:38:17 +08:00
Billy Chan
5339696da2
Merge branch 'master' into active-model-behavior 2021-10-12 20:37:00 +08:00
Chris Tsang
51b30ee837
Merge branch 'master' into transaction-3 2021-10-07 17:21:59 +08:00
Billy Chan
8990261d70 Bind null custom types 2021-10-06 18:26:03 +08:00
Billy Chan
01fecbc405
Merge remote-tracking branch 'origin/master' into active-model-behavior 2021-10-04 11:47:38 +08:00
Chris Tsang
e7b822c65d cargo fmt 2021-10-04 11:44:02 +08:00
Marco Napetti
02ebc9745c Transaction 3 2021-10-04 11:39:16 +08:00
Chris Tsang
a6dfb417e2
Merge pull request #207 from SeaQL/naive-date
Support `chrono::NaiveDate` & `chrono::NaiveTime`
2021-09-30 22:52:31 +08:00
Billy Chan
02066cef6e
Support chrono::NaiveTime 2021-09-30 10:34:38 +08:00
Billy Chan
f7e96b3d72
Support chrono::NaiveDate 2021-09-30 10:34:38 +08:00
Billy Chan
ef1eb577b7
Update ActiveModelBehavior API 2021-09-30 10:31:58 +08:00
Billy Chan
89806ef522
Add test cases 2021-09-28 14:27:30 +08:00
Chris Tsang
0a19db6977 Fix SQLite test suite 2021-09-18 16:16:33 +08:00
Chris Tsang
558cf5904a Test suite: drop table if exists, instead of create table if not exists 2021-09-18 15:40:47 +08:00
Chris Tsang
fc769a89df Refactor timestamp test 2021-09-18 15:17:23 +08:00
Billy Chan
37d390e500
WIP 2021-09-17 19:04:18 +08:00
Billy Chan
cc5fde41bd
Testing Vec<u8> 2021-09-10 17:05:45 +08:00
Chris Tsang
6c810673c4 Move entity_to_table_create_statement 2021-09-07 15:55:58 +08:00
Billy Chan
b100e32ffd Rename entity_to_table_create_statement 2021-09-07 15:47:04 +08:00
Billy Chan
ca56f27909
cargo clippy 2021-09-03 16:20:57 +08:00
Billy Chan
b5d85486dd
Fixup 2021-09-03 14:35:20 +08:00
Chris Tsang
76596da46a
Merge pull request #117 from SeaQL/primary-key-type
`InsertResult` to return the primary key's type
2021-09-03 14:15:11 +08:00
Billy Chan
0e0ee0ede6
Add TryFromU64 & test Uuid as primary key 2021-09-01 16:53:54 +08:00
Billy Chan
5073c6f4aa
Relation with optional ForeignKeyAction 2021-09-01 10:35:51 +08:00
Billy Chan
1ad1767457
cargo fmt 2021-08-31 23:10:39 +08:00
Billy Chan
5a0f1d0fd1
Try pretty_assertions 2021-08-31 19:05:54 +08:00
Billy Chan
5fbc7b146a
Refactoring & Testing 2021-08-31 18:31:01 +08:00
Chris Tsang
c1ac7baae9 cargo fmt 2021-08-08 16:13:27 +08:00
Chris Tsang
7e968e2bbf Improve bakery schema 2021-08-07 21:35:04 +08:00
Sam Samai
5930c4b278 Clean up 2021-08-06 21:17:49 +10:00
Billy Chan
7e590b4a8d
SQLite use ENV connection string 2021-08-06 18:23:10 +08:00
Sam Samai
abed934d3f WIP strange fail with postgres driver 2021-08-01 16:14:31 +10:00
Sam Samai
dfda079b77 Store baker contact details as Json and test 2021-07-21 15:36:53 +10:00
Sam Samai
c9833893c0 Column type can be Uuid 2021-07-20 16:28:38 +10:00
Sam Samai
47b70cfe6d Create serial field on cake which is UUID 2021-07-19 17:23:34 +10:00
Sam Samai
4ff2ccdaf9 Use DatabaseBackend instead of Syntax 2021-07-18 13:02:04 +10:00
Sam Samai
f5838f8cbd Merge branch 'master' into ss/test_suite 2021-07-18 12:56:22 +10:00
Sam Samai
85f512d412 Bakery chain Schema and CRUD now use data from common module 2021-07-15 10:42:25 +10:00