Skip to content

Commit 5db8eac

Browse files
Applied proposed change to documentation
1 parent 86693d3 commit 5db8eac

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/ast/mod.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9107,17 +9107,19 @@ pub enum CreateFunctionBody {
91079107
/// OPTIONS(description="desc");
91089108
/// ```
91099109
///
9110-
/// For PostgreSQL C functions with object file and link symbol:
9111-
/// ```sql
9112-
/// CREATE FUNCTION cas_in(input cstring) RETURNS cas
9113-
/// AS 'MODULE_PATHNAME', 'cas_in_wrapper'
9114-
/// ```
9115-
///
91169110
/// [BigQuery]: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#syntax_11
9111+
/// [PostgreSQL]: https://www.postgresql.org/docs/current/sql-createfunction.html
91179112
AsBeforeOptions {
9118-
/// The primary expression (object file path for C functions, or regular expression)
9113+
/// The primary expression.
91199114
body: Expr,
9120-
/// Optional link symbol for C language functions
9115+
/// Link symbol if the primary expression contains the name of shared library file.
9116+
///
9117+
/// Example:
9118+
/// ```sql
9119+
/// CREATE FUNCTION cas_in(input cstring) RETURNS cas
9120+
/// AS 'MODULE_PATHNAME', 'cas_in_wrapper'
9121+
/// ```
9122+
/// [PostgreSQL]: https://www.postgresql.org/docs/current/sql-createfunction.html
91219123
link_symbol: Option<Expr>,
91229124
},
91239125
/// A function body expression using the 'AS' keyword and shows up

0 commit comments

Comments
 (0)