fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! added first event

everything upto google done for org + instance
This commit is contained in:
Iraq Jaber
2025-08-05 10:01:49 +01:00
parent b8a526bd03
commit 8fd3a0a4a8
7 changed files with 2401 additions and 213 deletions

View File

@@ -425,10 +425,9 @@ func NewArrayRemoveCol(column string, value interface{}) Column {
func NewArrayIntersectCol(column string, value interface{}) Column {
var arrayType string
switch value.(type) {
case []string, database.TextArray[string]:
arrayType = "TEXT"
//TODO: handle more types if necessary
// TODO: handle more types if necessary
}
return Column{
Name: column,
@@ -598,6 +597,10 @@ type NamespacedCondition func(namespace string) Condition
func NewCond(name string, value interface{}) Condition {
return func(param string) (string, []any) {
nilStrPtr, ok := value.(*string)
if ok && nilStrPtr == nil {
return name + " IS NULL", nil
}
return name + " = " + param, []any{value}
}
}
@@ -659,13 +662,15 @@ type Executer interface {
Exec(string, ...interface{}) (sql.Result, error)
}
type execOption func(*execConfig)
type execConfig struct {
tableName string
type (
execOption func(*execConfig)
execConfig struct {
tableName string
args []interface{}
err error
}
args []interface{}
err error
}
)
type query func(config execConfig) string