00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 :- export odbc_open/1, odbc_open/2,
00027 odbc_open/3, odbc_open/4,
00028 odbc_close/0, odbc_close/1,
00029 odbc_shutdown/0,
00030 odbc_sql/3, odbc_sql/4,
00031 findall_odbc_sql/3, findall_odbc_sql/4,
00032 odbc_sql_cnt/4,
00033 odbc_query/2, odbc_query/3,
00034 odbc_deallocate_query/1, odbc_deallocate_query/2,
00035 odbc_import/2, odbc_import/3, odbc_import/4,
00036 odbc_transaction/1, odbc_transaction/2,
00037 odbc_connect_option/5,
00038 set_connect_option/3, get_connect_option/3,
00039 odbc_get_schema/2, odbc_get_schema/3,
00040 odbc_show_schema/1, odbc_show_schema/2,
00041 odbc_user_tables/1, odbc_user_tables/2,
00042 odbc_insert/2, odbc_insert/3,
00043 odbc_delete/2, odbc_delete/3,
00044 odbc_data_sources/2,
00045 odbc_connection_exists/1,
00046 odbc_attach/2, odbc_attach/3,
00047 odbc_create_table/2, odbc_create_table/3,
00048 odbc_create_index/3, odbc_create_index/4,
00049 odbc_delete_table/1, odbc_delete_table/2,
00050 odbc_delete_view/1, odbc_delete_view/2,
00051 odbc_delete_index/2, odbc_delete_index/3,
00052 odbc_get_info/2, odbc_get_info/3,
00053 odbc_flag/2, set_odbc_flag/2,
00054 odbc_flag/3, % obsolescent.
00055 odbc_current_cursor/1, odbc_deactivate_cursor/1.
00056
00057
00058 % import some necessary predicates from library.
00059
00060 :- import call0/1, odbc_exec_query/6,xsb_backtrace/1 from machine.
00061 :- import conset/2, conget/2, coninc/1 from gensym.
00062 :- import length/2, append/3, member/2, copy_term/2, memberchk/2 from basics.
00063 :- import misc_error/1,domain_error/4 from error_handler.
00064
00065 :- import (dynamic)/1, retractall/1, abolish/1, asserta/1, assert/1,
00066 retract/1
00067 from assert.
00068
00069 :- import writeln/1, write/1 , '=..'/2, atomic/1, atom_codes/2,
00070 atom/1, number_codes/2, name/2, number/1, integer/1, nl/0,
00071 '\='/2, functor/3, abort/1, structure/1, throw/1
00072 from standard.
00073
00074 :- import findall/3, setof/3, bagof/3
00075 from setof.
00076
00077 :- import numbervars/1 from num_vars.
00078
00079 :- import ','/2, (:-)/2, '/'/2 from usermod.