IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6458


Ignore:
Timestamp:
Feb 21, 2006, 2:26:03 PM (20 years ago)
Author:
jhoblitt
Message:

spec 'descriptive' comments

Location:
trunk/glueforge
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/examples/complex.md

    r5963 r6458  
    11glueforge METADATA
    2     pkg_name        STR  foodb 
     2    pkg_name        STR  foodb
    33    pkg_namespace   STR  foo
    44END
    55
    66foo METADATA
    7     foo     STR     60      # Primary Key
    8     bar     S32     0
     7    foo     STR     60      # Primary Key # the name of foo thing
     8    bar     S32     0       ## count of bar
    99    baz     F32     0.0
    1010    boing   F64     0.0
     
    1616    boing   F64     0.0
    1717    baz     F32     0.0
    18     bar     S32     0
    19     foo     STR     60      # Primary Key
     18    bar     S32     0       ## count of bar
     19    foo     STR     60      # Primary Key # the name of foo thing
    2020END
  • trunk/glueforge/examples/simple.md

    r5963 r6458  
    11table   STR     foo
    2 foo     STR     60      # Primary Key
    3 bar     S32     0
     2foo     STR     60      # Primary Key # the name of foo thing
     3bar     S32     0       ## count of bar
    44baz     F32     0.0
    55boing   F64     0.0
  • trunk/glueforge/glueforge.in

    r6447 r6458  
    33# Copyright (C) 2005-2006  Joshua Hoblitt
    44#
    5 # $Id: glueforge.in,v 1.46 2006-02-17 03:39:28 jhoblitt Exp $
     5# $Id: glueforge.in,v 1.47 2006-02-22 00:26:03 jhoblitt Exp $
    66
    77use strict;
     
    344344
    345345    table   STR     foo
    346     foo     STR     60      # Primary Key
    347     bar     S32     0
     346    foo     STR     60      # Primary Key # the name of foo thing
     347    bar     S32     0       ## count of bar
    348348    baz     F32     0.0
    349349    boing   F64     0.0
     
    360360C<F32>, C<F64>, & C<BOOL> columns are ignored.
    361361
    362 Keys maybe specified as a C<Primary Key> or C<Key>.  Only one C<Primary Key>
    363 may be specified per table.
     362Indexes maybe specified as comment value of either C<Primary Key> or C<Key>.
     363Only one C<Primary Key> may be specified per table. 
     364
     365Description comments may specified as either a C<# ...> after an index
     366specifier or as stand alone comment value of C<## ...>.
    364367
    365368The key name C<position> is also reserved as it is used internally by the
     
    387390
    388391foo METADATA
    389     foo     STR     60      # Primary Key
    390     bar     S32     0
     392    foo     STR     60      # Primary Key # the name of foo thing
     393    bar     S32     0       ## count of bar
    391394    baz     F32     0.0
    392395    boing   F64     0.0
     
    398401    boing   F64     0.0
    399402    baz     F32     0.0
    400     bar     S32     0
    401     foo     STR     60      # Primary Key
     403    bar     S32     0       ## count of bar
     404    foo     STR     60      # Primary Key # the name of foo thing
    402405END
    403406
Note: See TracChangeset for help on using the changeset viewer.