U

24 Messages

 • 

4.8K Points

Friday, May 3rd, 2024 1:55 AM

Is there a way to select certain Database Views in Schema Sync Config?

We want to include database Views as part of the metadata sync. I know there's a configuration rule to include/exclude database views. And you can also set this via API skipview command line set to true or false. However, we don't want to bring in all the database views and want the option to select.

For tables, there's a configuration setting to select tables to Include and Exclude. Will this work for database views?

Is there an API string I can use?

Thanks!

Accepted Solution

143 Messages

 • 

9.8K Points

7 months ago

I tested in the Edge sync (Database / Configuration) and added a test view to the 'Exclude Tables' list and resynchronised. This was a database on a Redshift cluster, the database configuration settings;

- Include Tables >> Yes (*)

- Exclude Tables >> <my view in test>

- Options >> Database Views Included

The result was ... the view was excluded (set to 'Missing from source'). So yeap, looks like that's a pathway. 

(edited)

24 Messages

 • 

4.8K Points

Great! Thanks, I'll try it out and see what happens. 

Update: it worked! 

But I wonder how others deal Assets having "Missing from source" tag? Is there a way to delete them automatically? I see there's a workflow package.  But when I ran it, it just created a task and seem to need manual work (selection and actual deletion).

(edited)

Loading...