SFDatabases.Database service

The Database service provides access to databases either embedded or described in Base documents. This service provides methods to:

Each instance of the Database service represents a single database and gives access to its tables, queries and data.

This service does not provide access to forms or reports in the Base document that contains the database. To access forms in a Base document, refer to the method FormDocuments of the Base service.

note

All exchanges between this service and the database are done using SQL only.


SQL statements may be run in direct or indirect mode. In direct mode the statement is transferred to the database engine without any syntax checking or review.

The provided interfaces include simple tables and queries lists, as well as access to database data.

tip

Az SQL-utasítások olvashatóbbá tétele érdekében a táblák, lekérdezések és mezők nevének zárójeles lezárására szögletes zárójeleket "[ ]" használhat, ahelyett, hogy más, bizonyos relációs adatbázis-kezelő rendszerek (RDBMS) számára kizárólagos karaktereket használna. De vigyázzon, a zárójelek ebben a kontextusban kötelezőek.


A szolgáltatás igénybevétele

Before using the Database service the ScriptForge library needs to be loaded or imported:

note

• Basic macros require to load ScriptForge library using the following statement:
GlobalScope.BasicLibraries.loadLibrary("ScriptForge")

• Python scripts require an import from