File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ package database
37
37
import "database/sql"
38
38
39
39
${ tables
40
+ . filter ( ( table ) => schemas . some ( ( schema ) => schema . name === table . schema ) )
40
41
. flatMap ( ( table ) =>
41
42
generateTableStructsForOperations (
42
43
schemas . find ( ( schema ) => schema . name === table . schema ) ! ,
@@ -49,6 +50,7 @@ ${tables
49
50
. join ( '\n\n' ) }
50
51
51
52
${ views
53
+ . filter ( ( view ) => schemas . some ( ( schema ) => schema . name === view . schema ) )
52
54
. flatMap ( ( view ) =>
53
55
generateTableStructsForOperations (
54
56
schemas . find ( ( schema ) => schema . name === view . schema ) ! ,
@@ -61,6 +63,7 @@ ${views
61
63
. join ( '\n\n' ) }
62
64
63
65
${ materializedViews
66
+ . filter ( ( materializedView ) => schemas . some ( ( schema ) => schema . name === materializedView . schema ) )
64
67
. flatMap ( ( materializedView ) =>
65
68
generateTableStructsForOperations (
66
69
schemas . find ( ( schema ) => schema . name === materializedView . schema ) ! ,
@@ -73,6 +76,7 @@ ${materializedViews
73
76
. join ( '\n\n' ) }
74
77
75
78
${ compositeTypes
79
+ . filter ( ( compositeType ) => schemas . some ( ( schema ) => schema . name === compositeType . schema ) )
76
80
. map ( ( compositeType ) =>
77
81
generateCompositeTypeStruct (
78
82
schemas . find ( ( schema ) => schema . name === compositeType . schema ) ! ,
You can’t perform that action at this time.
0 commit comments