THE META-HTML LANGUAGE REFERENCE MANUAL

[TOC]

Manual Page Viewer

Name: WITH-OPEN-DATABASE

Section: Database Commands


Synopsis:

    <with-open-database DBVAR DBNAME &key [MODE=OPEN-MODE]
      body
    </with-open-database>

Description:

    Create an environment in which other database commands can be given. First, the database referenced by DBNAME is locked and opened in the mode specified by OPEN-MODE, and the resultant database handle is bound to the variable named by DBVAR. Then, the BODY code is executed. Finally, the database is closed, and further references to DBVAR are meaningless.

    Please note that the file name specified by DBNAME should be a full pathname; it is not relative to Web space in any way.

    OPEN-MODE should evaluate to one of the following:

    • READER
      The caller wishes only to have read access to the specified database.

    • WRITER
      The caller wishes to have both read and write access to the specified database.

    • WRITE-CREATE
      The caller wishes both read and write access to the specified database. If the database does not exist, it is created.

Edit Pointer
Function Index
Variable Index
Variable Editor


The META-HTML Reference Manual V2.0 Copyright © 1995, 1998, Brian J. Fox
Found a bug? Send mail to bug-manual@metahtml.org