<div dir="ltr">very helpful, thank you very much. Quite a bit more to it than I thought. <div><br></div><div>Best, Mike</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 2, 2022 at 7:27 PM Rahkonen Jukka <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="FI" style="overflow-wrap: break-word;">
<div class="gmail-m_-2361522757659903241WordSection1">
<p class="MsoNormal"><span>Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">About INDIRECT_SQLITE dialect, it is documented in
<a href="https://gdal.org/user/sql_sqlite_dialect.html" target="_blank">https://gdal.org/user/sql_sqlite_dialect.html</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">“If the datasource is SQLite database (GeoPackage, SpatiaLite) then SQLite dialect acts as native SQL dialect and Virtual Table Mechanism is not used. It is possible to force GDAL to
use Virtual Tables even in this case by specifying “-dialect INDIRECT_SQLITE”. This should be used only when necessary, since going through the virtual table mechanism might affect performance.”<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">There is also an usage example for one special use case.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">ES is documented in
<a href="https://gdal.org/drivers/vector/elasticsearch.html" target="_blank">https://gdal.org/drivers/vector/elasticsearch.html</a>.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">MONGO_DB is documented in
<a href="https://gdal.org/drivers/vector/mongodbv3.html" target="_blank">https://gdal.org/drivers/vector/mongodbv3.html</a>.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<br>
<br>
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>Lähettäjä:</b> gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>>
<b>Puolesta </b>Michael Sumner<br>
<b>Lähetetty:</b> tiistai 2. elokuuta 2022 10.43<br>
<b>Vastaanottaja:</b> gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
<b>Aihe:</b> [gdal-dev] determine default SQL dialect<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Is it possible to determine the default SQL dialect that will be used in the C++ API?<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">It seems like the logic to pivot on dialect choice is only available to drivers internally (they know if they have one), so a map of formats is enough - but I wonder if I'm missing an API hook. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Also, there appears to be dialect values DEBUG, INDIRECT_SQLITE, MONGO_DB, and ES in use but I gather they are for internal use (and so properly don't appear in the documentation). <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks very much, Mike<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<p class="MsoNormal">Michael Sumner<br>
Software and Database Engineer<br>
Australian Antarctic Division<br>
Hobart, Australia<br>
e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank">mdsumner@gmail.com</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Michael Sumner<br>Software and Database Engineer<br>Australian Antarctic Division<br>Hobart, Australia<br>e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank">mdsumner@gmail.com</a></div>