Menu Content/Inhalt
Home arrow Projects
Table of Contents

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.
 
· start/isco/utilities.txt (1196 views) · Last modified on 8/21/2006 at 18:52
 
Recent changes RSS feed Driven by DokuWiki