MySQL

name: mysql1
dsn: user:[email protected](127.0.0.1:3306)/database
timeout: 3s

name

Required, Unique

Datasource name

local ds = require('datasource.postgres.mysql1')

dsn

Required

DSN (Data Source Name) for connect to DB

Format: [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...&paramN=valueN]

golang packge for more information about DSN

timeout

By default: 5s string

timeout