Description Usage Arguments Value See Also Examples
dbSendQuery
method only submits and synchronously executes
the SQL query to the database engine. It does _not_ extract any
records - for that you need to use the ‘dbFetch()’ method, and
then you must call ‘dbClearResult()’ when you finish fetching the
records you need. For interactive use, you should almost always
prefer dbGetQuery
1 | dbSendQuery( conn, statement, ..., list=NULL, async=FALSE )
|
conn |
A MonetDB.R database connection. Created using |
statement |
A SQL statement to be sent to the database, e.g. 'START TRANSACTION' or 'COMMIT'. |
... |
Parameters to be bound to '?' characters in the query, similar to JDBC. |
list |
Parameters to be bound to '?' characters in the query as a list, similar to JDBC. |
async |
Behave like |
Returns MonetDBResult
if the query was successful.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# connect to MonetDB
conn <- dbConnect(MonetDB.R(), "monetdb://localhost/acs")
# start a transaction
dbSendQuery(conn, 'START TRANSACTION')
# commit the transaction
dbSendQuery(conn, 'COMMIT')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.