Append function to be invoked after the current transaction on DefaultConnectionIdentifier has ended
Append a function to be invoked after the transaction on the specified connection identifier has ended.
Append a function to be invoked after the transaction on the specified connection identifier has ended. The value passed to the function indicates true for success/commit or false for failure/rollback.
Note: the function will only be called when automatic transaction management is in effect, either by executing within the context of a buildLoanWrapper or a DB.use {}
Build a LoanWrapper to pass into S.
Build a LoanWrapper to pass into S.addAround() to make requests for the List of ConnectionIdentifiers transactional for the complete HTTP request
Build a LoanWrapper to pass into S.
Build a LoanWrapper to pass into S.addAround() to make requests for the DefaultConnectionIdentifier transactional for the complete HTTP request
Build a LoanWrapper to pass into S.
Build a LoanWrapper to pass into S.addAround() to make requests for the List of ConnectionIdentifiers transactional for the complete HTTP request
Build a LoanWrapper to pass into S.
Build a LoanWrapper to pass into S.addAround() to make requests for the DefaultConnectionIdentifier transactional for the complete HTTP request
The default reserved words.
The default reserved words.
TODO : Maybe this should be refactored to allow for driver-specific reserved words
Allows you to override the connection manager associated with particular connection identifiers for the duration of the call.
Executes { @code statement } and converts the { @code ResultSet } to model instance { @code T } using { @code f }
can we get a JDBC connection from JNDI?
Executes the given parameterized query string with the given parameters.
Executes the given parameterized query string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.
Executes the given parameterized query string with the given parameters.
Executes the given parameterized query string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.
Prepares the given statement and then passes it to the given function for use.
Prepares the given statement and then passes it to the given function for use. This method represents a loan pattern, and will automatically handle creation and closing of the PreparedStatement.
If the driver supports it, generated keys for the given column names can be retrieved.
Prepares the given statement and then passes it to the given function for use.
Prepares the given statement and then passes it to the given function for use. This method represents a loan pattern, and will automatically handle creation and closing of the PreparedStatement.
If the driver supports it, generated keys for the given column indices can be retrieved.
Prepares the given statement and then passes it to the given function for use.
Prepares the given statement and then passes it to the given function for use. This method represents a loan pattern, and will automatically handle creation and closing of the PreparedStatement.
Retrieval of generated keys is controlled with the autokeys parameter, corresponding to the constants defined on java.sql.Statement: RETURN_GENERATED_KEYS or NO_GENERATED_KEYS
Prepares the given statement and then passes it to the given function for use.
Prepares the given statement and then passes it to the given function for use. This method represents a loan pattern, and will automatically handle creation and closing of the PreparedStatement.
queryCollector can be used to collect all statements executed in a single request when passed to addLogFunc
queryCollector can be used to collect all statements executed in a single request when passed to addLogFunc
Use S.queryLog to get the list of (statement, duration) entries or set an analyzer function using S.addAnalyzer
The SQL reserved words.
The SQL reserved words. These words will be changed if they are used for column or table names.
Executes the given parameterized query string with the given parameters.
Executes the given parameterized query string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.
Executes the given parameterized query string with the given parameters.
Executes the given parameterized query string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.
Executes the given parameterized update string with the given parameters.
Executes the given parameterized update string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.
Executes the given parameterized update string with the given parameters.
Executes the given parameterized update string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.
Executes function { @code f } with the connection named { @code name }.
Executes function { @code f } with the connection named { @code name }. Releases the connection before returning.
Only use within a stateful request
If you need to change some of the reserved word, you can supply your own set in Boot.
If you need to change some of the reserved word, you can supply your own set in Boot.scala: DB.userReservedWords = Full(Set("foo", "bar"))
Append a function to be invoked after the transaction has ended for the given connection identifier
Append a function to be invoked after the transaction has ended for the given connection identifier
(Since version 2.4) Use appendPostTransaction (name, {committed => ...})
perform this function after transaction has ended.
perform this function after transaction has ended. This is helpful for sending messages to Actors after we know a transaction has been either committed or rolled back
(Since version 2.4) Use appendPostTransaction {committed => ...}