Update of /cvsroot/q-lang/q/modules/odbc
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2009
Modified Files:
README-ODBC
Log Message:
update documentation
Index: README-ODBC
===================================================================
RCS file: /cvsroot/q-lang/q/modules/odbc/README-ODBC,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** README-ODBC 15 Dec 2003 10:21:23 -0000 1.1.1.1
--- README-ODBC 14 Feb 2008 01:14:14 -0000 1.2
***************
*** 89,96 ****
The `odbc_connect' function returns an `ODBCHandle' object which is used to
refer to the database connection in the other routines provided by this
! module. You can get general information about the connection with the
`odbc_info' function. This function returns a tuple of strings with the
! following items (see the corresponding item descriptions in the ODBC API
! reference for more information):
- DATA_SOURCE_NAME: the data source name
--- 89,109 ----
The `odbc_connect' function returns an `ODBCHandle' object which is used to
refer to the database connection in the other routines provided by this
! module. An ODBCHandle object is closed automatically when it is no longer
! accessible. You can also close it explicitly with a call to the
! `odbc_disconnect' function:
!
! ==> odbc_disconnect DB
!
! After `odbc_disconnect' has been invoked on a handle, any further operations
! on it will fail.
!
!
! GETTING INFORMATION ABOUT A DATA SOURCE
! ======= =========== ===== = ==== ======
!
! You can get general information about an open database connection with the
`odbc_info' function. This function returns a tuple of strings with the
! following items (see the description of the SQLGetInfo() function in the ODBC
! API reference for more information):
- DATA_SOURCE_NAME: the data source name
***************
*** 109,120 ****
"03.80")
! An ODBCHandle object is closed automatically when it is no longer accessible.
! You can also close it explicitly with a call to the `odbc_disconnect'
! function:
! ==> odbc_disconnect DB
! After `odbc_disconnect' has been invoked on a handle, any further operations
! on it will fail.
--- 122,136 ----
"03.80")
! As of Q 7.11, a bunch of additional meta information is available using the
! odbc_getinfo function which provides a direct interface to the SQLGetInfo()
! routine. The result of odbc_getinfo is a byte string which can be converted to
! an integer or string value, depending on the type of information requested.
! For instance:
! ==> bint $ odbc_getinfo DB SQL_MAX_TABLES_IN_SELECT
! 31
! ==> bstr $ odbc_getinfo DB SQL_IDENTIFIER_QUOTE_CHAR
! "`"
|