<pre><codeclass="python language-python hljs"><Path> = <Path>.parent <spanclass="hljs-comment"># Returns Path without the final component.</span>
<str> = <Path>.name <spanclass="hljs-comment"># Returns final component as a string.</span>
<str> = <Path>.suffix <spanclass="hljs-comment"># Returns name's last extension (e.g. '.py').</span>
<str> = <Path>.stem <spanclass="hljs-comment"># Returns name without its last extension.</span>
<str> = <Path>.suffix <spanclass="hljs-comment"># Returns name's last extension, e.g. '.py'.</span>
<str> = <Path>.stem <spanclass="hljs-comment"># Returns name without last extension.</span>
<tup.> = <Path>.parts <spanclass="hljs-comment"># Returns all path's components as strings.</span>
<conn>.execute(<spanclass="hljs-string">'<query>'</span>) <spanclass="hljs-comment"># depending on whether any exception occurred.</span>
</code></pre></div>
<div><h3id="placeholders">Placeholders</h3><pre><codeclass="python language-python hljs"><conn>.execute(<spanclass="hljs-string">'<query>'</span>, <list/tuple>) <spanclass="hljs-comment"># Replaces every '?' with an item.</span>
<conn>.execute(<spanclass="hljs-string">'<query>'</span>, <dict/namedtuple>) <spanclass="hljs-comment"># Replaces every ':<key>' with a value.</span>
<div><h3id="placeholders">Placeholders</h3><pre><codeclass="python language-python hljs"><conn>.execute(<spanclass="hljs-string">'<query>'</span>, <list/tuple>) <spanclass="hljs-comment"># Replaces '?'s in query with values.</span>
<conn>.execute(<spanclass="hljs-string">'<query>'</span>, <dict/namedtuple>) <spanclass="hljs-comment"># Replaces ':<key>'s with values.</span>