PostgreSQL

ThinkJS supports PostgreSQL by using pg module in underlayer.

Configuration

If you want to use PostgreSQL, you should change modle type to postgresql by modify src/common/config/db.js:

export default {
  type: 'postgresql',
  adapter: {
    postgresql: {

    }
  }
}

CRUD handler

PostgreSQL has same APIs with MySQL, you can know more in Model -> Description