File tree Expand file tree Collapse file tree
asql-core/src/main/java/me/zort/sqllib/internal/query Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import me .zort .sqllib .api .data .Row ;
1010import me .zort .sqllib .internal .exception .InvalidConnectionInstanceException ;
1111import me .zort .sqllib .internal .exception .NoLinkedConnectionException ;
12+ import me .zort .sqllib .util .Pair ;
13+ import org .jetbrains .annotations .ApiStatus ;
1214import org .jetbrains .annotations .Nullable ;
1315
1416import java .sql .Connection ;
@@ -61,6 +63,7 @@ public PreparedStatement prepare(Connection connection) throws SQLException {
6163 return details .remove (buildQuery ()).prepare (connection );
6264 }
6365
66+ @ ApiStatus .Internal
6467 @ Override
6568 public String buildQuery () {
6669 QueryDetails queryDetails = buildQueryDetails ();
@@ -73,6 +76,7 @@ public String buildQuery() {
7376 return uuid ;
7477 }
7578
79+ @ ApiStatus .Internal
7680 public QueryDetails buildInnerQuery () {
7781 List <QueryNode <?>> children = new ArrayList <>(this .children );
7882 children .sort (Comparator .comparingInt (QueryNode ::getPriority ));
@@ -194,6 +198,10 @@ private void debug(String message) {
194198 }
195199 }
196200
201+ public Pair <String , Object []> toPreparedQuery () {
202+ return getAncestor ().buildQueryDetails ().buildStatementDetails ();
203+ }
204+
197205 public String toString () {
198206 return "QueryNode{details=" + buildQueryDetails ().toString () + "}" ;
199207 }
You can’t perform that action at this time.
0 commit comments