This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/myddas/example

27 lines
395 B
Plaintext
Raw Normal View History

2015-09-21 23:05:36 +01:00
sqlite3 side:
create table test (id integer, x integer, y integer);
.separator ","
.import DaysInHospital_Y3.csv hh
.export hh
.save hh
2015-09-21 23:05:36 +01:00
myddas side:
use_module(library(myddas)).
db_open(sqlite3,con,'.hh',x,x).
2015-09-21 23:05:36 +01:00
db_close(con).
test 2:
use_module(library(myddas)).
assert((
t2 :-
db_open(sqlite3,con,'hh',x,x),
2015-09-21 23:05:36 +01:00
db_import(con,test,test),
test(A,B,C),
writeln(test(A,B,C)),
fail
)).
trace.
t2.