mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 04:56:00 +00:00
db deploy fixes
This commit is contained in:
@@ -511,3 +511,13 @@ export function safeFormatDate(date) {
|
||||
return date?.toString();
|
||||
}
|
||||
}
|
||||
|
||||
export function getLimitedQuery(sql: string): string {
|
||||
if (!sql) {
|
||||
return sql;
|
||||
}
|
||||
if (sql.length > 1000) {
|
||||
return sql.substring(0, 1000) + '...';
|
||||
}
|
||||
return sql;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user