<scripttype="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Array Types (Deprecated)","image":[""],"dateModified":"2026-06-28T18:25:20.000Z","author":[]}</script><metaproperty="og:url" content="https://psqlpy-python.github.io/usage/types/array_types.html"><metaproperty="og:site_name" content="PSQLPy"><metaproperty="og:title" content="Array Types (Deprecated)"><metaproperty="og:description" content="Important Deprecated functionality. Use any Python Sequence as a parameter. For type safety and better performance we have predefined array types. Example:"><metaproperty="og:type" content="article"><metaproperty="og:locale" content="en-US"><metaproperty="og:updated_time" content="2026-06-28T18:25:20.000Z"><metaproperty="article:modified_time" content="2026-06-28T18:25:20.000Z"><title>Array Types (Deprecated) | PSQLPy</title><metaname="description" content="Important Deprecated functionality. Use any Python Sequence as a parameter. For type safety and better performance we have predefined array types. Example:">
<spanclass="line"><spanstyle="--shiki-light:#383A42;--shiki-dark:#ABB2BF;"> pool </span><spanstyle="--shiki-light:#383A42;--shiki-dark:#56B6C2;">=</span><spanstyle="--shiki-light:#383A42;--shiki-dark:#61AFEF;"> ConnectionPool</span><spanstyle="--shiki-light:#383A42;--shiki-dark:#ABB2BF;">()</span></span>
<spanclass="line"><spanstyle="--shiki-light:#383A42;--shiki-dark:#ABB2BF;"> result </span><spanstyle="--shiki-light:#383A42;--shiki-dark:#56B6C2;">=</span><spanstyle="--shiki-light:#A626A4;--shiki-dark:#C678DD;"> await</span><spanstyle="--shiki-light:#383A42;--shiki-dark:#ABB2BF;"> connection.</span><spanstyle="--shiki-light:#383A42;--shiki-dark:#61AFEF;">execute</span><spanstyle="--shiki-light:#383A42;--shiki-dark:#ABB2BF;">(</span></span>
<spanclass="line"><spanstyle="--shiki-light:#986801;--shiki-light-font-style:inherit;--shiki-dark:#E06C75;--shiki-dark-font-style:italic;"> querystring</span><spanstyle="--shiki-light:#383A42;--shiki-dark:#56B6C2;">=</span><spanstyle="--shiki-light:#50A14F;--shiki-dark:#98C379;">"SELECT * FROM users WHERE name = ANY($1)"</span><spanstyle="--shiki-light:#383A42;--shiki-dark:#ABB2BF;">,</span></span>