extractStatementType relies on 1st token (split by whitespace) to determine statement kind (select / insert / update / delete), and if not match we fallback to "other"
That won't work well if the statements start with whitespace, e.g. akka-persistence-cassandra journal statements (due to multiline string usage)
Can we consider trimming before calling indexOf(" ")? I'm happy to raise PR, should be small one, if we don't have any concerns
extractStatementTyperelies on 1st token (split by whitespace) to determine statement kind (select / insert / update / delete), and if not match we fallback to "other"That won't work well if the statements start with whitespace, e.g. akka-persistence-cassandra journal statements (due to multiline string usage)
Can we consider trimming before calling
indexOf(" ")? I'm happy to raise PR, should be small one, if we don't have any concerns