Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Filtering out --include-objects with regexp #204

Closed
mycaule opened this issue Aug 31, 2018 · 2 comments
Closed

Filtering out --include-objects with regexp #204

mycaule opened this issue Aug 31, 2018 · 2 comments

Comments

@mycaule
Copy link

mycaule commented Aug 31, 2018

Hello,

I would like to use the --include-objects like a grep operator.

The usage_guide.md isn't clear on how to achieve this

  --include-objects [ [ ...]]
                        Database objects to include in script.
# generate DDL scripts for objects that contain 'Employee' in their name to stdout
mssql-scripter -S localhost -d AdventureWorks -U sa --include-objects Employee

# generate DDL scripts for the dbo schema and pipe the output to a file
mssql-scripter -S localhost -d AdventureWorks -U sa --include-objects dbo. > ./dboschema.sql

The second example is ok
The first example doesn't show table containing Employee

I would also like to be able to use wildcards like in

# generate DDL scripts for the dbo schema and pipe the output to a file
mssql-scripter -S localhost -d AdventureWorks -U sa --include-objects dbo.PREFIX* > ./dboschema.sql

Thank you.

@mycaule
Copy link
Author

mycaule commented Sep 5, 2018

The answer is no.

@mycaule mycaule closed this as completed Sep 5, 2018
@opensas
Copy link

opensas commented Feb 19, 2019

I've just stumbled upon the same issue: #219 (I noticed it after saving it)

It would be a pretty useful addition

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants