sqlc-dev / sqlc

Generate type-safe code from SQL
https://sqlc.dev
MIT License
13.51k stars 810 forks source link

Support for RLIKE REGEX #3673

Open lil5 opened 4 weeks ago

lil5 commented 4 weeks ago

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