Please enable JavaScript to view this site.

A-Shell Consolidated Reference

Navigation: ASQL

Opcodes and Operations

Scroll Prev Top Next More

The following tables lists and provides brief descriptions for the ASQL opcodes. Click on the opcode link for more details, parameters, comments, and examples.

Opcode

Value

Notes

SQLOP_INIT_LIB

1

Initialize library

SQLOP_CLOSE_LIB

2

End lib

SQLOP_GET_ERRMSG

3

Get error info for last op

SQLOP_INIT_CONN

4

Init connection structure

SQLOP_OPTIONS

5

<< replaced by SQLOP_SET_CONNATR >>

SQLOP_CONNECT

6

Connect to database

SQLOP_DISCONNECT

7

Disconnect from database

SQLOP_GET_INFO

8

Get misc info - per flags

SQLOP_QUERY

9

Execute query

SQLOP_GET_COLDEFS

10

Fetch column info (for last query)

SQLOP_SET_COLDEFS

11

Set column info (for last query)

SQLOP_FETCH_ROW

12

Fetch next row

SQLOP_FREE_RESULT

13

Free resources used by result set (after query)

SQLOP_GET_CONNATR

14

Get connection attributes (ODBC)

SQLOP_SET_CONNATR

15

Set connection attributes

SQLOP_GET_STMATR

16

Get statement attributes (ODBC)

SQLOP_SET_STMATR

17

Set statement attributes (ODBC)

SQLOP_DATA_SOURCES

18

Get data sources (ODBC)

SQLOP_PST_PREPARE

20

Initialize / define a prepared statement

SQLOP_PST_BIND

21

Define parameter bindings for prepared statement

SQLOP_PST_EXECUTE

22

Execute prepared statement

SQLOP_PST_FREE

23

Close / release prepared statement

SQLOP_DISCONNECT_ALL

24

Executes SQLOP_DISCONNECT for all current connections

SQLOP_FETCH_GRID

25

Retrieve current result set into a gridmap