Skip to content

Commit

Permalink
DBIResultArrow
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 25, 2023
1 parent 2fc961d commit db99165
Show file tree
Hide file tree
Showing 56 changed files with 242 additions and 145 deletions.
20 changes: 18 additions & 2 deletions R/07-DBIResultArrow.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
#' @rdname DBIResult-class
#' DBIResultArrow class
#'
#' This virtual class describes the result and state of execution of
#' a DBMS statement (any statement, query or non-query)
#' for returning data as an Arrow object.
#'
#' @section Implementation notes:
#' Individual drivers are free to allow single or multiple
#' active results per connection.
#'
#' The default show method displays a summary of the query using other
#' DBI generics.
#'
#' @name DBIResultArrow-class
#' @docType class
#' @family DBI classes
#' @family DBIResultArrow generics
#' @export
setClass("DBIResultArrow", contains = c("DBIObject", "VIRTUAL"))

#' @rdname DBIResult-class
#' @rdname DBIResultArrow-class
#' @export
setClass("DBIResultArrowDefault",
contains = "DBIResultArrow",
Expand Down
1 change: 1 addition & 0 deletions R/15-dbBind.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
#' For `dbBindArrow()`, values as a nanoarrow stream,
#' with one column per query parameter.
#' @family DBIResult generics
#' @family DBIResultArrow generics
#' @family data retrieval generics
#' @family command execution generics
#' @export
Expand Down
1 change: 1 addition & 0 deletions R/dbClearResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#' @param res An object inheriting from [DBIResult-class].
#' @param ... Other arguments passed on to methods.
#' @family DBIResult generics
#' @family DBIResultArrow generics
#' @family data retrieval generics
#' @family command execution generics
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/dbFetchArrow.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#' @param ... Other arguments passed on to methods.
#' @seealso Close the result set with [dbClearResult()] as soon as you
#' finish retrieving the records you want.
#' @family DBIResult generics
#' @family DBIResultArrow generics
#' @family data retrieval generics
#' @export
#' @examplesIf requireNamespace("RSQLite", quietly = TRUE) && requireNamespace("nanoarrow", quietly = TRUE)
Expand Down
2 changes: 1 addition & 1 deletion R/dbFetchArrowChunk.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' @param ... Other arguments passed on to methods.
#' @seealso Close the result set with [dbClearResult()] as soon as you
#' finish retrieving the records you want.
#' @family DBIResult generics
#' @family DBIResultArrow generics
#' @family data retrieval generics
#' @export
#' @examplesIf requireNamespace("RSQLite", quietly = TRUE) && requireNamespace("nanoarrow", quietly = TRUE)
Expand Down
1 change: 1 addition & 0 deletions R/dbHasCompleted.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#'
#' @inheritParams dbClearResult
#' @family DBIResult generics
#' @family DBIResultArrow generics
#' @family data retrieval generics
#' @export
#' @examplesIf requireNamespace("RSQLite", quietly = TRUE)
Expand Down
1 change: 1 addition & 0 deletions R/dbIsValid.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#' @family DBIDriver generics
#' @family DBIConnection generics
#' @family DBIResult generics
#' @family DBIResultArrow generics
#' @export
#' @examplesIf requireNamespace("RSQLite", quietly = TRUE)
#' dbIsValid(RSQLite::SQLite())
Expand Down
2 changes: 1 addition & 1 deletion R/dbQuoteIdentifier.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#' @inheritSection DBItest::spec_sql_quote_identifier Failure modes
#' @inheritSection DBItest::spec_sql_quote_identifier Specification
#'
#' @family DBIResult generics
#' @family DBIConnection generics
#' @export
#' @examples
#' # Quoting ensures that arbitrary input is safe for use in a query
Expand Down
2 changes: 1 addition & 1 deletion R/dbUnquoteIdentifier.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#' @inheritSection DBItest::spec_sql_unquote_identifier Failure modes
#' @inheritSection DBItest::spec_sql_unquote_identifier Specification
#'
#' @family DBIResult generics
#' @family DBIConnection generics
#' @export
#' @examples
#' # Unquoting allows to understand the structure of a
Expand Down
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ reference:
- DBIDriver-class
- DBIConnection-class
- DBIResult-class
- DBIResultArrow-class
- DBIConnector-class
- Id-class

Expand Down
5 changes: 4 additions & 1 deletion man/DBIConnection-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/DBIConnector-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/DBIDriver-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/DBIObject-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 4 additions & 9 deletions man/DBIResult-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions man/DBIResultArrow-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/dbAppendTable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/dbAppendTableArrow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions man/dbBind.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions man/dbClearResult.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions man/dbColumnInfo.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/dbCreateTable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/dbCreateTableArrow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit db99165

Please sign in to comment.