Skip site navigation (1) Skip section navigation (2)

IDL :)

From: "Taral" <taral(at)cyberjunkie(dot)com>
To: <pgsql-interfaces(at)hub(dot)org>
Subject: IDL :)
Date: 1998-11-15 17:24:56
Message-ID: 000101be10bc$dd2c0be0$ (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
Well... SOMEONE comment on this! It's what I've got so far:


--- cut here ---

module PostgreSQL {
    enum celltype {

        // 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

        Row fetch(in long rownum); // returns nil until implemented

    interface Database {
        QueryResult exec(in string query);

pgsql-interfaces by date

Next:From: Tom LaneDate: 1998-11-15 23:21:49
Subject: Re: [INTERFACES] IDL :)
Previous:From: TaralDate: 1998-11-15 16:30:24
Subject: CORBA object lifetime problems

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group