File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,6 @@ impl Builder {
154
154
where
155
155
T : Into < String > ,
156
156
{
157
- self . method = Method :: GET ;
158
157
self . queries . push ( ( "select" . to_string ( ) , columns. into ( ) ) ) ;
159
158
self
160
159
}
@@ -548,8 +547,8 @@ impl Builder {
548
547
self
549
548
}
550
549
551
- /// Executes the PostgREST request.
552
- pub async fn execute ( mut self ) -> Result < Response , Error > {
550
+ /// Build the PostgREST request.
551
+ pub fn build ( mut self ) -> reqwest :: RequestBuilder {
553
552
if let Some ( schema) = self . schema {
554
553
let key = match self . method {
555
554
Method :: GET | Method :: HEAD => "Accept-Profile" ,
@@ -570,8 +569,11 @@ impl Builder {
570
569
. headers ( self . headers )
571
570
. query ( & self . queries )
572
571
. body ( self . body . unwrap_or_default ( ) )
573
- . send ( )
574
- . await
572
+ }
573
+
574
+ /// Executes the PostgREST request.
575
+ pub async fn execute ( self ) -> Result < Response , Error > {
576
+ self . build ( ) . send ( ) . await
575
577
}
576
578
}
577
579
You can’t perform that action at this time.
0 commit comments