mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
mysql module
This commit is contained in:
parent
bbc5c14d99
commit
0066afe7fc
3 changed files with 104 additions and 0 deletions
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()
|
||||
// }
|
Loading…
Add table
Add a link
Reference in a new issue