Utilities
isco_sql
To obtain these utilities you need to add the option -s to the isco command.
Suppose that we have the class:
:- unit(pessoa).
mutable class pessoa.
id: serial . key .
nome: text.
estCivil: text.
emit
To obtain the SQL code correspoding to the class above simply:
?- pessoa :> isco_sql :> emit.
create sequence "is__pessoa_id";
create table "pessoa" (
"id" integer default (nextval ('is__pessoa_id')) primary key,
"nome" text,
"estCivil" text);
build
To actually build the SQL table corresponding to the class above, simply:
?- pessoa :> isco_sql :> build.
Projects