swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts   Other Library Functions  
OMX  

db.database

 
 

Library: Database access (OMDB)
Import: omdb.xmd


Purpose

The db.database OMX component allows you to use either your existing ODBC-compliant software drivers or your Oracle client drivers to create a connection to and manipulate a database.

Usage Notes

Within your program, you can create as many instances of the db.database OMX component as you require by declaring global and local variables of type "db.database".

Please refer to OMX Components for a general description of OMX components and how they are used.

Related OMDB library functions:

The functions

are used to establish and discard db.database components. The db.database objects are used as parameters by the following OMDB library functions:

Example

Once you have declared your db.database OMX variables, you can use them with one of the db.open functions (such as db.open-odbc) in the OmniMark Database library to create connections to databases.

  import "omdb.xmd" prefixed by db.
  
  process
     local db.database my-database
  
     set my-database to db.open-odbc "MyDatabase"

Assuming that no errors occur when establishing the connection to the database, you can now manipulate the data in that database using the other functions in the OmniMark Database library.

    Related Syntax
   db.open-odbc
   db.close
   db.execute-in
   db.query
   db.open-table
   db.open-procedure
   db.commit
   db.set-transaction-type
   db.rollback
   db.compile-statement
 
Related Concepts
   Using the OMDB library
 
Other Library Functions
   db.advance-recordset
   db.close
   db.commit
   db.compile-statement
   db.database
   db.delete
   db.discard
   db.document-writer-sedna
   db.execute
   db.execute-in
   db.field
   db.insert
   db.is-null
   db.move-dynamic-record
   db.move-record
   db.omdb-version
   db.omdb-version-oci10g
   db.omdb-version-oci11g
   db.omdb-version-oci8i
   db.omdb-version-oci9i
   db.omdb-version-odbc
   db.omdb-version-sedna
   db.open-oci10g
   db.open-oci11g
   db.open-oci8i
   db.open-oci9i
   db.open-odbc
   db.open-procedure
   db.open-sedna
   db.open-table
   db.prepare
   db.procedure
   db.query
   db.reader
   db.record-exists
   db.rollback
   db.set-transaction-type
   db.statement
   db.streaming-execute
   db.table
   db.update
   db.writer
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.