Database Device Server User's Guide (V1.5)

A.Götz

17/12/99


This guide explains how user's access the TANGO Database device server. It contains a brief description of how the Database device server works. The main part of the guide consists of a detailed description of all commands implemented and how to call them. Some examples are given and a list of known problems and how to solve them. 

1. Introduction

The TANGO database device server provides a TANGO Device interface to an underlying database. The underlying database is mysql. The device server is a client of the mysql database server. The TANGO tables are accessed using embedded SQL in the Database device server. The client uses the TANGO Device command_inout method to send requests to the Database device server. The present version of the device server is monothreaded. This means simultanous requests to the database are queued.

2. Commands

The following commands are supported :

2.1 DbInfo

2.2 DbGetDeviceClassList

2.3 DbGetClassList

2.4 DbGetDeviceList

2.5 DbExportDevice

2.6 DbUnExportDevice

2.7 DbUnExportServer

2.8 DbImportDevice

2.9 DbImportDeviceList

2.10 DbGetDeviceProperty

2.11 DbPutDeviceProperty

2.12 DbGetAttributeProperty

2.13 DbPutAttributeProperty

2.14 DbGetClassProperty

2.15 DbPutClassProperty

2.16 DbAddDevice

2.17 DbAddServer