Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-988972 adding an example demonstrating how to insert data into VARIANT and OBJECT datatype columns with bind variables #999

Merged
merged 5 commits into from
Dec 12, 2023

Conversation

sfc-gh-dszmolka
Copy link
Contributor

Description

SNOW-988972 adding an example demonstrating how to insert data into VARIANT and OBJECT datatype columns with bind variables

Checklist

  • Code compiles correctly
  • Run make fmt to fix inconsistent formats
  • Run make lint to get lint errors and fix all of them
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

…ARIANT and OBJECT datatype columns with bind variables
@sfc-gh-dszmolka sfc-gh-dszmolka requested a review from a team as a code owner December 11, 2023 14:09
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a4c3557) 82.83% compared to head (b7134b9) 82.83%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #999   +/-   ##
=======================================
  Coverage   82.83%   82.83%           
=======================================
  Files          50       50           
  Lines        9698     9698           
=======================================
  Hits         8033     8033           
  Misses       1665     1665           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cmd/insertvariantobject/Makefile Outdated Show resolved Hide resolved
cmd/insertvariantobject/insertvariantobject.go Outdated Show resolved Hide resolved
cmd/insertvariantobject/insertvariantobject.go Outdated Show resolved Hide resolved
cmd/insertvariantobject/insertvariantobject.go Outdated Show resolved Hide resolved
cmd/insertvariantobject/insertvariantobject.go Outdated Show resolved Hide resolved
cmd/insertvariantobject/insertvariantobject.go Outdated Show resolved Hide resolved
cmd/insertvariantobject/insertvariantobject.go Outdated Show resolved Hide resolved
cmd/insertvariantobject/insertvariantobject.go Outdated Show resolved Hide resolved
cmd/insertvariantobject/insertvariantobject.go Outdated Show resolved Hide resolved
cmd/insertvariantobject/insertvariantobject.go Outdated Show resolved Hide resolved
* minor reword of printing Create table
* adding unique table name
* printing query result type
* adding DROP after last query
* renaming directory to cmd/variant from cmd/insertvariantobject
* adding defer around the DROP TABLE statement
* using db.Conn + context to execute all queries in a single connection instead of connecting separately for each of them
@sfc-gh-dszmolka sfc-gh-dszmolka merged commit 31d7dc2 into master Dec 12, 2023
23 checks passed
@sfc-gh-dszmolka sfc-gh-dszmolka deleted the SNOW-988972-example-insert-variant-object branch December 12, 2023 11:05
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants