You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ql.go
    path of file: ./repos/corteza/server/store/adapters/rdbms/drivers/sqlite
    
    the code of the file until where you have to start completion: package sqlite

import (
	"fmt"
	"regexp"
	"strings"

	"github.com/cortezaproject/corteza/server/store/adapters/rdbm
    
func supportedDateFormatParams(e interface{}) (interface{}, error) {
	le, ok := e.(exp.LiteralExpression)
	if !ok {
		return e, fmt.Errorf("unknown date format")
	}

	var format string
	args := le.Args()
	if len(args) > 0 {
		format = dateFormatReplacer(fmt.Sprintf("%s", args[0]))
	} else {
		return e, fmt.Errorf("date format not found")
	}

	r := regexp.MustCompile(`%(?P<sub>.)`)

	for _, m := range r.FindAllStringSubmatch(format, -1) {
		if len(m) == 0 {
			continue
		}

		if _, ok := supportedSubstitutions[m[1]]; !ok {
			return e, fmt.Errorf("format substitution not supported: %%%s", m[1])
		}
	}

	return format, nil
}