mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-25 19:40:25 +00:00
feat: better database errors (#2109)
* feat(core): create error kind enum * feat(core): add error kind for postgres * feat(core): add error kind for sqlite * feat(core): add error kind for mysql * test(postgres): add error tests * test(sqlite): add error tests * test(mysql): add error tests * fix(tests): fix tests rebasing * refac(errors): add `ErrorKind::Other` variant
This commit is contained in:
committed by
Austin Bonander
parent
771ab80a62
commit
c09532864d
@@ -21,6 +21,15 @@ CREATE TABLE tweet
|
||||
owner_id BIGINT
|
||||
);
|
||||
|
||||
CREATE TABLE tweet_reply
|
||||
(
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
tweet_id BIGINT NOT NULL REFERENCES tweet(id),
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
text TEXT NOT NULL,
|
||||
owner_id BIGINT
|
||||
);
|
||||
|
||||
CREATE TYPE float_range AS RANGE
|
||||
(
|
||||
subtype = float8,
|
||||
|
||||
Reference in New Issue
Block a user