| This extension only works on Windows. |
| This extension requires a trial or active MindTouch Deki Enterprise license. |
This extension contains functions for displaying data from Microsoft Access databases. Related Links: Extension Overview, DekiScript Overview, Extension Demos.
Assembly: mindtouch.access
SID: sid://mindtouch.com/ent/2008/06/microsoft.access
License: Enterprise
This service requires Deki Wiki 8.08 or later.
To enable this extension, follow these steps:
Configuration:
Before the Microsoft Access extension can be used, it must be configured with the access information to the database.
| Config Key | Description |
| mdb-filepath | Microsoft Access database file location. |
If you need to configure multiple databases for the same wiki, register this extension once for each database. Use the following preference to specify a unique namespace value for each registration. Invoke the service using this value instead of access. For example, if you set namespace=mydb1, you would invoke the service with mydb1.table("...") instead of access.table("...").
| Preference | Description |
| namespace | Specifies a custom namespace (default: access) |
NOTE: The folder in which the Microsoft Access database resides must have appropriate rights granted, otherwise you will receive a "Could not create lock file" error.
Functions:
Show results of a SELECT query in a sortable table.
Parameters:
| Name | Type | Description |
| query | str | SELECT query. |
Samples:
| Output | ||
|
Show single value from a SELECT query.
Parameters:
| Name | Type | Description |
| query | str | SELECT query. |
Collect rows as a list from a SELECT query.
Parameters:
| Name | Type | Description |
| query | str | SELECT query. |
| column | str | Optional. Column name. (default: first column) |
Collect all columns from a SELECT query.
Parameters:
| Name | Type | Description |
| query | str | SELECT query. |
Collect all columns and all rows from a SELECT query.
Parameters:
| Name | Type | Description |
| query | str | SELECT query. |