/doc/modules/mod_import_csv/import_csv.html

https://code.google.com/p/zotonic/ · HTML · 34 lines · 28 code · 6 blank · 0 comment · 0 complexity · 766436a6962eb4267169e823ed7e0cef MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Module import_csv</title>
  5. <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
  6. </head>
  7. <body bgcolor="white">
  8. <div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
  9. <hr>
  10. <h1>Module import_csv</h1>
  11. <ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Import a csv file according to the derived file/record definitions.
  12. <p><b>Authors:</b> Arjan Scherpenisse (<a href="mailto:arjan@scherpenisse.net"><tt>arjan@scherpenisse.net</tt></a>), Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
  13. <h2><a name="description">Description</a></h2>Import a csv file according to the derived file/record definitions.
  14. <h2><a name="index">Function Index</a></h2>
  15. <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#import-2">import/2</a></td><td>The import function, read the csv file and fetch all records.</td></tr>
  16. </table>
  17. <h2><a name="functions">Function Details</a></h2>
  18. <h3 class="function"><a name="import-2">import/2</a></h3>
  19. <div class="spec">
  20. <p><tt>import(Def, Context) -&gt; any()</tt></p>
  21. </div><p>The import function, read the csv file and fetch all records.
  22. This function is run as a spawned process. The Context should have the right permissions for inserting
  23. or updating the resources.</p>
  24. <hr>
  25. <div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
  26. <p><i>Generated by EDoc, Aug 12 2011, 19:36:11.</i></p>
  27. </body>
  28. </html>