Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 983 Bytes

addons-mysql.rst

File metadata and controls

32 lines (22 loc) · 983 Bytes

MySQL WebDAV provider

Examples

This screenshot shows how the country table of MySQL's world-db sample database is published as a collection.

All table rows are rendered as non-collections (text files) that contain the CSV formatted columns.

An additional virtual text file _ENTIRE_CONTENTS is created, that contains th whole CSV formatted table content.

image

The table's columns are mad accessible as live properties: .. image:: _static/img/DAVExplorer_MySQL.gif

Usage

To publish an MySQL database, simply add thes lines to the configuration file:

### Publish an MySQL 'world' database as share '/world-db' 
from wsgidav.addons.mysql_dav_provider import MySQLBrowserProvider
addShare("world-db", MySQLBrowserProvider("localhost", "root", "test", "world"))

Module description

wsgidav.addons.mysql_dav_provider