MindTouch Developer Center > Deki > Extensions > Microsoft Access

Microsoft Access

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:

  1. Go to Service management in the Control Panel of your wiki.
  2. Under Add Service, click on Local, and select type Extension.
  3. Enter a description and the extension SID: sid://mindtouch.com/ent/2008/06/microsoft.access
  4. Add any additional configuration settings that are required by the extension (see below).
  5. Click on add service.

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:


Access.Table(query : str) : xml

Show results of a SELECT query in a sortable table.

Parameters:

Name Type Description
query str SELECT query.

Samples:

     Output

To embed a SELECT query that displays a list of all users in the users table:

{{ access.table("SELECT user_name as Name, user_email as Email FROM users")  }} 
./MySql1.JPG

Access.Value(query : str) : xml

Show single value from a SELECT query.

Parameters:

Name Type Description
query str SELECT query.

    


Access.List(query : str, column : str) : xml

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)

    


Access.Record(query : str) : map

Collect all columns from a SELECT query.

Parameters:

Name Type Description
query str SELECT query.

    


Access.RecordList(query : str) : list

Collect all columns and all rows from a SELECT query.

Parameters:

Name Type Description
query str SELECT query.

 

Tag page
Viewing 4 of 4 comments: view all
Is there any future hope this extension will support record writes? I could turn my own little web apps. Think of the possibilities...
Posted 00:34, 26 Sep 2008
Eventually we want to support also write access, but we want to make sure we get it right!
Posted 06:58, 26 Sep 2008
Is this extension working also with MS SQL Server 2008?
Posted 10:49, 28 Nov 2008
Use the MS SQL extension for MS SQL Server.
Posted 15:36, 28 Nov 2008
Viewing 4 of 4 comments: view all
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2