PageRenderTime 24ms CodeModel.GetById 9ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/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
11<h1>Module import_csv</h1>
12<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.
13
14<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>
15
16<h2><a name="description">Description</a></h2>Import a csv file according to the derived file/record definitions.
17<h2><a name="index">Function Index</a></h2>
18<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>
19</table>
20
21<h2><a name="functions">Function Details</a></h2>
22
23<h3 class="function"><a name="import-2">import/2</a></h3>
24<div class="spec">
25<p><tt>import(Def, Context) -&gt; any()</tt></p>
26</div><p>The import function, read the csv file and fetch all records.
27  This function is run as a spawned process.  The Context should have the right permissions for inserting
28  or updating the resources.</p>
29<hr>
30
31<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>
32<p><i>Generated by EDoc, Aug 12 2011, 19:36:11.</i></p>
33</body>
34</html>