From cc9e5a29bc22dff72ed687a05105e939ddb09232 Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Mon, 29 May 2023 09:35:54 +0100 Subject: [PATCH 1/3] feat!: Update to SDK V3 Arrow native --- client/client.go | 6 +- client/resolvers.go | 2 +- client/testing.go | 6 +- client/transformers.go | 11 ++- go.mod | 50 +++++++--- go.sum | 101 ++++++++++++++------- main.go | 2 +- plugin/plugin.go | 4 +- resources/account_balances.go | 15 ++- resources/account_balances_test.go | 5 +- resources/auths.go | 15 ++- resources/auths_test.go | 5 +- resources/identity.go | 15 ++- resources/institutions.go | 4 +- resources/institutions_test.go | 5 +- resources/investments_holdings.go | 15 ++- resources/investments_holdings_test.go | 5 +- resources/investments_transactions.go | 15 ++- resources/investments_transactions_test.go | 5 +- resources/liabilities.go | 15 ++- resources/liabilities_test.go | 5 +- resources/transactions.go | 4 +- resources/transactions_test.go | 5 +- resources/wallets.go | 4 +- resources/wallets_test.go | 5 +- 25 files changed, 187 insertions(+), 137 deletions(-) diff --git a/client/client.go b/client/client.go index c53e705..75a13c8 100644 --- a/client/client.go +++ b/client/client.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - "github.com/cloudquery/plugin-sdk/plugins/source" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/specs" + "github.com/cloudquery/plugin-pb-go/specs" + "github.com/cloudquery/plugin-sdk/v3/plugins/source" + "github.com/cloudquery/plugin-sdk/v3/schema" "github.com/hashicorp/go-retryablehttp" "github.com/plaid/plaid-go/v10/plaid" "github.com/rs/zerolog" diff --git a/client/resolvers.go b/client/resolvers.go index 48ba439..e1678bd 100644 --- a/client/resolvers.go +++ b/client/resolvers.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/cloudquery/plugin-sdk/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" "github.com/plaid/plaid-go/v10/plaid" "github.com/thoas/go-funk" ) diff --git a/client/testing.go b/client/testing.go index a778253..39dc10b 100644 --- a/client/testing.go +++ b/client/testing.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/cloudquery/plugin-sdk/plugins/source" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/specs" + "github.com/cloudquery/plugin-pb-go/specs" + "github.com/cloudquery/plugin-sdk/v3/plugins/source" + "github.com/cloudquery/plugin-sdk/v3/schema" "github.com/plaid/plaid-go/v10/plaid" "github.com/rs/zerolog" ) diff --git a/client/transformers.go b/client/transformers.go index 11247b4..e03750c 100644 --- a/client/transformers.go +++ b/client/transformers.go @@ -3,17 +3,18 @@ package client import ( "reflect" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) -func typeTransformer(field reflect.StructField) (schema.ValueType, error) { +func typeTransformer(field reflect.StructField) (arrow.DataType, error) { switch reflect.New(field.Type).Elem().Interface().(type) { case plaid.NullableTime: - return schema.TypeTimestamp, nil + return arrow.FixedWidthTypes.Timestamp_us, nil default: - return schema.TypeInvalid, nil + return nil, nil } } diff --git a/go.mod b/go.mod index d31e9aa..ed68da3 100644 --- a/go.mod +++ b/go.mod @@ -3,36 +3,60 @@ module github.com/cloudquery/cq-source-plaid go 1.19 require ( - github.com/cloudquery/plugin-sdk v1.28.0 + github.com/cloudquery/plugin-pb-go v1.0.8 + github.com/cloudquery/plugin-sdk/v3 v3.6.7 github.com/hashicorp/go-retryablehttp v0.7.2 github.com/plaid/plaid-go/v10 v10.3.0 - github.com/rs/zerolog v1.28.0 + github.com/rs/zerolog v1.29.0 github.com/thoas/go-funk v0.9.3 - golang.org/x/exp v0.0.0-20221230185412-738e83a70c30 + golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53 ) +replace github.com/apache/arrow/go/v13 => github.com/cloudquery/arrow/go/v13 v13.0.0-20230526062000-b3fdc24ed8d6 + require ( - github.com/getsentry/sentry-go v0.16.0 // indirect + github.com/andybalholm/brotli v1.0.5 // indirect + github.com/apache/arrow/go/v13 v13.0.0-20230509040948-de6c3cd2b604 // indirect + github.com/apache/thrift v0.16.0 // indirect + github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/getsentry/sentry-go v0.20.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect - github.com/golang/protobuf v1.5.2 // indirect + github.com/goccy/go-json v0.9.11 // indirect + github.com/golang/protobuf v1.5.3 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/google/flatbuffers v2.0.8+incompatible // indirect github.com/google/uuid v1.3.0 // indirect github.com/grpc-ecosystem/go-grpc-middleware/providers/zerolog/v2 v2.0.0-rc.3 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.0-rc.3 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/klauspost/asmfmt v1.3.2 // indirect + github.com/klauspost/compress v1.16.0 // indirect + github.com/klauspost/cpuid/v2 v2.0.9 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.17 // indirect + github.com/mattn/go-isatty v0.0.18 // indirect + github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 // indirect + github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 // indirect + github.com/pierrec/lz4/v4 v4.1.15 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect github.com/spf13/cast v1.5.0 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/net v0.4.0 // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + github.com/stretchr/testify v1.8.2 // indirect + github.com/zeebo/xxh3 v1.0.2 // indirect + golang.org/x/mod v0.8.0 // indirect + golang.org/x/net v0.9.0 // indirect + golang.org/x/oauth2 v0.4.0 // indirect golang.org/x/sync v0.1.0 // indirect - golang.org/x/sys v0.3.0 // indirect - golang.org/x/text v0.5.0 // indirect + golang.org/x/sys v0.7.0 // indirect + golang.org/x/text v0.9.0 // indirect + golang.org/x/tools v0.6.0 // indirect + golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef // indirect - google.golang.org/grpc v1.51.0 // indirect - google.golang.org/protobuf v1.28.1 // indirect + google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect + google.golang.org/grpc v1.54.0 // indirect + google.golang.org/protobuf v1.30.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index ee19d7f..5c32f42 100644 --- a/go.sum +++ b/go.sum @@ -56,9 +56,13 @@ cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c h1:RGWPOewvKIROun94nF7v2cua9qP+thov/7M50KEoeSU= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= +github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/avast/retry-go/v4 v4.3.1 h1:Mtg11F9PdAIMkMiio2RKcYauoVHjl2aB3zQJJlzD4cE= +github.com/apache/thrift v0.16.0 h1:qEy6UW60iVOlUy+b9ZR0d5WzUWYGOo4HfopoyBaNmoY= +github.com/apache/thrift v0.16.0/go.mod h1:PHK3hniurgQaNMZYaCLEqXKsYK8upmhPbmdP2FXSqgU= github.com/bradleyjkemp/cupaloy/v2 v2.8.0 h1:any4BmKE+jGIaMpnU8YgH/I2LPiLBufr6oMMlVBbn9M= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= @@ -67,8 +71,14 @@ github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWR github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudquery/plugin-sdk v1.28.0 h1:txt4/ahmzlhi9EnvvJw9+9da7k9H5cYA34WXj8iFneY= -github.com/cloudquery/plugin-sdk v1.28.0/go.mod h1:teMPyCON3uPdMsHvzpSiOg+IK2sOR5Tf9dYLreoURzI= +github.com/cloudquery/arrow/go/v13 v13.0.0-20230526062000-b3fdc24ed8d6 h1:pXLimp7SeA1AiRYANtNto/uJu5aMjeXC8zeMS4BV3dg= +github.com/cloudquery/arrow/go/v13 v13.0.0-20230526062000-b3fdc24ed8d6/go.mod h1:/XatdE3kDIBqZKhZ7OBUHwP2jaASDFZHqF4puOWM8po= +github.com/cloudquery/plugin-pb-go v1.0.8 h1:wn3GXhcNItcP+6wUUZuzUFbvdL59liKBO37/izMi+FQ= +github.com/cloudquery/plugin-pb-go v1.0.8/go.mod h1:vAGA27psem7ZZNAY4a3S9TKuA/JDQWstjKcHPJX91Mc= +github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= +github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= +github.com/cloudquery/plugin-sdk/v3 v3.6.7 h1:QJqZGHs+3uN+CE3y9oBOjkchH/v5XisRnVP2X4aj9Wo= +github.com/cloudquery/plugin-sdk/v3 v3.6.7/go.mod h1:+ta6OETfGfzh6nCpCyZi5Er1rj+zvn7m2QR2wokEvA8= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= @@ -95,14 +105,16 @@ github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go. github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= -github.com/getsentry/sentry-go v0.16.0 h1:owk+S+5XcgJLlGR/3+3s6N4d+uKwqYvh/eS0AIMjPWo= -github.com/getsentry/sentry-go v0.16.0/go.mod h1:ZXCloQLj0pG7mja5NK6NPf2V4A88YJ4pNlc2mOHwh6Y= +github.com/getsentry/sentry-go v0.20.0 h1:bwXW98iMRIWxn+4FgPW7vMrjmbym6HblXALmhjHmQaQ= +github.com/getsentry/sentry-go v0.20.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= +github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= @@ -134,11 +146,16 @@ github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/flatbuffers v2.0.8+incompatible h1:ivUb1cGomAB101ZM1T0nOiWz9pSrTMoa9+EiY7igmkM= +github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -208,6 +225,12 @@ github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1 github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/asmfmt v1.3.2 h1:4Ri7ox3EwapiOjCki+hw14RyKk201CN4rzyCJRFLpK4= +github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE= +github.com/klauspost/compress v1.16.0 h1:iULayQNOReoYUe+1qtKOqw9CwJv3aNQu8ivo7lw1HU4= +github.com/klauspost/compress v1.16.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4= +github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -218,11 +241,15 @@ github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxec github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= -github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU= -github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ= +github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= +github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 h1:AMFGa4R4MiIpspGNG7Z948v4n35fFGB3RR3G/ry4FWs= +github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8/go.mod h1:mC1jAcsrzbxHt8iiaC+zU4b1ylILSosueou12R++wfY= +github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 h1:+n/aFZefKZp7spd8DFdX7uMikMLXX4oubIzJF4kv/wI= +github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/pierrec/lz4/v4 v4.1.15 h1:MO0/ucJhngq7299dKLwIMtgTfbkoSPF6AoMYDd8Q4q0= +github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -232,17 +259,15 @@ github.com/plaid/plaid-go/v10 v10.3.0/go.mod h1:hkjp747sQ126UG6rWAqgwoOieXCckiWR github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rivo/uniseg v0.4.3 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.19.0/go.mod h1:IzD0RJ65iWH0w97OQQebJEvTZYvsCUm9WVLWBQrJRjo= -github.com/rs/zerolog v1.28.0 h1:MirSo27VyNi7RJYP3078AA1+Cyzd2GB66qy3aUHvsWY= -github.com/rs/zerolog v1.28.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0= +github.com/rs/zerolog v1.29.0 h1:Zes4hju04hjbvkVkOhdl2HpZa+0PmVwigmo8XoORE5w= +github.com/rs/zerolog v1.29.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/schollz/progressbar/v3 v3.12.2 h1:yLqqqpQNMxGxHY8uEshRihaHWwa0rf0yb7/Zrpgq2C0= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= @@ -252,6 +277,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= @@ -259,7 +285,8 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/thoas/go-funk v0.9.3 h1:7+nAEx3kn5ZJcnDm2Bh23N2yOtweO14bi//dvRtgLpw= github.com/thoas/go-funk v0.9.3/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -267,6 +294,9 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= +github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= +github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= @@ -290,8 +320,8 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20221230185412-738e83a70c30 h1:m9O6OTJ627iFnN2JIWfdqlZCzneRO6EEBsHXI25P8ws= -golang.org/x/exp v0.0.0-20221230185412-738e83a70c30/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= +golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53 h1:5llv2sWeaMSnA3w2kS57ouQQ4pudlXrR0dCgw51QK9o= +golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -317,6 +347,8 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -361,8 +393,8 @@ golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.4.0 h1:Q5QPcMlvfxFTAPV0+07Xz/MpK9NTXu2VDUuy0FeMfaU= -golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= +golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -384,8 +416,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.4.0 h1:NF0gk8LVPg1Ml7SSbGyySuoxdsXitj7TvgvuRxIMc/M= +golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -461,11 +494,11 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ= -golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= +golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.3.0 h1:qoo4akIqOcDME5bhc/NgxUdovd6BSS2uMsVjB56q1xI= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -475,8 +508,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= -golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -533,6 +566,8 @@ golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -540,6 +575,9 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +gonum.org/v1/gonum v0.11.0 h1:f1IJhK4Km5tBJmaiJXtk/PkL4cdVX6J+tGiM187uT5E= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= @@ -666,8 +704,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef h1:uQ2vjV/sHTsWSqdKeLqmwitzgvjMl7o4IdtHwUDXSJY= -google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A= +google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -699,8 +737,8 @@ google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11 google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.51.0 h1:E1eGv1FTqoLIdnBCZufiSHgKjlqG6fKFf6pPWtMTh8U= -google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= +google.golang.org/grpc v1.54.0 h1:EhTqbhiYeixwWQtAEZAxmV9MGqcjEU2mFx52xCzNyag= +google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/grpc/examples v0.0.0-20210424002626-9572fd6faeae/go.mod h1:Ly7ZA/ARzg8fnPU9TyZIxoz33sEUuWX7txiqs8lPTgE= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= @@ -717,8 +755,9 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= diff --git a/main.go b/main.go index 4d7b694..0b10001 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,7 @@ package main import ( "github.com/cloudquery/cq-source-plaid/plugin" - "github.com/cloudquery/plugin-sdk/serve" + "github.com/cloudquery/plugin-sdk/v3/serve" ) func main() { diff --git a/plugin/plugin.go b/plugin/plugin.go index b57edaa..4b12781 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -3,8 +3,8 @@ package plugin import ( "github.com/cloudquery/cq-source-plaid/client" "github.com/cloudquery/cq-source-plaid/resources" - "github.com/cloudquery/plugin-sdk/plugins/source" - "github.com/cloudquery/plugin-sdk/schema" + "github.com/cloudquery/plugin-sdk/v3/plugins/source" + "github.com/cloudquery/plugin-sdk/v3/schema" ) var ( diff --git a/resources/account_balances.go b/resources/account_balances.go index 8606de6..8c874ba 100644 --- a/resources/account_balances.go +++ b/resources/account_balances.go @@ -3,9 +3,10 @@ package resources import ( "context" + "github.com/apache/arrow/go/v13/arrow" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) @@ -16,12 +17,10 @@ func AccountBalances() *schema.Table { Transform: transformers.TransformWithStruct(plaid.AccountsGetResponse{}), Columns: []schema.Column{ { - Name: "item_id", - Type: schema.TypeString, - Resolver: schema.PathResolver("Item.ItemId"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "item_id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("Item.ItemId"), + PrimaryKey: true, }, }, } diff --git a/resources/account_balances_test.go b/resources/account_balances_test.go index 0db2002..eddd4df 100644 --- a/resources/account_balances_test.go +++ b/resources/account_balances_test.go @@ -1,12 +1,11 @@ package resources import ( - "testing" - _ "embed" + "testing" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/auths.go b/resources/auths.go index 37c113c..362fd0c 100644 --- a/resources/auths.go +++ b/resources/auths.go @@ -3,9 +3,10 @@ package resources import ( "context" + "github.com/apache/arrow/go/v13/arrow" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) @@ -16,12 +17,10 @@ func Auths() *schema.Table { Transform: transformers.TransformWithStruct(plaid.AuthGetResponse{}), Columns: []schema.Column{ { - Name: "item_id", - Type: schema.TypeString, - Resolver: schema.PathResolver("Item.ItemId"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "item_id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("Item.ItemId"), + PrimaryKey: true, }, }, } diff --git a/resources/auths_test.go b/resources/auths_test.go index 2a7658f..ab424a5 100644 --- a/resources/auths_test.go +++ b/resources/auths_test.go @@ -1,12 +1,11 @@ package resources import ( - "testing" - _ "embed" + "testing" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/identity.go b/resources/identity.go index 22e4ca3..8af23be 100644 --- a/resources/identity.go +++ b/resources/identity.go @@ -3,9 +3,10 @@ package resources import ( "context" + "github.com/apache/arrow/go/v13/arrow" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) @@ -16,12 +17,10 @@ func Identities() *schema.Table { Transform: transformers.TransformWithStruct(plaid.IdentityGetResponse{}), Columns: []schema.Column{ { - Name: "item_id", - Type: schema.TypeString, - Resolver: schema.PathResolver("Item.ItemId"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "item_id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("Item.ItemId"), + PrimaryKey: true, }, }, } diff --git a/resources/institutions.go b/resources/institutions.go index 94ead04..6b71196 100644 --- a/resources/institutions.go +++ b/resources/institutions.go @@ -4,8 +4,8 @@ import ( "context" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/institutions_test.go b/resources/institutions_test.go index 15f2a4a..0f151fd 100644 --- a/resources/institutions_test.go +++ b/resources/institutions_test.go @@ -1,12 +1,11 @@ package resources import ( - "testing" - _ "embed" + "testing" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/investments_holdings.go b/resources/investments_holdings.go index c256da1..bb4c4b5 100644 --- a/resources/investments_holdings.go +++ b/resources/investments_holdings.go @@ -3,9 +3,10 @@ package resources import ( "context" + "github.com/apache/arrow/go/v13/arrow" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) @@ -16,12 +17,10 @@ func InvestmentsHoldings() *schema.Table { Transform: transformers.TransformWithStruct(plaid.InvestmentsHoldingsGetResponse{}), Columns: []schema.Column{ { - Name: "item_id", - Type: schema.TypeString, - Resolver: schema.PathResolver("Item.ItemId"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "item_id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("Item.ItemId"), + PrimaryKey: true, }, }, } diff --git a/resources/investments_holdings_test.go b/resources/investments_holdings_test.go index 48f1419..b1e04b9 100644 --- a/resources/investments_holdings_test.go +++ b/resources/investments_holdings_test.go @@ -1,12 +1,11 @@ package resources import ( - "testing" - _ "embed" + "testing" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/investments_transactions.go b/resources/investments_transactions.go index 085f8a6..498128c 100644 --- a/resources/investments_transactions.go +++ b/resources/investments_transactions.go @@ -4,9 +4,10 @@ import ( "context" "time" + "github.com/apache/arrow/go/v13/arrow" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) @@ -17,12 +18,10 @@ func InvestmentsTransactions() *schema.Table { Transform: transformers.TransformWithStruct(plaid.InvestmentsTransactionsGetResponse{}), Columns: []schema.Column{ { - Name: "item_id", - Type: schema.TypeString, - Resolver: schema.PathResolver("Item.ItemId"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "item_id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("Item.ItemId"), + PrimaryKey: true, }, }, } diff --git a/resources/investments_transactions_test.go b/resources/investments_transactions_test.go index c97429e..a27af70 100644 --- a/resources/investments_transactions_test.go +++ b/resources/investments_transactions_test.go @@ -1,12 +1,11 @@ package resources import ( - "testing" - _ "embed" + "testing" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/liabilities.go b/resources/liabilities.go index 7b72308..3d5e05e 100644 --- a/resources/liabilities.go +++ b/resources/liabilities.go @@ -3,9 +3,10 @@ package resources import ( "context" + "github.com/apache/arrow/go/v13/arrow" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) @@ -16,12 +17,10 @@ func Liabilities() *schema.Table { Transform: transformers.TransformWithStruct(plaid.LiabilitiesGetResponse{}), Columns: []schema.Column{ { - Name: "item_id", - Type: schema.TypeString, - Resolver: schema.PathResolver("Item.ItemId"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "item_id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("Item.ItemId"), + PrimaryKey: true, }, }, } diff --git a/resources/liabilities_test.go b/resources/liabilities_test.go index fdf794c..5157e3a 100644 --- a/resources/liabilities_test.go +++ b/resources/liabilities_test.go @@ -1,12 +1,11 @@ package resources import ( - "testing" - _ "embed" + "testing" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/transactions.go b/resources/transactions.go index e833564..ce4ae61 100644 --- a/resources/transactions.go +++ b/resources/transactions.go @@ -4,8 +4,8 @@ import ( "context" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/transactions_test.go b/resources/transactions_test.go index 7cc8ff3..d2629be 100644 --- a/resources/transactions_test.go +++ b/resources/transactions_test.go @@ -1,13 +1,12 @@ package resources import ( + _ "embed" "testing" "time" - _ "embed" - "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/wallets.go b/resources/wallets.go index 16e5717..d3f9362 100644 --- a/resources/wallets.go +++ b/resources/wallets.go @@ -4,8 +4,8 @@ import ( "context" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/schema" - "github.com/cloudquery/plugin-sdk/transformers" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" "github.com/plaid/plaid-go/v10/plaid" ) diff --git a/resources/wallets_test.go b/resources/wallets_test.go index 9072059..1596848 100644 --- a/resources/wallets_test.go +++ b/resources/wallets_test.go @@ -1,12 +1,11 @@ package resources import ( - "testing" - _ "embed" + "testing" "github.com/cloudquery/cq-source-plaid/client" - "github.com/cloudquery/plugin-sdk/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" "github.com/plaid/plaid-go/v10/plaid" ) From 3ca36a8d347ff9ba75e9afb2234c17fbc6e467ca Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Mon, 29 May 2023 09:44:39 +0100 Subject: [PATCH 2/3] make gen --- docs/tables/plaid_account_balances.md | 20 +++--- docs/tables/plaid_auths.md | 22 +++--- docs/tables/plaid_identities.md | 20 +++--- docs/tables/plaid_institutions.md | 36 +++++----- docs/tables/plaid_investments_holdings.md | 24 ++++--- docs/tables/plaid_investments_transactions.md | 26 +++---- docs/tables/plaid_liabilities.md | 22 +++--- docs/tables/plaid_transactions.md | 68 ++++++++++--------- docs/tables/plaid_wallets.md | 20 +++--- 9 files changed, 138 insertions(+), 120 deletions(-) diff --git a/docs/tables/plaid_account_balances.md b/docs/tables/plaid_account_balances.md index e1dd2a6..73ae2ee 100644 --- a/docs/tables/plaid_account_balances.md +++ b/docs/tables/plaid_account_balances.md @@ -1,17 +1,19 @@ # Table: plaid_account_balances +This table shows data for Plaid Account Balances. + The primary key for this table is **item_id**. ## Columns | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|item_id (PK)|String| -|accounts|JSON| -|item|JSON| -|request_id|String| -|additional_properties|JSON| \ No newline at end of file +|_cq_source_name|`utf8`| +|_cq_sync_time|`timestamp[us, tz=UTC]`| +|_cq_id|`uuid`| +|_cq_parent_id|`uuid`| +|item_id (PK)|`utf8`| +|accounts|`json`| +|item|`json`| +|request_id|`utf8`| +|additional_properties|`json`| \ No newline at end of file diff --git a/docs/tables/plaid_auths.md b/docs/tables/plaid_auths.md index f2497cd..bad532c 100644 --- a/docs/tables/plaid_auths.md +++ b/docs/tables/plaid_auths.md @@ -1,18 +1,20 @@ # Table: plaid_auths +This table shows data for Plaid Auths. + The primary key for this table is **item_id**. ## Columns | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|item_id (PK)|String| -|accounts|JSON| -|numbers|JSON| -|item|JSON| -|request_id|String| -|additional_properties|JSON| \ No newline at end of file +|_cq_source_name|`utf8`| +|_cq_sync_time|`timestamp[us, tz=UTC]`| +|_cq_id|`uuid`| +|_cq_parent_id|`uuid`| +|item_id (PK)|`utf8`| +|accounts|`json`| +|numbers|`json`| +|item|`json`| +|request_id|`utf8`| +|additional_properties|`json`| \ No newline at end of file diff --git a/docs/tables/plaid_identities.md b/docs/tables/plaid_identities.md index 20b2271..418af8f 100644 --- a/docs/tables/plaid_identities.md +++ b/docs/tables/plaid_identities.md @@ -1,17 +1,19 @@ # Table: plaid_identities +This table shows data for Plaid Identities. + The primary key for this table is **item_id**. ## Columns | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|item_id (PK)|String| -|accounts|JSON| -|item|JSON| -|request_id|String| -|additional_properties|JSON| \ No newline at end of file +|_cq_source_name|`utf8`| +|_cq_sync_time|`timestamp[us, tz=UTC]`| +|_cq_id|`uuid`| +|_cq_parent_id|`uuid`| +|item_id (PK)|`utf8`| +|accounts|`json`| +|item|`json`| +|request_id|`utf8`| +|additional_properties|`json`| \ No newline at end of file diff --git a/docs/tables/plaid_institutions.md b/docs/tables/plaid_institutions.md index 6d57ff3..802ce45 100644 --- a/docs/tables/plaid_institutions.md +++ b/docs/tables/plaid_institutions.md @@ -1,25 +1,27 @@ # Table: plaid_institutions +This table shows data for Plaid Institutions. + The primary key for this table is **institution_id**. ## Columns | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|institution_id (PK)|String| -|name|String| -|products|StringArray| -|country_codes|StringArray| -|url|JSON| -|primary_color|JSON| -|logo|JSON| -|routing_numbers|StringArray| -|oauth|Bool| -|status|JSON| -|payment_initiation_metadata|JSON| -|auth_metadata|JSON| -|additional_properties|JSON| \ No newline at end of file +|_cq_source_name|`utf8`| +|_cq_sync_time|`timestamp[us, tz=UTC]`| +|_cq_id|`uuid`| +|_cq_parent_id|`uuid`| +|institution_id (PK)|`utf8`| +|name|`utf8`| +|products|`list`| +|country_codes|`list`| +|url|`json`| +|primary_color|`json`| +|logo|`json`| +|routing_numbers|`list`| +|oauth|`bool`| +|status|`json`| +|payment_initiation_metadata|`json`| +|auth_metadata|`json`| +|additional_properties|`json`| \ No newline at end of file diff --git a/docs/tables/plaid_investments_holdings.md b/docs/tables/plaid_investments_holdings.md index d3bebd2..ba84e91 100644 --- a/docs/tables/plaid_investments_holdings.md +++ b/docs/tables/plaid_investments_holdings.md @@ -1,19 +1,21 @@ # Table: plaid_investments_holdings +This table shows data for Plaid Investments Holdings. + The primary key for this table is **item_id**. ## Columns | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|item_id (PK)|String| -|accounts|JSON| -|holdings|JSON| -|securities|JSON| -|item|JSON| -|request_id|String| -|additional_properties|JSON| \ No newline at end of file +|_cq_source_name|`utf8`| +|_cq_sync_time|`timestamp[us, tz=UTC]`| +|_cq_id|`uuid`| +|_cq_parent_id|`uuid`| +|item_id (PK)|`utf8`| +|accounts|`json`| +|holdings|`json`| +|securities|`json`| +|item|`json`| +|request_id|`utf8`| +|additional_properties|`json`| \ No newline at end of file diff --git a/docs/tables/plaid_investments_transactions.md b/docs/tables/plaid_investments_transactions.md index 7454750..7caa0af 100644 --- a/docs/tables/plaid_investments_transactions.md +++ b/docs/tables/plaid_investments_transactions.md @@ -1,20 +1,22 @@ # Table: plaid_investments_transactions +This table shows data for Plaid Investments Transactions. + The primary key for this table is **item_id**. ## Columns | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|item_id (PK)|String| -|item|JSON| -|accounts|JSON| -|securities|JSON| -|investment_transactions|JSON| -|total_investment_transactions|Int| -|request_id|String| -|additional_properties|JSON| \ No newline at end of file +|_cq_source_name|`utf8`| +|_cq_sync_time|`timestamp[us, tz=UTC]`| +|_cq_id|`uuid`| +|_cq_parent_id|`uuid`| +|item_id (PK)|`utf8`| +|item|`json`| +|accounts|`json`| +|securities|`json`| +|investment_transactions|`json`| +|total_investment_transactions|`int64`| +|request_id|`utf8`| +|additional_properties|`json`| \ No newline at end of file diff --git a/docs/tables/plaid_liabilities.md b/docs/tables/plaid_liabilities.md index 89bfb0b..b294a36 100644 --- a/docs/tables/plaid_liabilities.md +++ b/docs/tables/plaid_liabilities.md @@ -1,18 +1,20 @@ # Table: plaid_liabilities +This table shows data for Plaid Liabilities. + The primary key for this table is **item_id**. ## Columns | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|item_id (PK)|String| -|accounts|JSON| -|item|JSON| -|liabilities|JSON| -|request_id|String| -|additional_properties|JSON| \ No newline at end of file +|_cq_source_name|`utf8`| +|_cq_sync_time|`timestamp[us, tz=UTC]`| +|_cq_id|`uuid`| +|_cq_parent_id|`uuid`| +|item_id (PK)|`utf8`| +|accounts|`json`| +|item|`json`| +|liabilities|`json`| +|request_id|`utf8`| +|additional_properties|`json`| \ No newline at end of file diff --git a/docs/tables/plaid_transactions.md b/docs/tables/plaid_transactions.md index 6964019..133628e 100644 --- a/docs/tables/plaid_transactions.md +++ b/docs/tables/plaid_transactions.md @@ -1,41 +1,43 @@ # Table: plaid_transactions +This table shows data for Plaid Transactions. + The composite primary key for this table is (**transaction_type**, **transaction_id**, **_transaction_type**). ## Columns | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|transaction_type (PK)|String| -|pending_transaction_id|JSON| -|category_id|JSON| -|category|StringArray| -|location|JSON| -|payment_meta|JSON| -|account_owner|JSON| -|name|String| -|original_description|JSON| -|account_id|String| -|amount|Float| -|iso_currency_code|JSON| -|unofficial_currency_code|JSON| -|date|String| -|pending|Bool| -|transaction_id (PK)|String| -|merchant_name|JSON| -|logo_url|JSON| -|website|JSON| -|check_number|JSON| -|payment_channel|String| -|authorized_date|JSON| -|authorized_datetime|Timestamp| -|datetime|Timestamp| -|transaction_code|JSON| -|personal_finance_category|JSON| -|personal_finance_category_icon_url|String| -|counterparties|JSON| -|_transaction_type (PK)|String| \ No newline at end of file +|_cq_source_name|`utf8`| +|_cq_sync_time|`timestamp[us, tz=UTC]`| +|_cq_id|`uuid`| +|_cq_parent_id|`uuid`| +|transaction_type (PK)|`utf8`| +|pending_transaction_id|`json`| +|category_id|`json`| +|category|`list`| +|location|`json`| +|payment_meta|`json`| +|account_owner|`json`| +|name|`utf8`| +|original_description|`json`| +|account_id|`utf8`| +|amount|`float64`| +|iso_currency_code|`json`| +|unofficial_currency_code|`json`| +|date|`utf8`| +|pending|`bool`| +|transaction_id (PK)|`utf8`| +|merchant_name|`json`| +|logo_url|`json`| +|website|`json`| +|check_number|`json`| +|payment_channel|`utf8`| +|authorized_date|`json`| +|authorized_datetime|`timestamp[us, tz=UTC]`| +|datetime|`timestamp[us, tz=UTC]`| +|transaction_code|`json`| +|personal_finance_category|`json`| +|personal_finance_category_icon_url|`utf8`| +|counterparties|`json`| +|_transaction_type (PK)|`utf8`| \ No newline at end of file diff --git a/docs/tables/plaid_wallets.md b/docs/tables/plaid_wallets.md index e44a488..65448c7 100644 --- a/docs/tables/plaid_wallets.md +++ b/docs/tables/plaid_wallets.md @@ -1,17 +1,19 @@ # Table: plaid_wallets +This table shows data for Plaid Wallets. + The primary key for this table is **wallet_id**. ## Columns | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|wallet_id (PK)|String| -|balance|JSON| -|numbers|JSON| -|recipient_id|String| -|additional_properties|JSON| \ No newline at end of file +|_cq_source_name|`utf8`| +|_cq_sync_time|`timestamp[us, tz=UTC]`| +|_cq_id|`uuid`| +|_cq_parent_id|`uuid`| +|wallet_id (PK)|`utf8`| +|balance|`json`| +|numbers|`json`| +|recipient_id|`utf8`| +|additional_properties|`json`| \ No newline at end of file From 7c3b9307e948aaf95f45b1c7dd8feeb2c86018ac Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Mon, 29 May 2023 09:50:45 +0100 Subject: [PATCH 3/3] go mod tidy --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index ed68da3..b774091 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/cloudquery/cq-source-plaid go 1.19 require ( + github.com/apache/arrow/go/v13 v13.0.0-20230509040948-de6c3cd2b604 github.com/cloudquery/plugin-pb-go v1.0.8 github.com/cloudquery/plugin-sdk/v3 v3.6.7 github.com/hashicorp/go-retryablehttp v0.7.2 @@ -16,7 +17,6 @@ replace github.com/apache/arrow/go/v13 => github.com/cloudquery/arrow/go/v13 v13 require ( github.com/andybalholm/brotli v1.0.5 // indirect - github.com/apache/arrow/go/v13 v13.0.0-20230509040948-de6c3cd2b604 // indirect github.com/apache/thrift v0.16.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect