Vendor MindTouch
Type Native
Categories Database
Requires MindTouch 8.08 or later
OS Restriction Microsoft Windows Server 2003/2008/Vista
Status Stable
License Standard/Enterprise
SID (service id) sid://mindtouch.com/std/2008/06/microsoft.access
Assembly mindtouch.access

Install Extension
URL of your MindTouch install (ex: http://www.mindtouch.com)
    

 

Table of Contents

Description

This extension contains functions for displaying data from Microsoft Access databases.

See also How to add an extension, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.

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.


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 (Edit tags)
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.