cvs: presentations / mdbtool.xml /slides/mdbtool clib.xml cmdline.xml contact.xml copymdb.xml csv.xml export.xml format.xml intro.xml mdbtool.php
mdbtool.xml mdbtool1.php mdbtool2.php myhandler.xml myhandler2.xml myinfile.xml mysql.xml odbc.xml php.xml phpex.xml phpex1.xml phpex2.xml result1
result2 result3 transfer.xml who.xml why.xml
| From: | Hartmut Holzgraefe | Date: | Wed, 30 Jun 2004 12:23:46 +0000 |
| Subject: | cvs: presentations / mdbtool.xml /slides/mdbtool clib.xml cmdline.xml contact.xml copymdb.xml csv.xml export.xml format.xml intro.xml mdbtool.php mdbtool.xml mdbtool1.php mdbtool2.php myhandler.xml myhandler2.xml myinfile.xml mysql.xml odbc.xml php.xml phpex.xml phpex1.xml phpex2.xml result1 result2 result3 transfer.xml who.xml why.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1007@lists.php.net to get a copy of this message | ||
hholzgra Wed Jun 30 08:23:46 2004 EDT
Added files:
/presentations mdbtool.xml
/presentations/slides/mdbtool clib.xml cmdline.xml contact.xml
copymdb.xml csv.xml export.xml
format.xml intro.xml mdbtool.php
mdbtool.xml mdbtool1.php mdbtool2.php
myhandler.xml myhandler2.xml
myinfile.xml mysql.xml odbc.xml
php.xml phpex.xml phpex1.xml
phpex2.xml result1 result2 result3
transfer.xml who.xml why.xml
Log:
Talk on reading MS Access tables
http://cvs.php.net/co.php/presentations/mdbtool.xml?r=1.1&p=1 Index: presentations/mdbtool.xml +++ presentations/mdbtool.xml <presentation navbarbackground="#DAE6EA"> <title>Using Microsoft Acess Databases without ODBC</title> <event>LinuxTag 2004</event> <location>Karlsruhe</location> <date>June 24 2004</date> <speaker>Hartmut Holzgraefe</speaker> <navmode>html</navmode> <basefontsize>12pt</basefontsize> <topic>mdbtool</topic> <logo1>presentations/slides/UDF_Gen/mysql_2004.png</logo1> <slide>slides/mdbtool/intro.xml</slide> <slide>slides/mdbtool/format.xml</slide> <slide>slides/mdbtool/transfer.xml</slide> <slide>slides/mdbtool/copymdb.xml</slide> <slide>slides/mdbtool/export.xml</slide> <slide>slides/mdbtool/csv.xml</slide> <slide>slides/mdbtool/odbc.xml</slide> <slide>slides/mdbtool/mdbtool.xml</slide> <slide>slides/mdbtool/cmdline.xml</slide> <slide>slides/mdbtool/clib.xml</slide> <slide>slides/mdbtool/php.xml</slide> <slide>slides/mdbtool/phpex.xml</slide> <slide>slides/mdbtool/phpex1.xml</slide> <slide>slides/mdbtool/phpex2.xml</slide> <slide>slides/mdbtool/mysql.xml</slide> <slide>slides/mdbtool/myhandler.xml</slide> <slide>slides/mdbtool/myhandler2.xml</slide> <slide>slides/mdbtool/myinfile.xml</slide> <slide>slides/mdbtool/contact.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/mdbtool/clib.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/clib.xml +++ presentations/slides/mdbtool/clib.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>C library</title> <blurb> All mdbtool command line utilities use the mdbtool C library to read MDB files. </blurb> <blurb> The C library provides functions to read the file structure and actual table data. </blurb> <blurb> The library itself depends on glib2. </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/cmdline.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/cmdline.xml +++ presentations/slides/mdbtool/cmdline.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Command line tools</title> <list title="mdbtool provides some usefull command line tools"> <li>_mdbtables_ shows names of tables in a MDB file</li> <li>_mdbexport_ extracts table data as CSV</li> <li>_mdbschema_ generates SQL schema definitions</li> <li>_mdbsql_ a very simple SQL query tool</li> <li>...</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/contact.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/contact.xml +++ presentations/slides/mdbtool/contact.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Contact</title> <blurb> hartmut@mysql.de </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/copymdb.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/copymdb.xml +++ presentations/slides/mdbtool/copymdb.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Copy MDB files</title> <blurb> The easiest way to transfer Access data is to just copy the MDB file to the target system. </blurb> <blurb> But this requires that Access is also installed on the target system. </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/csv.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/csv.xml +++ presentations/slides/mdbtool/csv.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>CSV</title> <list title="CSV"> <li>uses a delimiter character, usually *;*</li> <li>encapsulates strings in *'...'* so that text can contain *;*</li> <li>no real (formal) specifications</li> <li>not all implementations support line breaks in data</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/export.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/export.xml +++ presentations/slides/mdbtool/export.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Export to text</title> <blurb> There are three common text representations for Database tables: </blurb> <list> <li>fixed field length</li> <li>TAB separated</li> <li>CSV</li> </list> <blurb> CSV is the most common these days </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/format.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/format.xml +++ presentations/slides/mdbtool/format.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>MDB File Format</title> <blurb> MDB files contain all Access data objects </blurb> <list> <li>data tables and indexes</li> <li>queries</li> <li>forms</li> <li>reports</li> <li>VBA code</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/intro.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/intro.xml +++ presentations/slides/mdbtool/intro.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Intro</title> <list title="Microsoft Access Databases are"> <li> in common use</li> <li> file based (*.mdb)</li> <li> accessible with ODBC</li> <li> not Client/Server</li> <li> proprietary format</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/mdbtool.php?r=1.1&p=1 Index: presentations/slides/mdbtool/mdbtool.php +++ presentations/slides/mdbtool/mdbtool.php <?php dl("mdbtools.so"); $db = mdb_open("test.mdb"); $tables = mdb_tables($db, true); foreach ($tables as $name) { echo "$name:\n"; $tab = mdb_table_open($db, $name); $fields = mdb_table_fields($tab); print_r($fields); mdb_table_close($tab); echo "\n\n"; } mdb_close($db); ?> http://cvs.php.net/co.php/presentations/slides/mdbtool/mdbtool.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/mdbtool.xml +++ presentations/slides/mdbtool/mdbtool.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>mdbtool</title> <list title="The mdbtool project on SourceForge"> <li>revese engineered the MDB file format</li> <li>provides a C library to access MDB file structure and table data</li> <li>comes with commandline tools</li> <li>is also ported to native JAVA</li> <li>see also http://mdbtool.sf.net/</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/mdbtool1.php?r=1.1&p=1 Index: presentations/slides/mdbtool/mdbtool1.php +++ presentations/slides/mdbtool/mdbtool1.php <?php dl("mdbtools.so"); $db = mdb_open("test.mdb"); $tables = mdb_tables($db, true); foreach ($tables as $name) { echo "$name:\n"; $tab = mdb_table_open($db, $name); $fields = mdb_table_fields($tab); print_r($fields); mdb_table_close($tab); echo "\n\n"; } mdb_close($db); ?> http://cvs.php.net/co.php/presentations/slides/mdbtool/mdbtool2.php?r=1.1&p=1 Index: presentations/slides/mdbtool/mdbtool2.php +++ presentations/slides/mdbtool/mdbtool2.php <?php dl("mdbtools.so"); $db = mdb_open("test.mdb"); $tables = mdb_tables($db, true); foreach ($tables as $name) { echo "$name:\n"; $tab = mdb_table_open($db, $name); $n = 0; while ($row = (mdb_fetch_assoc($tab))) { var_dump($row); $n++; } echo "Rows: $n\n\n"; mdb_table_close($tab); } mdb_close($db); ?> http://cvs.php.net/co.php/presentations/slides/mdbtool/myhandler.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/myhandler.xml +++ presentations/slides/mdbtool/myhandler.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>MDB table handler</title> <blurb> The MDB table handler (that i am working on right now) will provide: </blurb> <list> <li>native read access to Access data</li> <li>full MySQL SQL syntax support</li> <li>joins over Access and MySQL tables possible</li> <li>Access data may be updated at any time by replacing the MDB file</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/myhandler2.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/myhandler2.xml +++ presentations/slides/mdbtool/myhandler2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Handler HowTo</title> <blurb> Using the mdbtool handler for now requires some manual interaction: </blurb> <list> <li>The MDB file has to be copied to a database data directory</li> <li>The table handler has no automatic schema detection</li> <li>... so you have to use the mdbschema tool to get proper CREATE statements</li> <li>Table names in the MDB and in the MySQL database have to match</li> <li>Only one MDB file per database supported for now</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/myinfile.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/myinfile.xml +++ presentations/slides/mdbtool/myinfile.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>LOAD DATA INFILE</title> <blurb> Another approach to use MDB data within MySQL is to directly import it into MySQL tables. </blurb> <blurb> The LOAD DATA INFILE feature currently used for CSV style data has recently been extended to support data preprocessing and filtering. </blurb> <blurb> With the help of the mdbtool library it should be possible to create a preprocessing filter that reads a table from an MDB file instead of textual data. </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/mysql.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/mysql.xml +++ presentations/slides/mdbtool/mysql.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Next step: MySQL</title> <blurb> We are currently investigating two approaches to use mdbtoll for direct access to Acess MDB file data from within MySQL: </blurb> <list> <li>a mdbtool based table handler</li> <li>LOAD DATA INFILE support for MDB format</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/odbc.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/odbc.xml +++ presentations/slides/mdbtool/odbc.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>ODBC</title> <list title="A transfer with ODBC"> <li>requires Access ODBC drivers installed</li> <li>also requires an ODBC driver for the target database</li> <li>only works with local or network file access to the MDB file</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/php.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/php.xml +++ presentations/slides/mdbtool/php.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>PHP extension</title> <blurb> I created a PHP extension based on the mdbtool C library that makes the most important functions of the C API available to PHP. </blurb> <blurb> Using this extension you can find out what tables are included in a MDB file and can iterate over the actual table data. </blurb> <blurb> The PHP extension is available in the PECL repository: http://pecl.php.net/mdbtool </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/phpex.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/phpex.xml +++ presentations/slides/mdbtool/phpex.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>PHP example</title> <example type="php" filename="mdbtool.php" fontsize="1em"> </example> <example filename="result1" fontsize="1em"> </example> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/phpex1.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/phpex1.xml +++ presentations/slides/mdbtool/phpex1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>PHP example 1</title> <example type="php" filename="mdbtool1.php" fontsize="1em"> </example> <example filename="result3" fontsize="1em"> </example> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/phpex2.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/phpex2.xml +++ presentations/slides/mdbtool/phpex2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>PHP example 2</title> <example type="php" filename="mdbtool2.php" fontsize="1em"> </example> <example filename="result2" fontsize="1em"> </example> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/transfer.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/transfer.xml +++ presentations/slides/mdbtool/transfer.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Transfering Access Data</title> <blurb> There are three common ways to transfer Access Data </blurb> <list> <li>copy MDB files</li> <li>ODBC</li> <li>export to text</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/who.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/who.xml +++ presentations/slides/mdbtool/who.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Intro</title> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/why.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/why.xml +++ presentations/slides/mdbtool/why.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>UDF</title> <list title="User Defined Functions"> <li>add SQL functions to MySQL servers</li> <li>functions are imported from shared libraries</li> <li>to be implemented in C/C++</li> <li>wrapper libraries for other languages exist</li> </list> <list title="why UDFs?"> <li>add missing functionality</li> <li>gain performance</li> <li>interface to existing libraries</li> </list> </slide>
http://cvs.php.net/co.php/presentations/mdbtool.xml?r=1.1&p=1 Index: presentations/mdbtool.xml +++ presentations/mdbtool.xml <presentation navbarbackground="#DAE6EA"> <title>Using Microsoft Acess Databases without ODBC</title> <event>LinuxTag 2004</event> <location>Karlsruhe</location> <date>June 24 2004</date> <speaker>Hartmut Holzgraefe</speaker> <navmode>html</navmode> <basefontsize>12pt</basefontsize> <topic>mdbtool</topic> <logo1>presentations/slides/UDF_Gen/mysql_2004.png</logo1> <slide>slides/mdbtool/intro.xml</slide> <slide>slides/mdbtool/format.xml</slide> <slide>slides/mdbtool/transfer.xml</slide> <slide>slides/mdbtool/copymdb.xml</slide> <slide>slides/mdbtool/export.xml</slide> <slide>slides/mdbtool/csv.xml</slide> <slide>slides/mdbtool/odbc.xml</slide> <slide>slides/mdbtool/mdbtool.xml</slide> <slide>slides/mdbtool/cmdline.xml</slide> <slide>slides/mdbtool/clib.xml</slide> <slide>slides/mdbtool/php.xml</slide> <slide>slides/mdbtool/phpex.xml</slide> <slide>slides/mdbtool/phpex1.xml</slide> <slide>slides/mdbtool/phpex2.xml</slide> <slide>slides/mdbtool/mysql.xml</slide> <slide>slides/mdbtool/myhandler.xml</slide> <slide>slides/mdbtool/myhandler2.xml</slide> <slide>slides/mdbtool/myinfile.xml</slide> <slide>slides/mdbtool/contact.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/mdbtool/clib.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/clib.xml +++ presentations/slides/mdbtool/clib.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>C library</title> <blurb> All mdbtool command line utilities use the mdbtool C library to read MDB files. </blurb> <blurb> The C library provides functions to read the file structure and actual table data. </blurb> <blurb> The library itself depends on glib2. </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/cmdline.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/cmdline.xml +++ presentations/slides/mdbtool/cmdline.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Command line tools</title> <list title="mdbtool provides some usefull command line tools"> <li>_mdbtables_ shows names of tables in a MDB file</li> <li>_mdbexport_ extracts table data as CSV</li> <li>_mdbschema_ generates SQL schema definitions</li> <li>_mdbsql_ a very simple SQL query tool</li> <li>...</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/contact.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/contact.xml +++ presentations/slides/mdbtool/contact.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Contact</title> <blurb> hartmut@mysql.de </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/copymdb.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/copymdb.xml +++ presentations/slides/mdbtool/copymdb.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Copy MDB files</title> <blurb> The easiest way to transfer Access data is to just copy the MDB file to the target system. </blurb> <blurb> But this requires that Access is also installed on the target system. </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/csv.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/csv.xml +++ presentations/slides/mdbtool/csv.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>CSV</title> <list title="CSV"> <li>uses a delimiter character, usually *;*</li> <li>encapsulates strings in *'...'* so that text can contain *;*</li> <li>no real (formal) specifications</li> <li>not all implementations support line breaks in data</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/export.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/export.xml +++ presentations/slides/mdbtool/export.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Export to text</title> <blurb> There are three common text representations for Database tables: </blurb> <list> <li>fixed field length</li> <li>TAB separated</li> <li>CSV</li> </list> <blurb> CSV is the most common these days </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/format.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/format.xml +++ presentations/slides/mdbtool/format.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>MDB File Format</title> <blurb> MDB files contain all Access data objects </blurb> <list> <li>data tables and indexes</li> <li>queries</li> <li>forms</li> <li>reports</li> <li>VBA code</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/intro.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/intro.xml +++ presentations/slides/mdbtool/intro.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Intro</title> <list title="Microsoft Access Databases are"> <li> in common use</li> <li> file based (*.mdb)</li> <li> accessible with ODBC</li> <li> not Client/Server</li> <li> proprietary format</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/mdbtool.php?r=1.1&p=1 Index: presentations/slides/mdbtool/mdbtool.php +++ presentations/slides/mdbtool/mdbtool.php <?php dl("mdbtools.so"); $db = mdb_open("test.mdb"); $tables = mdb_tables($db, true); foreach ($tables as $name) { echo "$name:\n"; $tab = mdb_table_open($db, $name); $fields = mdb_table_fields($tab); print_r($fields); mdb_table_close($tab); echo "\n\n"; } mdb_close($db); ?> http://cvs.php.net/co.php/presentations/slides/mdbtool/mdbtool.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/mdbtool.xml +++ presentations/slides/mdbtool/mdbtool.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>mdbtool</title> <list title="The mdbtool project on SourceForge"> <li>revese engineered the MDB file format</li> <li>provides a C library to access MDB file structure and table data</li> <li>comes with commandline tools</li> <li>is also ported to native JAVA</li> <li>see also http://mdbtool.sf.net/</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/mdbtool1.php?r=1.1&p=1 Index: presentations/slides/mdbtool/mdbtool1.php +++ presentations/slides/mdbtool/mdbtool1.php <?php dl("mdbtools.so"); $db = mdb_open("test.mdb"); $tables = mdb_tables($db, true); foreach ($tables as $name) { echo "$name:\n"; $tab = mdb_table_open($db, $name); $fields = mdb_table_fields($tab); print_r($fields); mdb_table_close($tab); echo "\n\n"; } mdb_close($db); ?> http://cvs.php.net/co.php/presentations/slides/mdbtool/mdbtool2.php?r=1.1&p=1 Index: presentations/slides/mdbtool/mdbtool2.php +++ presentations/slides/mdbtool/mdbtool2.php <?php dl("mdbtools.so"); $db = mdb_open("test.mdb"); $tables = mdb_tables($db, true); foreach ($tables as $name) { echo "$name:\n"; $tab = mdb_table_open($db, $name); $n = 0; while ($row = (mdb_fetch_assoc($tab))) { var_dump($row); $n++; } echo "Rows: $n\n\n"; mdb_table_close($tab); } mdb_close($db); ?> http://cvs.php.net/co.php/presentations/slides/mdbtool/myhandler.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/myhandler.xml +++ presentations/slides/mdbtool/myhandler.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>MDB table handler</title> <blurb> The MDB table handler (that i am working on right now) will provide: </blurb> <list> <li>native read access to Access data</li> <li>full MySQL SQL syntax support</li> <li>joins over Access and MySQL tables possible</li> <li>Access data may be updated at any time by replacing the MDB file</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/myhandler2.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/myhandler2.xml +++ presentations/slides/mdbtool/myhandler2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Handler HowTo</title> <blurb> Using the mdbtool handler for now requires some manual interaction: </blurb> <list> <li>The MDB file has to be copied to a database data directory</li> <li>The table handler has no automatic schema detection</li> <li>... so you have to use the mdbschema tool to get proper CREATE statements</li> <li>Table names in the MDB and in the MySQL database have to match</li> <li>Only one MDB file per database supported for now</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/myinfile.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/myinfile.xml +++ presentations/slides/mdbtool/myinfile.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>LOAD DATA INFILE</title> <blurb> Another approach to use MDB data within MySQL is to directly import it into MySQL tables. </blurb> <blurb> The LOAD DATA INFILE feature currently used for CSV style data has recently been extended to support data preprocessing and filtering. </blurb> <blurb> With the help of the mdbtool library it should be possible to create a preprocessing filter that reads a table from an MDB file instead of textual data. </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/mysql.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/mysql.xml +++ presentations/slides/mdbtool/mysql.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Next step: MySQL</title> <blurb> We are currently investigating two approaches to use mdbtoll for direct access to Acess MDB file data from within MySQL: </blurb> <list> <li>a mdbtool based table handler</li> <li>LOAD DATA INFILE support for MDB format</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/odbc.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/odbc.xml +++ presentations/slides/mdbtool/odbc.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>ODBC</title> <list title="A transfer with ODBC"> <li>requires Access ODBC drivers installed</li> <li>also requires an ODBC driver for the target database</li> <li>only works with local or network file access to the MDB file</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/php.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/php.xml +++ presentations/slides/mdbtool/php.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>PHP extension</title> <blurb> I created a PHP extension based on the mdbtool C library that makes the most important functions of the C API available to PHP. </blurb> <blurb> Using this extension you can find out what tables are included in a MDB file and can iterate over the actual table data. </blurb> <blurb> The PHP extension is available in the PECL repository: http://pecl.php.net/mdbtool </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/phpex.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/phpex.xml +++ presentations/slides/mdbtool/phpex.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>PHP example</title> <example type="php" filename="mdbtool.php" fontsize="1em"> </example> <example filename="result1" fontsize="1em"> </example> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/phpex1.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/phpex1.xml +++ presentations/slides/mdbtool/phpex1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>PHP example 1</title> <example type="php" filename="mdbtool1.php" fontsize="1em"> </example> <example filename="result3" fontsize="1em"> </example> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/phpex2.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/phpex2.xml +++ presentations/slides/mdbtool/phpex2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>PHP example 2</title> <example type="php" filename="mdbtool2.php" fontsize="1em"> </example> <example filename="result2" fontsize="1em"> </example> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/transfer.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/transfer.xml +++ presentations/slides/mdbtool/transfer.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Transfering Access Data</title> <blurb> There are three common ways to transfer Access Data </blurb> <list> <li>copy MDB files</li> <li>ODBC</li> <li>export to text</li> </list> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/who.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/who.xml +++ presentations/slides/mdbtool/who.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Intro</title> </slide> http://cvs.php.net/co.php/presentations/slides/mdbtool/why.xml?r=1.1&p=1 Index: presentations/slides/mdbtool/why.xml +++ presentations/slides/mdbtool/why.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>UDF</title> <list title="User Defined Functions"> <li>add SQL functions to MySQL servers</li> <li>functions are imported from shared libraries</li> <li>to be implemented in C/C++</li> <li>wrapper libraries for other languages exist</li> </list> <list title="why UDFs?"> <li>add missing functionality</li> <li>gain performance</li> <li>interface to existing libraries</li> </list> </slide>