feat: Added concat_ws in frappe.qb
This commit is contained in:
parent
a29d7bbd82
commit
4eabb7129e
1 changed files with 7 additions and 0 deletions
|
|
@ -1,7 +1,14 @@
|
|||
from pypika.functions import *
|
||||
from pypika.terms import Function
|
||||
from frappe.query_builder.utils import ImportMapper, db_type_is
|
||||
from frappe.query_builder.custom import GROUP_CONCAT, STRING_AGG, MATCH, TO_TSVECTOR
|
||||
|
||||
|
||||
class Concat_ws(Function):
|
||||
def __init__(self, *terms, **kwargs):
|
||||
super(Concat_ws, self).__init__("CONCAT_WS", *terms, **kwargs)
|
||||
|
||||
|
||||
GroupConcat = ImportMapper(
|
||||
{
|
||||
db_type_is.MARIADB: GROUP_CONCAT,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue