Skip to content

Conversation

sunchanglong
Copy link
Collaborator

  • feat(log): add frequency stat chart
  • feat(log): add query from cell value
  • fix(log): query bug
  • refine(log): preserve table data when editing new query
  • fix(log): support table with out ts column

Comment on lines 208 to +215
if (condition.op === 'not contains') {
val = `-"${val}"`
} else if (condition.op === 'match sequence') {
} else if (condition.op === 'contains') {
val = `"${val}"`
}
return `MATCHES(${condition.field.name},'"${val}"')`
return `MATCHES(${condition.field.name},'${val}')`
}
return `${condition.field.name} ${condition.op} '"${escapeSqlString(condition.value)}"'`
return `${condition.field.name} ${condition.op} '${escapeSqlString(condition.value)}'`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this use switch case?

const columnMeta = getColumnByName(columnName)
if (action === 'copy') {
await navigator.clipboard.writeText(row[columnName])
Message.success('copy success')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is text-copyable.vue appliable here? Then you don't need to send Message.

@sunchanglong sunchanglong merged commit 58efc46 into main Dec 11, 2024
1 check passed
@sunchanglong sunchanglong deleted the feat/synclogs branch December 11, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants