Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Đọc DB_CONNECTION từ biến môi trường hoặc file Config
const DB_CONNECTION = Config.Get('DB_CONNECTION') || env['DB_CONNECTION']
const DB_CONNECTION_POLL = 4 // Dùng 4 vì lý do blah blah
const DB_NAME = 'db_codedao_blog' // Tách thành biên để biết đây là tên DB
DB.connect(DB_CONNECTION, DB_NAME, DB_CONNECTION_POLL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment