KI_GET_HANDLE
Argument | Enumeration | Purpose |
---|---|---|
connection | Current database connection | |
table$ | Table name | |
mode$ | Access mode, "R", "W", "X" or "U" | |
bPersist | TRUE for persistence across RUN | |
eCacheOpts | KDB_CACHE_ENUM | whether to cache read-only tables |
newhand | New handle | |
status | KDB_ERROR_ENUM | Return status |
KI_GET_HANDLE
This function allocates a handle for a table and opens it in the specified mode. The handle is then pooled so that a subsequent call for the same table and modes will return the same handle value. To do this a reference count is incremented in this call and decremented in KI_CLOSE.