From: Taral <taral@cyberjunkie.com>
To: pgsql-interfaces@hub.org
Subject: IDL :)
Date: Sun, 15 Nov 1998 11:24:56 -0600
Message-ID: <000101be10bc$dd2c0be0$8a14f7d0@taral.dobiecenter.com> (raw)
Well... SOMEONE comment on this! It's what I've got so far:
Taral
--- cut here ---
module PostgreSQL {
enum celltype {
int2,
int4,
int8
// more types
};
typedef short int2type;
typedef sequence<int2type> int2col;
typedef long int4type;
typedef sequence<int4type> int4col;
struct int8type {
long lsw;
long msw;
};
typedef sequence<int8type> int8col;
union Column switch (celltype) {
case int2:
int2col int2var;
case int4:
int4col int4var;
case int8:
int8col int8var;
// more types
};
union Cell switch (celltype) {
case int2:
int2type int2var;
case int4:
int4type int4var;
case int8:
int8type int8var;
// more types
};
interface Row {
typedef sequence<Cell> type;
attribute type data; // throws system exception on set until BE
supports this
};
interface QueryResult {
typedef sequence<Column> type;
typedef sequence<string> headerType;
readonly attribute headerType header;
attribute type data; // throws system exception on set until
implemented
Row fetch(in long rownum); // returns nil until implemented
};
interface Database {
QueryResult exec(in string query);
};
};
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: taral@cyberjunkie.com, pgsql-interfaces@hub.org
Subject: Re: IDL :)
In-Reply-To: <000101be10bc$dd2c0be0$8a14f7d0@taral.dobiecenter.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox