diff --git a/examples/raw-templates/raw_templates.md b/examples/raw-templates/raw_templates.md index 324337c5fc..875c5deddd 100644 --- a/examples/raw-templates/raw_templates.md +++ b/examples/raw-templates/raw_templates.md @@ -4,6 +4,8 @@ Raw template expressions are backtick templates without a tag (such as `string` If you want to control the type of the strings or the interpolations more precisely, you can define an object type that includes the `object:RawTemplate` type and override the relevant field(s) with narrower types. Then, the compiler will statically validate the values against the expected type(s). +A common use case for raw templates is to create SQL queries. + ::: code raw_templates.bal ::: ::: out raw_templates.out ::: @@ -11,3 +13,4 @@ If you want to control the type of the strings or the interpolations more precis ## Related links - [Backtick templates](https://ballerina.io/learn/by-example/backtick-templates/) - [Object type inclusion](https://ballerina.io/learn/by-example/object-type-inclusion/) +- [Database Access - Simple query](https://ballerina.io/learn/by-example/mysql-query-operation/)