sqlc-dev/sqlc

Support for RLIKE REGEX

lil5 opened this issue · 0 comments

lil5 commented

What do you want to change?

Currently if I use the following script it doesn't add the correct function arguments

-- name: BlogListFilterByNameish
SELECT * FROM blog WHERE name RLIKE ?;

Returns:

func (q *Queries) BlogListFilterByNameish(ctx context.Context) ([]Blog, error) {
  ...
}

Expected to be:

func (q *Queries) BlogListFilterByNameish(ctx context.Context, name sql.NullString) ([]Blog, error) {
  ...
}

What database engines need to be changed?

MySQL

What programming language backends need to be changed?

Go