|
|||||
|
||||||
Related Topics | Other Library Functions |
function |
db.open-sedna |
Library: Database access (OMDB)
Import: omdb.xmd |
Return type: dbDatabase
Returns: A |
define external db.database function db.open-sedna value string url dbname value string database-name or define external db.database function db.open-sedna value string url dbname value string database-name user value string user-name password value string password
Argument definitions
Use db.open-sedna
to create a connection to a Sedna XML native database. See
http://www.modis.ispras.ru/Development/sedna.htm for more details on how to
get Sedna. The function returns a db.database
OMX component.
user-name and password are optional with default values of an empty string. Check what access requirements are needed for the specified database.
You must have declared an OMX db.database
variable (either global or local)
to use a database connection in other OMDB functions.
This function will throw external exception OMDB501 if there are any Sedna errors. The exception will include any error numbers and descriptive text generated by Sedna. Consult the Sedna documentation for further details on the error condition.
Create a connection to a Sedna database named "XMLDatabaseDemo" using
username "charley" and password "chaplin" on machine named "rhine". This
connection can be reused in other OMDB functions.
import "omdb.xmd" prefixed by db. process local db.database my-database . . . set my-database to db.open-sedna "rhine" dbname "XMLDatabaseDemo" user "charley" password "chaplin"
Copyright © Stilo International plc, 1988-2010.