Skip to content

Commit a03ac06

Browse files
comments
1 parent b49bd85 commit a03ac06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/scala/com/github/tototoshi/sbt/slick/CodegenPlugin.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ object CodegenPlugin extends sbt.AutoPlugin with PluginDBSupport {
178178
.getTables(None, None, None, Some(tableTypes))
179179
.map (
180180
ts =>
181+
// only include specified tables
182+
// if included is empty, then include all tables
183+
// if included is not empty, then only include the specified tables
181184
(if (included.isEmpty) ts else ts.filter(t => containsTable(included, t)))
185+
// if excluded is not empty, then exclude the specified tables
182186
.filterNot(t => containsTable(excluded, t))
183187
)
184188

0 commit comments

Comments
 (0)