/
germanubis
/
sqlx
ΠΠ±Π·ΠΎΡ
ΠΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ
ΠΠΎΠΉΡΠΈ
/
germanubis
/
sqlx
ΠΠΎΠ΄
ΠΠ°ΠΏΡΠΎΡΡ
0
ΠΠ°Π΄Π°ΡΠΈ
ΠΠΈΠΊΠΈ
ΠΠ°ΠΊΠ΅ΡΡ
0
Π Π΅Π»ΠΈΠ·Ρ
0
ΠΠ½Π°Π»ΠΈΡΠΈΠΊΠ°
ΠΠ΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΡ
v0.5.7
tests/postgres/setup.sql
31 ΡΡΡΠΎΠΊΠ°
763 B
Atkins
Fix GitHub Actions and integration test (#1346)
29 ΠΈΡΠ» 2021, 00:00
ΠΠ΅ Π²Π΅ΡΠΈΡΠΈΡΠΈΡΠΎΠ²Π°Π½
29 ΠΈΡΠ» 2021, 00:00
9f7205e
ΠΠΎΠ΄
ΠΠ²ΡΠΎΡΡΡΠ²ΠΎ
Π ΡΡΠΌ ΠΊΠΎΠ΄?
-- https://www.postgresql.org/docs/current/sql-createtype.html CREATE TYPE status AS ENUM ('new', 'open', 'closed'); -- https://www.postgresql.org/docs/current/rowtypes.html#ROWTYPES-DECLARING CREATE TYPE inventory_item AS ( name TEXT, supplier_id INT, price BIGINT ); -- https://github.com/prisma/database-schema-examples/tree/master/postgres/basic-twitter#basic-twitter CREATE TABLE tweet ( id BIGSERIAL PRIMARY KEY, created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), text TEXT NOT NULL, owner_id BIGINT ); CREATE TYPE float_range AS RANGE ( subtype = float8, subtype_diff = float8mi ); CREATE TABLE products ( product_no INTEGER, name TEXT, price NUMERIC CHECK (price > 0) );