From 94134c71ce8cdb4496dd334fa384ac279cce652f Mon Sep 17 00:00:00 2001 From: Andrew Koltyakov Date: Fri, 12 May 2023 10:58:42 -0500 Subject: [PATCH] Add required tables prop --- README.md | 2 ++ cmd/spctl/spec.go | 3 ++- debug/sharepoint.yml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d1ed4b..70d1721 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ spec: path: "koltyakov/sharepoint" version: "v1.7.2" # provide the latest stable version destinations: ["postgresql"] # provide the list of used destinations + tables: ["*"] # required field, a list of tables to sync spec: # Spec is mandatory # This plugin follows idealogy of explicit configuration @@ -305,6 +306,7 @@ spec: path: "koltyakov/sharepoint" version: "v1.7.2" # https://github.com/koltyakov/cq-source-sharepoint/releases destinations: ["sqlite"] + tables: ["*"] spec: auth: strategy: "ondemand" diff --git a/cmd/spctl/spec.go b/cmd/spctl/spec.go index fd76948..67b26da 100644 --- a/cmd/spctl/spec.go +++ b/cmd/spctl/spec.go @@ -37,7 +37,8 @@ spec: registry: ` + s.Registry + ` path: ` + s.Path + ` version: ` + s.Version + ` - destination: ["` + strings.Join(s.Destinations, `", "`) + `"] + destinations: ["` + strings.Join(s.Destinations, `", "`) + `"] + tables: ["*"] spec: ` diff --git a/debug/sharepoint.yml b/debug/sharepoint.yml index a7cde0e..6cf52f8 100644 --- a/debug/sharepoint.yml +++ b/debug/sharepoint.yml @@ -7,6 +7,7 @@ spec: # path: "koltyakov/sharepoint" # version: "v1.5.0" destinations: ["${CQ_DESTINATION}"] + tables: ["*"] spec: auth: # strategy: "addin"