mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
mysql module
This commit is contained in:

committed by
Alexander Medvednikov

parent
bbc5c14d99
commit
0066afe7fc
11
examples/database/mysql.v
Normal file
11
examples/database/mysql.v
Normal file
@ -0,0 +1,11 @@
|
||||
// import mysql
|
||||
|
||||
// pub fn main() {
|
||||
// conn := mysql.connect('localhost', 'root', '', 'mysql')
|
||||
// res := conn.query('show tables')
|
||||
// for row in res.rows() {
|
||||
// println(row.vals.join(', '))
|
||||
// }
|
||||
// res.free()
|
||||
// conn.close()
|
||||
// }
|
Reference in New Issue
Block a user