name
Talks about:
frontmatter, and sql
The name of the SQL statement
Configuration Options
Option: ‘yourSpecialName’
In case you use the name option, YoSQL will use the supplied value as a method name
package com.example.persistence;
public class SomeRepository {
public void yourSpecialName() {
// ... some code
}
// ... rest of generated code
}
Related Options
Also in this group: annotations , catchAndRethrow , createConnection , description , executeBatch , executeOnce , generateConnectionOverloads , generateResultRowType , parameters , repository , resultRowColumns , resultRowConverter , resultRowType , returningMode , throwOnMultipleResults , type , validateSchema , vendor , writesReturnUpdateCount .
Front Matter
In order to configure this option, place the following code in the front matter of your SQL statement:
-- name: configValue
SELECT something
FROM your_database_schema
WHERE some_column = :some_value