Skip to content

Instantly share code, notes, and snippets.

@matsuaki-jp
Created August 21, 2020 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsuaki-jp/7a90c03e584f6fe1ef1e4754a6a953a5 to your computer and use it in GitHub Desktop.
Save matsuaki-jp/7a90c03e584f6fe1ef1e4754a6a953a5 to your computer and use it in GitHub Desktop.
sequelize with ts settings.ts
import {Dialect} from 'sequelize'
interface ConnectionConfig {
dbname:string;
dbUsername:string
dbPassword:string
dbDialect:Dialect
dbSchema?:string
dbPort:number
dbHost:string
localhost:string
localPort:number
sshHost:string
sshPort:number
bastionUserName:string
batsionKeyPath?:string
keyPassphrase?:string
migrationsPath:string
}
// 接続用設定をまとめる。
const connectionConfig:ConnectionConfig = {
}
export {connectionConfig}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment