Return the byte position within the query string at which the next token starts.
(&self)
| 1799 | /// Return the byte position within the query string at which the |
| 1800 | /// next token starts. |
| 1801 | fn peek_pos(&self) -> usize { |
| 1802 | match self.tokens.get(self.index) { |
| 1803 | Some(token) => token.offset, |
| 1804 | None => self.sql.len(), |
| 1805 | } |
| 1806 | } |
| 1807 | |
| 1808 | /// Return the byte position within the query string at which the previous |
| 1809 | /// token starts. |
no test coverage detected