Skip to main content

Complex selections

Instead of basic columns, this example selects more complex SQL expressions. A key thing to note is that you always need to give an alias for the selection expression using the as method. Even though SQL doesn't require this, Kysely needs the name for the types.