##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September, 2016 # Modified: 2016-10-03/22:47-0400 ##+ # # dbdriver.icn, ODBC table column information # # tectonics: ~/.odbc.ini setup required for [unicon] # assuming the [unicon] ODBC setup, SQLite3 # link ximage procedure main() # mode 'o' open, ODBC SQL, default table and connection at defaults db := open("unicon", "o", "", "") | stop("no ODBC for \"unicon\"") # Information below was created as part of examples/odbc.icn # sql(db, "create table contacts (id integer primary key, name, phone)") # display ODBC driver info write("\nODBC driver information:") write(ximage(dbdriver(db))) # and a direct field access, (hint: "unicon") write("Data Source Name: ", dbdriver(db).dsn) close(db) end