mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
Add constraint method to DatabaseError trait
Override `constraint` method for `PgDatabaseError`.
This commit is contained in:
committed by
Ryan Leckey
parent
d5e0f1b92b
commit
68cf2f9cdb
@@ -23,3 +23,9 @@ CREATE TYPE float_range AS RANGE
|
||||
subtype = float8,
|
||||
subtype_diff = float8mi
|
||||
);
|
||||
|
||||
CREATE TABLE products (
|
||||
product_no INTEGER,
|
||||
name TEXT,
|
||||
price NUMERIC CHECK (price > 0)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user