pg-sqill

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Database

数据库

The application uses PostgreSQL. Connection string is in
DATABASE_URL
environment variable.
To query the database directly:
bash
export $(cat .env | xargs) && psql $DATABASE_URL -c "YOUR SQL"
Note: Table names with uppercase letters require double quotes (e.g.,
"Member"
,
"Task"
).
本应用使用PostgreSQL。连接字符串存储在
DATABASE_URL
环境变量中。
如需直接查询数据库:
bash
export $(cat .env | xargs) && psql $DATABASE_URL -c "YOUR SQL"
注意:包含大写字母的表名需要使用双引号(例如:
"Member"
"Task"
)。

Schema

数据库架构

sql
-- Schema not synced. Run sync.sh in the scripts folder.
sql
-- Schema not synced. Run sync.sh in the scripts folder.

Tips

小贴士

  • Use
    LIMIT 5
    when exploring data
  • Check column names before writing queries
  • Join tables using foreign key relationships shown in schema
  • 探索数据时使用
    LIMIT 5
  • 编写查询前先检查列名
  • 使用架构中显示的外键关系连接表