Skip to content

Commit

Permalink
add mention that function calls work everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
koskimas committed Sep 28, 2023
1 parent 3a9d03f commit 0982d61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion site/docs/examples/SELECT/0060-function-calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ title: 'Function calls'

# Function calls

This example uses the `fn` module to select some aggregates:
This example shows how to create function calls. These examples also work in any
other place (`where` calls, updates, inserts etc.). The only difference is that you
leave out the alias (the `as` call) if you use these in any other place than `select`.

import {
Playground,
Expand Down
4 changes: 3 additions & 1 deletion src/query-builder/function-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ import { Selectable } from '../util/column-type.js'
*
* <!-- siteExample("select", "Function calls", 60) -->
*
* This example uses the `fn` module to select some aggregates:
* This example shows how to create function calls. These examples also work in any
* other place (`where` calls, updates, inserts etc.). The only difference is that you
* leave out the alias (the `as` call) if you use these in any other place than `select`.
*
* ```ts
* import { sql } from 'kysely'
Expand Down

1 comment on commit 0982d61

@vercel
Copy link

@vercel vercel bot commented on 0982d61 Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kysely – ./

kysely-git-master-kysely-team.vercel.app
kysely-kysely-team.vercel.app
www.kysely.dev
kysely.dev

Please sign in to comment.