24 lines
		
	
	
	
		
			539 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			539 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import env from '#start/env'
 | |
| import { defineConfig } from '@adonisjs/lucid'
 | |
| 
 | |
| const dbConfig = defineConfig({
 | |
|   connection: 'postgres',
 | |
|   connections: {
 | |
|     postgres: {
 | |
|       client: 'pg',
 | |
|       connection: {
 | |
|         host: env.get('DB_HOST'),
 | |
|         port: env.get('DB_PORT'),
 | |
|         user: env.get('DB_USER'),
 | |
|         password: env.get('DB_PASSWORD'),
 | |
|         database: env.get('DB_DATABASE'),
 | |
|       },
 | |
|       migrations: {
 | |
|         naturalSort: true,
 | |
|         paths: ['database/migrations'],
 | |
|       },
 | |
|     },
 | |
|   },
 | |
| })
 | |
| 
 | |
| export default dbConfig
 | 
