mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-30 10:43:06 +08:00
chore: update util functions
This commit is contained in:
3
utils/sql.ts
Normal file
3
utils/sql.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export const checkStatementIsSelect = (statement: string) => {
|
||||
return statement.toUpperCase().trim().startsWith("SELECT");
|
||||
};
|
Reference in New Issue
Block a user