Making Samples executable. #!/usr/bin/env io and chmod a+x *.io
[io/quag.git] / addons / DBI / samples / driver_info.io
bloba98d80d76cf8fd79107b1dc75a7a72d607798e8e
1 #!/usr/bin/env io
3 showInfo := method(d,
4 (" Name: " .. d at(0)) println
5 (" Description: " .. d at(1)) println
6 (" Filename: " .. d at(2)) println
7 (" Version: " .. d at(3)) println
8 (" Compiled: " .. d at(4)) println
9 (" Author: " .. d at(5)) println
10 (" URL: " .. d at(6)) println
11 "" println
14 ("Libdbi version: " .. DBI version) println
15 (" Drivers found: " .. DBI init) println
16 "" println
18 DBI drivers foreach(d, showInfo(d))