lapis 数据库配置
// config.lua
local config = require("lapis.config")
config("development", {
postgres = {
host = "127.0.0.1",
user = "pg_user",
password = "the_password",
database = "my_database"
}
})
local config = require("lapis.config")
config("development", {
mysql = {
host = "127.0.0.1",
user = "mysql_user",
password = "the_password",
database = "my_database"
}
})