|
|
@@ -0,0 +1,21 @@
|
|
|
+package clause
|
|
|
+
|
|
|
+type CommonClause struct {
|
|
|
+ clause string
|
|
|
+ args []any
|
|
|
+}
|
|
|
+
|
|
|
+func NewCommonClause(clause string, args ...any) CommonClause {
|
|
|
+ return CommonClause{
|
|
|
+ clause: clause,
|
|
|
+ args: args,
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (clause CommonClause) Clause() (string, error) {
|
|
|
+ return string(clause.clause + "\n"), nil
|
|
|
+}
|
|
|
+
|
|
|
+func (clause CommonClause) Args() []any {
|
|
|
+ return clause.args
|
|
|
+}
|