VirtualBase Actions
Username:  
Password:
  > Home
> User Guide
v Reference
    > Introduction
    > CROFT
    > BEE Variables
    > BEE Syntax
    > BEE Commands
    v Database Operation
       > Database Variables
       v Database Actions
          o Database Access Actions
          o VirtualBase Actions
          o Supplementary Actions
    > Content Management
    > Objects and Classes
    > Interface with others
    o Glossary
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Reference >> Database Operation >> Database Actions >> VirtualBase Actions <=  =>      <  1  >  
The operations for VirtualBase (flat file database)

VirtualBase is a "table-on-the-fly".  It is a data structure that can be accessed via the usual database interface.  A VirtualBase table does not exist on any database platform as such.  Instead, it was created, used, and disposed of all in the single page run.  Alternatively, you can save the VirtualBase into a file (the "unload" action) so that you can re-create it in the future (the "load" action).

VirtualBase is useful in keeping temporary data that require database-like access interface like sorting, filtering, column and row selective processing etc.  Sometimes VirtualBase is used to hold design attributes for run-time input.  For example, Site-map can be easily done with VirtualBase and the "dbtree" command.

There are only three VirtualBase specific actions.  Once a VirtualBase table is instantiated, you can access it in the "query" mode or the "action" mode as if it is an ordinary database table.

VirtualBase Actions

Description

create

Create a new VirtualBase.  Table definition can be specified using "create" SQL statement.

load[:file]

Parse a file for VirtualBase query, which is usually starting with a "create" statement followed by many "insert" statements.  (Action "load" does a "create" implicitly before parsing the file.)  The file argument is default to the name of dbobj.

unload[:file]

Save the VirtualBase to a file in the form of VirtualBase query.  The saved file is in the format that the "load" action can parse.  The file argument is default to the name of dbobj.

showcreatetable

Return the "create table" SQL statement via the dbobj%result variable (string).

showinsertinto

Return the "insert into" SQL statements of all data rows via the dbobj%result variable (array, one element for each row).

 

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd