/* * dbinfo.ch — Harbour-compatible DBI / DBOI constants * * Values mirror Harbour's include/dbinfo.ch so FiveSql2 and other * downstream code using dbInfo() / dbOrderInfo() compile cleanly. * * Note: Five's hbrtl dbInfo / dbOrderInfo are currently stubbed * (return NIL). These constants exist so identifier references * resolve at compile time — runtime behavior depends on the stub. * When the stubs are replaced with real implementations, these * values become load-bearing. */ #ifndef HB_DBINFO_CH_ #define HB_DBINFO_CH_ /* DBI: database info types passed to dbInfo() */ #define DBI_ISDBF 1 #define DBI_CANPUTREC 2 #define DBI_GETHEADERSIZE 3 #define DBI_LASTUPDATE 4 #define DBI_GETDELIMITER 5 #define DBI_SETDELIMITER 6 #define DBI_GETRECSIZE 7 #define DBI_GETLOCKARRAY 8 #define DBI_TABLEEXT 9 #define DBI_FULLPATH 10 #define DBI_MEMOEXT 11 #define DBI_DB_VERSION 12 #define DBI_RDD_VERSION 13 #define DBI_LOCKSCHEME 14 #define DBI_ISFLOCK 15 #define DBI_ROLLBACK 16 #define DBI_PASSWORD 17 #define DBI_ISENCRYPTED 18 #define DBI_MEMOTYPE 19 #define DBI_SEPARATOR 20 #define DBI_MEMOBLOCKSIZE 21 #define DBI_MEMOVERSION 22 #define DBI_TABLETYPE 23 #define DBI_SCOPEDRELATION 24 #define DBI_TRANSREC 25 #define DBI_SHARED 42 #define DBI_ISREADONLY 43 #define DBI_VALIDBUFFER 44 #define DBI_POSITIONED 45 #define DBI_ISTEMPORARY 46 #define DBI_LOCKOFFSET 47 #define DBI_LOCKTEST 48 #define DBI_LOCKCOUNT 49 #define DBI_CHILDCOUNT 50 #define DBI_BOF 51 #define DBI_EOF 52 #define DBI_DBFILTER 53 #define DBI_FOUND 54 #define DBI_FCOUNT 55 #define DBI_ALIAS 56 #define DBI_OPENINFO 57 #define DBI_DIRTYREAD 58 #define DBI_POSINBUFFER 59 #define DBI_TRIGGER 60 /* DBOI: order info types passed to dbOrderInfo() / ordXxx() */ #define DBOI_CONDITION 1 #define DBOI_EXPRESSION 2 #define DBOI_POSITION 3 #define DBOI_RECNO 3 #define DBOI_NAME 4 #define DBOI_NUMBER 5 #define DBOI_BAGNAME 6 #define DBOI_BAGEXT 7 #define DBOI_INDEXEXT 7 #define DBOI_INDEXNAME 8 #define DBOI_ORDERCOUNT 9 #define DBOI_FILEHANDLE 10 #define DBOI_ISCOND 11 #define DBOI_ISDESC 12 #define DBOI_UNIQUE 13 #define DBOI_KEYTYPE 14 #define DBOI_KEYSIZE 15 #define DBOI_KEYDEC 16 #define DBOI_KEYVAL 17 #define DBOI_SCOPETOP 18 #define DBOI_SCOPEBOTTOM 19 #define DBOI_SCOPETOPCLEAR 20 #define DBOI_SCOPEBOTTOMCLEAR 21 #define DBOI_KEYCOUNT 22 #define DBOI_NUMBER2 23 #define DBOI_KEYSINCLUDED 24 #define DBOI_HPLOCKING 25 #define DBOI_CUSTOM 26 #define DBOI_KEYADD 27 #define DBOI_KEYDELETE 28 #define DBOI_KEYGOTO 29 #define DBOI_SKIPUNIQUE 30 #define DBOI_ISREINDEX 31 #define DBOI_USERKEEP 32 #define DBOI_TEMPORARY 33 #define DBOI_KEYCOUNTRAW 34 #define DBOI_FINDREC 35 #define DBOI_FINDRECCONT 36 /* Lock modes for hb_dbfLock */ #define DBOI_LOCKMODE_FILE 1 #define DBOI_LOCKMODE_RECORD 2 #endif /* HB_DBINFO_CH_ */