1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vlib: add a vlib/mssql module (#10280)

This commit is contained in:
youyuanwu
2021-05-31 04:08:31 -07:00
committed by GitHub
parent 5aa4f622b6
commit 8990114b4b
8 changed files with 360 additions and 0 deletions

13
vlib/mssql/config.v Normal file
View File

@ -0,0 +1,13 @@
module mssql
pub struct Config {
pub:
driver string
server string
uid string
pwd string
}
pub fn (cfg Config) get_conn_str() string {
return 'Driver=$cfg.driver;Server=$cfg.server;UID=$cfg.uid;PWD=$cfg.pwd'
}