This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 2832ac4d publish documentation
2832ac4d is described below
commit 2832ac4d5be96e410d1dd3be3fc9c4ed78abda73
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Oct 4 19:23:07 2023 +0000
publish documentation
---
main/_sources/driver/snowflake.rst.txt | 39 ++++++++++++++++++++++
main/driver/snowflake.html | 37 ++++++++++++++++++++
main/r/adbcdrivermanager/pkgdown.yml | 2 +-
.../reference/adbc_connection_init.html | 4 +--
.../reference/adbc_database_init.html | 2 +-
.../reference/adbc_statement_init.html | 6 ++--
main/r/adbcdrivermanager/search.json | 2 +-
main/r/adbcflightsql/pkgdown.yml | 2 +-
main/r/adbcpostgresql/pkgdown.yml | 2 +-
main/r/adbcsnowflake/pkgdown.yml | 2 +-
main/r/adbcsqlite/pkgdown.yml | 2 +-
main/searchindex.js | 2 +-
12 files changed, 89 insertions(+), 13 deletions(-)
diff --git a/main/_sources/driver/snowflake.rst.txt
b/main/_sources/driver/snowflake.rst.txt
index 52db3428..784eded8 100644
--- a/main/_sources/driver/snowflake.rst.txt
+++ b/main/_sources/driver/snowflake.rst.txt
@@ -219,6 +219,37 @@ a listing).
# This will open a new browser tab, and block until you log in.
con <- adbc_connection_init(db)
+ .. tab-item:: Go
+ :sync: go
+
+ .. code-block:: go
+
+ import (
+ "context"
+
+ "github.com/apache/arrow-adbc/go/adbc"
+ "github.com/apache/arrow-adbc/go/adbc/driver/snowflake"
+ )
+
+ func main() {
+ var drv snowflake.Driver
+ db, err := drv.NewDatabase(map[string]string{
+ snowflake.OptionAccount: "foobar",
+ snowflake.OptionAuthType:
snowflake.OptionValueAuthExternalBrowser,
+ adbc.OptionKeyUsername: "[email protected]",
+ })
+ if err != nil {
+ // handle error
+ }
+
+ cnxn, err := db.Open(context.Background())
+ if err != nil {
+ // handle error
+ }
+ defer cnxn.Close()
+ }
+
+
Bulk Ingestion
--------------
@@ -391,6 +422,14 @@ These options map 1:1 with the Snowflake `Config object
<https://pkg.go.dev/gith
When ``true``, the ID token is cached in the credential manager. Defaults
to ``true`` on Windows/OSX, ``false`` on Linux.
+``adbc.snowflake.sql.client_option.use_high_precision``
+ When ``true``, fixed-point snowflake columns with the type ``NUMBER``
+ will be returned as ``Decimal128`` type Arrow columns using the precision
+ and scale of the ``NUMBER`` type. When ``false``, ``NUMBER`` columns
+ with a scale of 0 will be returned as ``Int64`` typed Arrow columns and
+ non-zero scaled columns will be returned as ``Float64`` typed Arrow
columns.
+ The default is ``true``.
+
Metadata
--------
diff --git a/main/driver/snowflake.html b/main/driver/snowflake.html
index 5ddbaaf2..79ee2323 100644
--- a/main/driver/snowflake.html
+++ b/main/driver/snowflake.html
@@ -509,6 +509,36 @@ R</label><div class="sd-tab-content docutils">
</pre></div>
</div>
</div>
+<input id="sd-tab-item-10" name="sd-tab-set-2" type="radio">
+</input><label class="sd-tab-label" data-sync-id="go" for="sd-tab-item-10">
+Go</label><div class="sd-tab-content docutils">
+<div class="highlight-go notranslate"><div
class="highlight"><pre><span></span><span class="kn">import</span><span
class="w"> </span><span class="p">(</span>
+<span class="w"> </span><span class="s">"context"</span>
+
+<span class="w"> </span><span
class="s">"github.com/apache/arrow-adbc/go/adbc"</span>
+<span class="w"> </span><span
class="s">"github.com/apache/arrow-adbc/go/adbc/driver/snowflake"</span>
+<span class="p">)</span>
+
+<span class="kd">func</span><span class="w"> </span><span
class="nx">main</span><span class="p">()</span><span class="w"> </span><span
class="p">{</span>
+<span class="w"> </span><span class="kd">var</span><span class="w">
</span><span class="nx">drv</span><span class="w"> </span><span
class="nx">snowflake</span><span class="p">.</span><span
class="nx">Driver</span>
+<span class="w"> </span><span class="nx">db</span><span
class="p">,</span><span class="w"> </span><span class="nx">err</span><span
class="w"> </span><span class="o">:=</span><span class="w"> </span><span
class="nx">drv</span><span class="p">.</span><span
class="nx">NewDatabase</span><span class="p">(</span><span
class="kd">map</span><span class="p">[</span><span
class="kt">string</span><span class="p">]</span><span
class="kt">string</span><span class="p">{</span>
+<span class="w"> </span><span class="nx">snowflake</span><span
class="p">.</span><span class="nx">OptionAccount</span><span
class="p">:</span><span class="w"> </span><span
class="s">"foobar"</span><span class="p">,</span>
+<span class="w"> </span><span class="nx">snowflake</span><span
class="p">.</span><span class="nx">OptionAuthType</span><span
class="p">:</span><span class="w"> </span><span
class="nx">snowflake</span><span class="p">.</span><span
class="nx">OptionValueAuthExternalBrowser</span><span class="p">,</span>
+<span class="w"> </span><span class="nx">adbc</span><span
class="p">.</span><span class="nx">OptionKeyUsername</span><span
class="p">:</span><span class="w"> </span><span
class="s">"[email protected]"</span><span class="p">,</span>
+<span class="w"> </span><span class="p">})</span>
+<span class="w"> </span><span class="k">if</span><span class="w">
</span><span class="nx">err</span><span class="w"> </span><span
class="o">!=</span><span class="w"> </span><span class="kc">nil</span><span
class="w"> </span><span class="p">{</span>
+<span class="w"> </span><span class="c1">// handle error</span>
+<span class="w"> </span><span class="p">}</span>
+
+<span class="w"> </span><span class="nx">cnxn</span><span
class="p">,</span><span class="w"> </span><span class="nx">err</span><span
class="w"> </span><span class="o">:=</span><span class="w"> </span><span
class="nx">db</span><span class="p">.</span><span class="nx">Open</span><span
class="p">(</span><span class="nx">context</span><span class="p">.</span><span
class="nx">Background</span><span class="p">())</span>
+<span class="w"> </span><span class="k">if</span><span class="w">
</span><span class="nx">err</span><span class="w"> </span><span
class="o">!=</span><span class="w"> </span><span class="kc">nil</span><span
class="w"> </span><span class="p">{</span>
+<span class="w"> </span><span class="c1">// handle error</span>
+<span class="w"> </span><span class="p">}</span>
+<span class="w"> </span><span class="k">defer</span><span class="w">
</span><span class="nx">cnxn</span><span class="p">.</span><span
class="nx">Close</span><span class="p">()</span>
+<span class="p">}</span>
+</pre></div>
+</div>
+</div>
</div>
</section>
</section>
@@ -649,6 +679,13 @@ to <code class="docutils literal notranslate"><span
class="pre">true</span></cod
<dt><code class="docutils literal notranslate"><span
class="pre">adbc.snowflake.sql.client_option.store_temp_creds</span></code></dt><dd><p>When
<code class="docutils literal notranslate"><span
class="pre">true</span></code>, the ID token is cached in the credential
manager. Defaults
to <code class="docutils literal notranslate"><span
class="pre">true</span></code> on Windows/OSX, <code class="docutils literal
notranslate"><span class="pre">false</span></code> on Linux.</p>
</dd>
+<dt><code class="docutils literal notranslate"><span
class="pre">adbc.snowflake.sql.client_option.use_high_precision</span></code></dt><dd><p>When
<code class="docutils literal notranslate"><span
class="pre">true</span></code>, fixed-point snowflake columns with the type
<code class="docutils literal notranslate"><span
class="pre">NUMBER</span></code>
+will be returned as <code class="docutils literal notranslate"><span
class="pre">Decimal128</span></code> type Arrow columns using the precision
+and scale of the <code class="docutils literal notranslate"><span
class="pre">NUMBER</span></code> type. When <code class="docutils literal
notranslate"><span class="pre">false</span></code>, <code class="docutils
literal notranslate"><span class="pre">NUMBER</span></code> columns
+with a scale of 0 will be returned as <code class="docutils literal
notranslate"><span class="pre">Int64</span></code> typed Arrow columns and
+non-zero scaled columns will be returned as <code class="docutils literal
notranslate"><span class="pre">Float64</span></code> typed Arrow columns.
+The default is <code class="docutils literal notranslate"><span
class="pre">true</span></code>.</p>
+</dd>
</dl>
</section>
<section id="metadata">
diff --git a/main/r/adbcdrivermanager/pkgdown.yml
b/main/r/adbcdrivermanager/pkgdown.yml
index 5b936ce4..0ab4657a 100644
--- a/main/r/adbcdrivermanager/pkgdown.yml
+++ b/main/r/adbcdrivermanager/pkgdown.yml
@@ -2,5 +2,5 @@ pandoc: 3.1.3
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
-last_built: 2023-10-04T18:28Z
+last_built: 2023-10-04T19:21Z
diff --git a/main/r/adbcdrivermanager/reference/adbc_connection_init.html
b/main/r/adbcdrivermanager/reference/adbc_connection_init.html
index db6d0a9e..96a3da0d 100644
--- a/main/r/adbcdrivermanager/reference/adbc_connection_init.html
+++ b/main/r/adbcdrivermanager/reference/adbc_connection_init.html
@@ -100,8 +100,8 @@ finer-grained control over behaviour at the R
level.</p></dd>
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor"
href="#ref-examples"></a></h2>
<div class="sourceCode"><pre class="sourceCode r"><code><span
class="r-in"><span><span class="va">db</span> <span class="op"><-</span>
<span class="fu"><a
href="adbc_database_init.html">adbc_database_init</a></span><span
class="op">(</span><span class="fu"><a
href="adbc_driver_void.html">adbc_driver_void</a></span><span
class="op">(</span><span class="op">)</span><span
class="op">)</span></span></span>
<span class="r-in"><span><span class="fu">adbc_connection_init</span><span
class="op">(</span><span class="va">db</span><span
class="op">)</span></span></span>
-<span class="r-out co"><span class="r-pr">#></span> <adbc_connection>
<pointer: 0x55d526bac9a0> List of 2</span>
-<span class="r-out co"><span class="r-pr">#></span> $
database:<adbc_database> <pointer: 0x55d524d14750> List of 2</span>
+<span class="r-out co"><span class="r-pr">#></span> <adbc_connection>
<pointer: 0x561dc64b6ed0> List of 2</span>
+<span class="r-out co"><span class="r-pr">#></span> $
database:<adbc_database> <pointer: 0x561dc9d48e60> List of 2</span>
<span class="r-out co"><span class="r-pr">#></span> ..$ driver
:<adbc_driver_void> List of 1</span>
<span class="r-out co"><span class="r-pr">#></span> .. ..$
driver_init_func:Class 'adbc_driver_init_func' <externalptr> </span>
<span class="r-out co"><span class="r-pr">#></span> ..$ options:
list()</span>
diff --git a/main/r/adbcdrivermanager/reference/adbc_database_init.html
b/main/r/adbcdrivermanager/reference/adbc_database_init.html
index 007fb0f0..ad9d8bba 100644
--- a/main/r/adbcdrivermanager/reference/adbc_database_init.html
+++ b/main/r/adbcdrivermanager/reference/adbc_database_init.html
@@ -99,7 +99,7 @@ finer-grained control over behaviour at the R level.</p></dd>
<div class="section level2">
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor"
href="#ref-examples"></a></h2>
<div class="sourceCode"><pre class="sourceCode r"><code><span
class="r-in"><span><span class="fu">adbc_database_init</span><span
class="op">(</span><span class="fu"><a
href="adbc_driver_void.html">adbc_driver_void</a></span><span
class="op">(</span><span class="op">)</span><span
class="op">)</span></span></span>
-<span class="r-out co"><span class="r-pr">#></span> <adbc_database>
<pointer: 0x55d5266e5910> List of 2</span>
+<span class="r-out co"><span class="r-pr">#></span> <adbc_database>
<pointer: 0x561dc95703d0> List of 2</span>
<span class="r-out co"><span class="r-pr">#></span> $ driver
:<adbc_driver_void> List of 1</span>
<span class="r-out co"><span class="r-pr">#></span> ..$
driver_init_func:Class 'adbc_driver_init_func' <externalptr> </span>
<span class="r-out co"><span class="r-pr">#></span> $ options:
list()</span>
diff --git a/main/r/adbcdrivermanager/reference/adbc_statement_init.html
b/main/r/adbcdrivermanager/reference/adbc_statement_init.html
index c74d5dd0..050fb997 100644
--- a/main/r/adbcdrivermanager/reference/adbc_statement_init.html
+++ b/main/r/adbcdrivermanager/reference/adbc_statement_init.html
@@ -101,9 +101,9 @@ finer-grained control over behaviour at the R
level.</p></dd>
<div class="sourceCode"><pre class="sourceCode r"><code><span
class="r-in"><span><span class="va">db</span> <span class="op"><-</span>
<span class="fu"><a
href="adbc_database_init.html">adbc_database_init</a></span><span
class="op">(</span><span class="fu"><a
href="adbc_driver_void.html">adbc_driver_void</a></span><span
class="op">(</span><span class="op">)</span><span
class="op">)</span></span></span>
<span class="r-in"><span><span class="va">con</span> <span
class="op"><-</span> <span class="fu"><a
href="adbc_connection_init.html">adbc_connection_init</a></span><span
class="op">(</span><span class="va">db</span><span
class="op">)</span></span></span>
<span class="r-in"><span><span class="fu">adbc_statement_init</span><span
class="op">(</span><span class="va">con</span><span
class="op">)</span></span></span>
-<span class="r-out co"><span class="r-pr">#></span> <adbc_statement>
<pointer: 0x55d5262971d0> List of 2</span>
-<span class="r-out co"><span class="r-pr">#></span> $
connection:<adbc_connection> <pointer: 0x55d526e3c6c0> List of
2</span>
-<span class="r-out co"><span class="r-pr">#></span> ..$
database:<adbc_database> <pointer: 0x55d526e4e3b0> List of 2</span>
+<span class="r-out co"><span class="r-pr">#></span> <adbc_statement>
<pointer: 0x561dca0eecf0> List of 2</span>
+<span class="r-out co"><span class="r-pr">#></span> $
connection:<adbc_connection> <pointer: 0x561dc97bdbe0> List of
2</span>
+<span class="r-out co"><span class="r-pr">#></span> ..$
database:<adbc_database> <pointer: 0x561dc9888840> List of 2</span>
<span class="r-out co"><span class="r-pr">#></span> .. ..$ driver
:<adbc_driver_void> List of 1</span>
<span class="r-out co"><span class="r-pr">#></span> .. .. ..$
driver_init_func:Class 'adbc_driver_init_func' <externalptr> </span>
<span class="r-out co"><span class="r-pr">#></span> .. ..$ options:
list()</span>
diff --git a/main/r/adbcdrivermanager/search.json
b/main/r/adbcdrivermanager/search.json
index 10bb8e54..12a4bd3d 100644
--- a/main/r/adbcdrivermanager/search.json
+++ b/main/r/adbcdrivermanager/search.json
@@ -1 +1 @@
-[{"path":"/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"Apache
License","title":"Apache License","text":"Version 2.0, January 2004
<http://www.apache.org/licenses/>","code":""},{"path":[]},{"path":"/LICENSE.html","id":"id_1-definitions","dir":"","previous_headings":"Terms
and Conditions for use, reproduction, and distribution","what":"1.
Definitions","title":"Apache License","text":"“License” shall mean terms
conditions use, reproduction, distribution defined Sections [...]
+[{"path":"/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"Apache
License","title":"Apache License","text":"Version 2.0, January 2004
<http://www.apache.org/licenses/>","code":""},{"path":[]},{"path":"/LICENSE.html","id":"id_1-definitions","dir":"","previous_headings":"Terms
and Conditions for use, reproduction, and distribution","what":"1.
Definitions","title":"Apache License","text":"“License” shall mean terms
conditions use, reproduction, distribution defined Sections [...]
diff --git a/main/r/adbcflightsql/pkgdown.yml b/main/r/adbcflightsql/pkgdown.yml
index 5b936ce4..0ab4657a 100644
--- a/main/r/adbcflightsql/pkgdown.yml
+++ b/main/r/adbcflightsql/pkgdown.yml
@@ -2,5 +2,5 @@ pandoc: 3.1.3
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
-last_built: 2023-10-04T18:28Z
+last_built: 2023-10-04T19:21Z
diff --git a/main/r/adbcpostgresql/pkgdown.yml
b/main/r/adbcpostgresql/pkgdown.yml
index 5b936ce4..0ab4657a 100644
--- a/main/r/adbcpostgresql/pkgdown.yml
+++ b/main/r/adbcpostgresql/pkgdown.yml
@@ -2,5 +2,5 @@ pandoc: 3.1.3
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
-last_built: 2023-10-04T18:28Z
+last_built: 2023-10-04T19:21Z
diff --git a/main/r/adbcsnowflake/pkgdown.yml b/main/r/adbcsnowflake/pkgdown.yml
index 5b936ce4..0ab4657a 100644
--- a/main/r/adbcsnowflake/pkgdown.yml
+++ b/main/r/adbcsnowflake/pkgdown.yml
@@ -2,5 +2,5 @@ pandoc: 3.1.3
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
-last_built: 2023-10-04T18:28Z
+last_built: 2023-10-04T19:21Z
diff --git a/main/r/adbcsqlite/pkgdown.yml b/main/r/adbcsqlite/pkgdown.yml
index 5b936ce4..0ab4657a 100644
--- a/main/r/adbcsqlite/pkgdown.yml
+++ b/main/r/adbcsqlite/pkgdown.yml
@@ -2,5 +2,5 @@ pandoc: 3.1.3
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
-last_built: 2023-10-04T18:28Z
+last_built: 2023-10-04T19:21Z
diff --git a/main/searchindex.js b/main/searchindex.js
index e9e9f553..3178e787 100644
--- a/main/searchindex.js
+++ b/main/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["cpp/api/adbc", "cpp/api/adbc_driver_manager",
"cpp/api/index", "cpp/concurrency", "cpp/driver_manager", "cpp/index",
"cpp/quickstart", "development/contributing", "development/nightly",
"development/releasing", "driver/duckdb", "driver/flight_sql",
"driver/installation", "driver/jdbc", "driver/postgresql", "driver/snowflake",
"driver/sqlite", "driver/status", "faq", "format/comparison",
"format/specification", "format/versioning", "index", "java/index", "py [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["cpp/api/adbc", "cpp/api/adbc_driver_manager",
"cpp/api/index", "cpp/concurrency", "cpp/driver_manager", "cpp/index",
"cpp/quickstart", "development/contributing", "development/nightly",
"development/releasing", "driver/duckdb", "driver/flight_sql",
"driver/installation", "driver/jdbc", "driver/postgresql", "driver/snowflake",
"driver/sqlite", "driver/status", "faq", "format/comparison",
"format/specification", "format/versioning", "index", "java/index", "py [...]
\ No newline at end of file