quantranhong1999 commented on code in PR #1849:
URL: https://github.com/apache/james-project/pull/1849#discussion_r1426442085


##########
backends-common/postgres/src/main/java/org/apache/james/backends/postgres/PostgresTable.java:
##########
@@ -39,31 +41,60 @@ public interface CreateTableFunction {
 
     @FunctionalInterface
     public interface RequireRowLevelSecurity {
-        PostgresTable supportsRowLevelSecurity(boolean 
rowLevelSecurityEnabled);
+        FinalStage supportsRowLevelSecurity(boolean rowLevelSecurityEnabled);
 
-        default PostgresTable disableRowLevelSecurity() {
+        default FinalStage disableRowLevelSecurity() {
             return supportsRowLevelSecurity(false);
         }
 
-        default PostgresTable supportsRowLevelSecurity() {
+        default FinalStage supportsRowLevelSecurity() {
             return supportsRowLevelSecurity(true);
         }
     }
 
+    public static class FinalStage {
+        private final String tableName;
+        private final boolean supportsRowLevelSecurity;
+        private final Function<DSLContext, DDLQuery> createTableStepFunction;
+        private final ImmutableList.Builder<String> additionalConstraints;

Review Comment:
   > I would split the additionalAlterQueries support into another PR
   
   https://github.com/apache/james-project/pull/1852



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to