|
|
|
|
ODBC
API Functions Supported by f90SQL
Connecting
to data source
| Function |
Confor-
mance |
Purpose |
| f90SQLAllocHandle |
ISO
92 |
Obtains
environment, connection, statement, or descriptor handles |
| f90SQLConnect |
ISO
92 |
Connects
to a specific driver by data source name, user ID, and password. |
| f90SQLDriverConnect |
ODBC |
Connects
to a specific driver using a connection string, or requests that the Driver
Manager and driver display connection dialog boxes for the user. |
| f90SQLBrowseConnect |
ODBC |
Returns
successive levels of connection attributes and valid attribute values,
and connects to the data source when all connection attributes have been
specified. |
Obtaining
information about a drivers and data sources
| Function |
Confor-
mance |
Purpose |
| f90SQLDataSources |
ISO
92 |
Returns
a list of available data sources. |
| f90SQLDrivers |
ODBC |
Returns
a list of installed drivers and their attributes. |
| f90SQLGetInfo |
ISO
92 |
Returns
information about a specific driver and data source. |
| f90SQLGetFunctions |
ISO
92 |
Returns
supported driver functions. |
| f90SQLGetTypeInfo |
ISO
92 |
Returns
information about supported data types. |
Setting and
retrieving driver attributes
Setting and
retrieving descriptor fields
Preparing
SQL requests
Terminating
statements and closing connections
Retrieving
results and information about results
| Function |
Confor-
mance |
Purpose |
| f90SQLRowCount |
ISO
92 |
Returns
the number of rows affected by a SQL statement. |
| f90SQLNumResultCols |
ISO
92 |
Returns
the number of columns in the result set. |
| f90SQLDescribeCol |
ISO
92 |
Describes
the columns in the result set. |
| f90SQLColAttribute |
ISO
92 |
Describes
attributes of columns in a result set. |
| f90SQLBindCol |
ISO
92 |
Assigns
storage and specifies the data type of a result column. |
| f90SQLFetch |
ISO
92 |
Returns
multiple result rows. |
| f90SQLFetchScroll |
ISO
92 |
Returns
scrollable result rows. |
| f90SQLGetData |
ISO
92 |
Returns
part or all of one column of one row of a result set (useful for long
data values). |
| f90SQLSetPos |
ODBC |
Positions
a cursor within a fetched block of data, and allows an application to
refresh data in the rowset, or update or delete data in the result set. |
| f90SQLBulkOperations |
ODBC |
Performs
bulk insertions and bulk bookmark operations, including update, delete,
and fetch by bookmark. |
| f90SQLMoreResults |
ODBC |
Determines
whether there are more result sets available and, if so, initializes processing
for the next result set. |
f90SQLGetDiagField
f90SQLGetDiagRec |
ISO
92 |
Returns
additional diagnostic information (single and multiple fields of the diagnostic
data structure). |
Catalog functions
| Function |
Confor-
mance |
Purpose |
| f90SQLColumnPrivileges |
ODBC |
Returns
a list of columns and associated privileges for one or more tables. |
| f90SQLColumns |
X/Open |
Returns
a list of column names in specified tables. |
| f90SQLForeignKeys |
ODBC |
Returns
a list of column names that make up foreign keys. |
| f90SQLPrimaryKeys |
ODBC |
Returns
the list of column names that make up a table's primary key. |
| f90SQLProcedureColumns |
ODBC |
Returns
the list of input and output parameters, as well as the columns that make
up the result set for the specified procedures. |
| f90SQLProcedures |
ODBC |
Returns
the list of procedure names stored in a data source. |
| f90SQLSpecialColumns |
X/Open |
Returns
information about the optimal set of columns that uniquely identifies
a row in a specified table, or the columns that are automatically updated
when any value in the row is updated by a transaction. |
| f90SQLStatistics |
ISO
92 |
Returns
statistics about a single table and the list of indexes associated with
the table. |
| f90SQLTablePrivileges |
ODBC |
Returns
a list of tables and the privileges associated with each table. |
| f90SQLTables |
X/Open |
Returns
a list of table names stored in a data source. |
In addition to
the previous functions, f90SQL provides utility functions, constant
definitions, and Fortran data structures that facilitate the use of ODBC from
your Fortran applications. All f90SQL functions receive and return
arguments according to the common Fortran convention.
|