Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
888bd42
chore(DESCRIPTION): Add RJDBC to Suggests
RasmusSkytte Feb 26, 2025
ba32d0e
docs(connection): Restructure the Roxygen docs
RasmusSkytte Oct 9, 2025
ba54b57
feat(get_connection): Add JDBCDriver method
RasmusSkytte Oct 9, 2025
2eabd16
feat(schema_exists): Add Oracle support
RasmusSkytte Oct 10, 2025
5e16063
feat(get_connection): Warn the user that JDBCConnection is assumed to…
RasmusSkytte Oct 16, 2025
112f699
fix(create_logs_if_missing): Remove `catalog` field on Oracle
RasmusSkytte Oct 16, 2025
edc4b73
debug(Oracle): Set `analyze = FALSE` on all `copy_to` calls
RasmusSkytte Oct 16, 2025
f4476e2
feat(getTableSignature): Add Oracle implementation
RasmusSkytte Oct 16, 2025
2bddfd4
feat(DESCRIPTION): Add rJava to Suggests
RasmusSkytte Oct 16, 2025
da8faad
feat(get_schema): Add Oracle implementation
RasmusSkytte Oct 16, 2025
10a38e1
feat(get_tables): Add Oracle implementation
RasmusSkytte Oct 16, 2025
3173e39
feat(oracle): Add method for dbGetRowsAffected
RasmusSkytte Oct 16, 2025
7fc8cdb
feat(oracle): Manually quote identifiers in `dbWriteTable`
RasmusSkytte Oct 16, 2025
628acd1
feat(oracle): Add method for dbQuoteIdentifiers
RasmusSkytte Oct 16, 2025
449e52b
docs: Re-build roxygen documentation
RasmusSkytte Oct 16, 2025
a1a0d48
chore(all-workflows): Disable most workflows while implementing
RasmusSkytte Oct 16, 2025
1c77b82
feat(oracle): Remove ambiguity for `dbExistsTable` dispatch
RasmusSkytte Oct 16, 2025
366962d
feat(oracle): Remove ambiguity for `dbQuoteIdentifier` dispatch
RasmusSkytte Oct 16, 2025
19e590a
ebug(Oracle): Set analyze = FALSE on all copy_to calls 2
RasmusSkytte Oct 16, 2025
83bdb5c
debug(oracle): Check if "IS NOT DISTINCT" works
RasmusSkytte Oct 16, 2025
ade4859
feat(digest_to_checksum): Add Oracle implementaiton
RasmusSkytte Oct 16, 2025
e147396
feat(get_connection): Cast JDBCConnection to Oracle
RasmusSkytte Oct 16, 2025
03e48e3
fix(get_connection): Import the JDBCConnection class
RasmusSkytte Oct 16, 2025
7370b61
fix(get_connection): Remove unused slots from Oracle class coersion
RasmusSkytte Oct 16, 2025
d7e1d22
docs(get_connection): Specify that "JDBCConnection" is experimental
RasmusSkytte Oct 16, 2025
55824e2
f feat(get_connection): Cast JDBCConnection to Oracle
RasmusSkytte Oct 16, 2025
766c422
feat(join_na_sql): Add Oracle implementation
RasmusSkytte Oct 16, 2025
03e01e9
debug test-db_joins
RasmusSkytte Oct 16, 2025
55255ca
debug defer_db_cleanup
RasmusSkytte Oct 16, 2025
d71b745
debug getTableSignature
RasmusSkytte Oct 16, 2025
1b2a067
Revert "debug(oracle): Check if "IS NOT DISTINCT" works"
RasmusSkytte Oct 16, 2025
43d7f12
debug(Oracle): Set analyze = FALSE on all copy_to calls 3
RasmusSkytte Oct 16, 2025
b7148b5
fix(getTableSignature): Use `purrr::map` to get data types
RasmusSkytte Oct 16, 2025
0ec142a
Revert "debug getTableSignature"
RasmusSkytte Oct 16, 2025
66a7cba
debug test-db_joins
RasmusSkytte Oct 16, 2025
5cbb6ed
feat(oracle): Remove ambiguity for `dbQuoteIdentifier` dispatch
RasmusSkytte Oct 16, 2025
be8d757
fix(create_index): Quote identifiers
RasmusSkytte Oct 16, 2025
5d86a24
debug dbCreateTable - Insert method to catch calls
RasmusSkytte Oct 16, 2025
3a8108c
debug db_joins
RasmusSkytte Oct 16, 2025
0212807
debug dbCreateTable
RasmusSkytte Oct 16, 2025
13d8a27
fix(digest_to_checksum): Use `DBI::dbQuoteIdentifier` to over `dbplyr…
RasmusSkytte Oct 16, 2025
8fa2a38
fix(create_table): Ensure `odbc` method for `DBI::sqlCreateTable` is …
RasmusSkytte Oct 16, 2025
d5f5365
WIP
RasmusSkytte Oct 16, 2025
4bcd9a7
fix(getTableSignature): Ensure `odbc` and `RJDBC` methods for `DBI::d…
RasmusSkytte Oct 16, 2025
de2eed8
fix(dbQuoteIdentifier): Change signature
RasmusSkytte Oct 17, 2025
fe9f8e8
debug: Move rJava and RJDBC to Imports
RasmusSkytte Oct 17, 2025
e0c81af
debug get_table
RasmusSkytte Oct 17, 2025
0129a3f
debug oracle - import more methods
RasmusSkytte Oct 17, 2025
1ba22fa
debug oracle - print showMethods
RasmusSkytte Oct 17, 2025
ef25388
debug oracle- remove ambiguity for dbWriteTable dispatch
RasmusSkytte Oct 17, 2025
5abedc4
debug table creation - show chosen methods
RasmusSkytte Oct 17, 2025
d4ffc29
fix backend_oracle - change how classes are merged
RasmusSkytte Oct 17, 2025
d9ebc4a
docs: Re-build roxygen documentation
RasmusSkytte Oct 17, 2025
22ae908
fix backend_oracle - import odbc Oracle class
RasmusSkytte Oct 17, 2025
4c83d59
fix backend_oracle - change how classes are merged
RasmusSkytte Oct 17, 2025
8d1e892
chore: Update Docker specification
RasmusSkytte Oct 17, 2025
65ba997
try different approach
RasmusSkytte Oct 23, 2025
6b063c7
use main branch for workflows
RasmusSkytte Oct 23, 2025
0c9bb41
try different approach
RasmusSkytte Oct 23, 2025
cce2ff8
map dbIsValid
RasmusSkytte Oct 23, 2025
5d879f7
map dbBegin
RasmusSkytte Oct 23, 2025
24eafeb
map dbCommit
RasmusSkytte Oct 23, 2025
5d526c1
Rename class to OracleJdbc
RasmusSkytte Oct 23, 2025
bcfceaa
map dbGetInfo
RasmusSkytte Oct 23, 2025
546a76c
map dbRollback
RasmusSkytte Oct 23, 2025
d85caa8
remove debug info from setup
RasmusSkytte Oct 23, 2025
ad88bcb
Add list of RJDBC maps
RasmusSkytte Oct 23, 2025
8d78bae
map dbSendStatement
RasmusSkytte Oct 23, 2025
325f2cd
set JDBC urll as OracleJdbc servername
RasmusSkytte Oct 23, 2025
2249c11
Try to implement dbGetRowsAffected
RasmusSkytte Oct 23, 2025
85688bc
set JDBC urll as OracleJdbc servername
RasmusSkytte Oct 23, 2025
b5986b5
Try to implement dbGetRowsAffected
RasmusSkytte Oct 23, 2025
f85c463
set JDBC urll as OracleJdbc servername
RasmusSkytte Oct 23, 2025
96dfa8b
debug id.tbl_dbi issue
RasmusSkytte Oct 24, 2025
c1e178e
set JDBC urll as OracleJdbc servername
RasmusSkytte Oct 24, 2025
4382dff
debug id.tbl_dbi issue
RasmusSkytte Oct 24, 2025
02326f9
fix id.tbl_dbi issue
RasmusSkytte Oct 24, 2025
cfe5872
revert debug id.tbl_dbi issue
RasmusSkytte Oct 24, 2025
eda3323
debug type casting
RasmusSkytte Oct 24, 2025
5afc9e3
map db_collect
RasmusSkytte Oct 25, 2025
59e0c48
debug type casting
RasmusSkytte Oct 26, 2025
c630076
debug: Add small workflow to check Oracla data-type issue
RasmusSkytte Nov 5, 2025
7e7f831
fix(OracleJdbc): Set the "lossy" option to `TRUE`
RasmusSkytte Nov 5, 2025
7bdf335
fix(all-workflows): Remove duplicated "backend_exclude"
RasmusSkytte Nov 5, 2025
0d85705
chore: Update pak.lock
RasmusSkytte Nov 5, 2025
933f882
debug: Add small workflow to check Oracla data-type issue
RasmusSkytte Nov 6, 2025
0ad18f4
chore: Update pak.lock
RasmusSkytte Nov 6, 2025
ce7fab6
debug: Add small workflow to check Oracla data-type issue
RasmusSkytte Nov 6, 2025
8216c1a
feat(dbFetch): Add Oracle implementation
RasmusSkytte Nov 6, 2025
c9d147b
debug: Add small workflow to check Oracla data-type issu
RasmusSkytte Nov 6, 2025
bd88374
docs: Re-build roxygen documentation
RasmusSkytte Nov 6, 2025
64fe889
debug: Add small workflow to check Oracla data-type issu
RasmusSkytte Nov 6, 2025
9a38f1f
fix(backend_oracle): Correctly call `id` in dbWriteTable
RasmusSkytte Nov 6, 2025
5beb2b1
feat(get_schema): Add additional Oracle implementation
RasmusSkytte Nov 6, 2025
d4d410f
docs: Re-build roxygen documentation
RasmusSkytte Nov 6, 2025
0e60a14
feat(fetch): Add Oracle implementation
RasmusSkytte Nov 6, 2025
7ad614a
docs: Re-build roxygen documentation
RasmusSkytte Nov 6, 2025
236d52d
debug fetch
RasmusSkytte Nov 6, 2025
135084b
Revert "debug fetch"
RasmusSkytte Nov 6, 2025
a215098
debug: Add small workflow to check Oracla data-type issu
RasmusSkytte Nov 6, 2025
2a8f628
feat(fetch): Implement dev code from RJDBC
RasmusSkytte Nov 6, 2025
e52c4db
feat(OracleJdbcResult): Add new JDBCResult class to prevent conflict
RasmusSkytte Nov 6, 2025
1d90f99
feat(fetch): Implement dev code from RJDBC
RasmusSkytte Nov 6, 2025
e973bf5
docs: Re-build roxygen documentation
RasmusSkytte Nov 6, 2025
dff3b4b
feat(fetch): Implement dev code from RJDBC
RasmusSkytte Nov 6, 2025
201171e
debug: Add small workflow to check Oracla data-type issu
RasmusSkytte Nov 6, 2025
bd17dcb
feat(dbClearResult): Add Oracle implementation
RasmusSkytte Nov 6, 2025
fc08010
docs: Re-build roxygen documentation
RasmusSkytte Nov 6, 2025
6f5ccff
chore: Update pak.lock
RasmusSkytte Nov 10, 2025
97c3748
debug: Add small workflow to check Oracla data-type issu
RasmusSkytte Nov 10, 2025
80103ee
feat(fetch): Implement dev code from RJDBC
RasmusSkytte Nov 10, 2025
c8993b5
debug: disable dbQuoteIdentifier
RasmusSkytte Nov 10, 2025
9b59a8b
Revert "debug: disable dbQuoteIdentifier"
RasmusSkytte Nov 10, 2025
d130778
merge JDBCconnection and Oracle
RasmusSkytte Nov 10, 2025
29fb3d4
remove unused code from setup.R
RasmusSkytte Nov 10, 2025
d9b87ea
fix(Oracle): Don't map dbFetch to rjdc_fetch
RasmusSkytte Nov 11, 2025
eb22e90
debug: _jobjRef_dollar
RasmusSkytte Nov 10, 2025
bebc2dd
chore: Update pak.lock
RasmusSkytte Nov 13, 2025
d270c4d
retrieve posix as strings
RasmusSkytte Nov 13, 2025
24a1b3b
Revert "debug: _jobjRef_dollar"
RasmusSkytte Nov 13, 2025
12ec194
debug: remove half the tests
RasmusSkytte Nov 13, 2025
df96ce3
remove printing statements
RasmusSkytte Nov 13, 2025
36330f7
fix(test-get_tables): Add additional clean-up
RasmusSkytte Nov 13, 2025
a9a8409
debug locks
RasmusSkytte Nov 13, 2025
f98f168
add visible binding to db_collect()
RasmusSkytte Nov 13, 2025
ef7b636
Revert "debug locks"
RasmusSkytte Nov 13, 2025
3c63510
test: Create test for `defer_db_cleanup`
RasmusSkytte Nov 13, 2025
69eb339
debug defer_db_cleanup
RasmusSkytte Nov 13, 2025
a9017e0
debug defer_db_cleanup
RasmusSkytte Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/all-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ jobs:
# We pass information about the triggering event
event_name: ${{ github.event_name }}
run_id: ${{ github.run_id }}
backend_exclude: oracle

# code-coverage creates data bases for the tests. Here you can specify the schemas you need for the workflow
backend_exclude: sqlite,duckdb,postgres,mssql
schemas: test,test.one
check_postgres_logs: false
skip: R-CMD-check,styler,render-readme,pkgdown,update-lockfile,update-cache
secrets: inherit
229 changes: 229 additions & 0 deletions .github/workflows/oracle-reprex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
on:
push


jobs:
code-coverage-oracle:
name: "🧪 Tests: Oracle Database (Experimental)"
runs-on: ubuntu-latest
defaults:
run:
shell: bash

services:
oracledb:
image: gvenzl/oracle-free:latest
env:
APP_USER: "github_ci"
APP_USER_PASSWORD: "github_ci"
ORACLE_PASSWORD: "github_ci"
ports:
- 1521:1521
options: >-
--health-cmd healthcheck.sh
--health-interval 20s
--health-timeout 10s
--health-retries 10

env:
BACKEND: Oracle
BACKEND_DRV: RJDBC::JDBC
BACKEND_ARGS: ''
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- name: 🔧 Set environment variables
run: |
ORACLEHOST=localhost

echo "ORACLEHOST=${ORACLEHOST}" >> $GITHUB_ENV

CONN_ARGS_JSON="{
\"Oracle\": {
\"driverClass\": \"oracle.jdbc.OracleDriver\",
\"classPath\": \"/usr/lib/oracle/ojdbc8.jar\",
\"url\": \"jdbc:oracle:thin:@${ORACLEHOST}:1521/FREEPDB1\",
\"user\": \"github_ci\",
\"password\": \"github_ci\"
}
}"

echo "CONN_ARGS_JSON<<EOF" >> $GITHUB_ENV
echo $CONN_ARGS_JSON >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV


- name: 🔧 Install Oracle JDBC driver
run: |
sudo apt-get update
# Create directory for the driver with sudo
sudo mkdir -p /usr/lib/oracle

# Download the Oracle JDBC driver directly from Maven Central with sudo
sudo curl -o /usr/lib/oracle/ojdbc8.jar https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc8/21.5.0.0/ojdbc8-21.5.0.0.jar

# Verify the driver was downloaded successfully
if sudo test -f "/usr/lib/oracle/ojdbc8.jar"; then
echo "Oracle JDBC driver downloaded successfully"
sudo ls -la /usr/lib/oracle/
# Make the JAR file readable by everyone
sudo chmod 644 /usr/lib/oracle/ojdbc8.jar
else
echo "Failed to download Oracle JDBC driver"
exit 1
fi

- name: 🔧 Set up Oracle JDK
uses: actions/setup-java@v5
with:
distribution: oracle
java-version: 25

- name: 🔧 Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
use-public-rspm: true

- name: 🔧 Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
local::.
any::pak
any::jsonlite
any::rcmdcheck
any::devtools
any::lintr
any::covr
any::roxygen2
any::pkgdown
any::rmarkdown
any::styler
needs: build, check, coverage, roxygen2, lint, website

- name: 🔧 Configure Java for R
run: |
# Create .Rprofile to automatically set Java classpath
echo 'Sys.setenv(JAVA_HOME = Sys.getenv("JAVA_HOME"))' > ~/.Rprofile
echo 'Sys.setenv(CLASSPATH = "/usr/lib/oracle/ojdbc8.jar")' >> ~/.Rprofile

- name: Test Oracle conection
shell: Rscript {0}
run: |
library(RJDBC)

# Print Java version and classpath to debug
print(system("java -version", intern = TRUE))
print(Sys.getenv("CLASSPATH"))
print(Sys.getenv("JAVA_HOME"))

# Initialize the Oracle driver explicitly
drv <- JDBC("oracle.jdbc.OracleDriver", "/usr/lib/oracle/ojdbc8.jar")
print("JDBC driver initialized successfully")


devtools::load_all()
# Try to connect
conn <- tryCatch({
SCDB::get_connection(
drv,
url = "jdbc:oracle:thin:@${{ env.ORACLEHOST }}:1521/FREEPDB1",
user = "github_ci",
password = "github_ci"
)
}, error = function(e) {
print(paste("Connection error:", e$message))
NULL
})

if (!is.null(conn)) {
print("Successfully connected to Oracle!")
}

print("class(conn)")
print(class(conn))

data <- dplyr::rename_with(iris, ~ toupper(gsub(".", "_", .x, fixed = TRUE)))

DBI::dbWriteTable(conn, "IRIS", data)

print(tibble::tibble(DBI::dbReadTable(conn, "IRIS")))

r <- DBI::dbSendQuery(conn, paste0("SELECT * FROM IRIS"))
print("class(r)")
print(class(r))

out <- DBI::fetch(r)
print(tibble::tibble(out))
DBI::dbClearResult(r)


# Start with some clean up
purrr::walk(
c("test.mtcars", "__mtcars", "__mtcars_historical", "test.mtcars_modified", "mtcars_modified",
"test.SCDB_logs", "test.SCDB_logger", "test.SCDB_tmp1", "test.SCDB_tmp2", "test.SCDB_tmp3",
"test.SCDB_t0", "test.SCDB_t1", "test.SCDB_t2"
),
~ if (DBI::dbExistsTable(conn, id(., conn))) DBI::dbRemoveTable(conn, id(., conn))
)

purrr::walk(
c(DBI::Id(schema = "test", table = "one.two"), DBI::Id(schema = "test.one", table = "two")),
~ if (schema_exists(conn, .@name[["schema"]]) && DBI::dbExistsTable(conn, .)) DBI::dbRemoveTable(conn, .)
)

# Copy mtcars to conn
dplyr::copy_to(
conn, mtcars %>% dplyr::mutate(name = rownames(mtcars)),
name = id("test.mtcars", conn),
temporary = FALSE,
overwrite = TRUE,
analyze = FALSE
)

dplyr::copy_to(
conn, mtcars %>% dplyr::mutate(name = rownames(mtcars)),
name = id("__mtcars", conn),
temporary = FALSE,
overwrite = TRUE,
analyze = FALSE
)

dplyr::copy_to(
conn,
mtcars %>%
dplyr::mutate(name = rownames(mtcars)) %>%
digest_to_checksum() %>%
dplyr::mutate(
from_ts = as.POSIXct("2020-01-01 09:00:00"),
until_ts = as.POSIXct(NA)
),
name = id("__mtcars_historical", conn),
temporary = FALSE,
overwrite = TRUE,
analyze = FALSE
)

dplyr::copy_to(
conn,
mtcars %>%
dplyr::mutate(name = rownames(mtcars)) %>%
digest_to_checksum() %>%
dplyr::mutate(
from_ts = as.POSIXct("2020-01-01 09:00:00"),
until_ts = as.POSIXct(NA)
),
name = id("MTCARS", conn),
temporary = FALSE,
overwrite = TRUE,
analyze = FALSE
)

DBI::dbDisconnect(conn)
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Imports:
openssl,
parallelly,
purrr,
rJava,
RJDBC,
rlang,
R6,
stringr,
Expand All @@ -63,9 +65,9 @@ Suggests:
microbenchmark,
odbc,
pak,
pkgdown,
rmarkdown,
roxygen2,
pkgdown,
RPostgres,
RSQLite,
spelling,
Expand Down
43 changes: 43 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ S3method(db_timestamp,duckdb_connection)
S3method(digest_to_checksum,"tbl_Microsoft SQL Server")
S3method(digest_to_checksum,data.frame)
S3method(digest_to_checksum,default)
S3method(digest_to_checksum,tbl_Oracle)
S3method(digest_to_checksum,tbl_PqConnection)
S3method(digest_to_checksum,tbl_duckdb_connection)
S3method(dplyr::anti_join,tbl_sql)
Expand All @@ -26,6 +27,7 @@ S3method(get_catalog,Id)
S3method(get_catalog,default)
S3method(get_catalog,duckdb_connection)
S3method(get_catalog,tbl_dbi)
S3method(get_connection,JDBCDriver)
S3method(get_connection,OdbcDriver)
S3method(get_connection,PqDriver)
S3method(get_connection,SQLiteDriver)
Expand All @@ -34,13 +36,16 @@ S3method(get_connection,duckdb_driver)
S3method(get_schema,"Microsoft SQL Server")
S3method(get_schema,"NULL")
S3method(get_schema,Id)
S3method(get_schema,JDBCConnection)
S3method(get_schema,Oracle)
S3method(get_schema,PqConnection)
S3method(get_schema,SQLiteConnection)
S3method(get_schema,duckdb_connection)
S3method(get_schema,tbl_dbi)
S3method(get_tables,"Microsoft SQL Server")
S3method(get_tables,DBIConnection)
S3method(get_tables,OdbcConnection)
S3method(get_tables,Oracle)
S3method(get_tables,PqConnection)
S3method(get_tables,SQLiteConnection)
S3method(get_tables,duckdb_connection)
Expand All @@ -50,6 +55,7 @@ S3method(id,data.frame)
S3method(id,tbl_dbi)
S3method(interlace,tbl_sql)
S3method(schema_exists,DBIConnection)
S3method(schema_exists,Oracle)
S3method(schema_exists,SQLiteConnection)
S3method(schema_exists,default)
S3method(table_exists,DBIConnection)
Expand All @@ -61,6 +67,7 @@ export(close_connection)
export(create_index)
export(create_logs_if_missing)
export(create_table)
export(db_collect.OracleJdbc)
export(db_timestamp)
export(defer_db_cleanup)
export(digest_to_checksum)
Expand All @@ -81,10 +88,46 @@ export(table_exists)
export(unique_table_name)
export(unlock_table)
export(update_snapshot)
exportMethods(dbBegin)
exportMethods(dbClearResult)
exportMethods(dbCommit)
exportMethods(dbExistsTable)
exportMethods(dbGetInfo)
exportMethods(dbGetRowsAffected)
exportMethods(dbIsValid)
exportMethods(dbQuoteIdentifier)
exportMethods(dbRollback)
exportMethods(dbSendQuery)
exportMethods(dbSendStatement)
exportMethods(dbWriteTable)
exportMethods(fetch)
import(parallelly)
importClassesFrom(DBI,DBIConnection)
importClassesFrom(RJDBC,JDBCConnection)
importClassesFrom(RJDBC,JDBCResult)
importClassesFrom(odbc,Oracle)
importFrom(R6,R6Class)
importFrom(magrittr,"%>%")
importFrom(methods,setGeneric)
importFrom(rJava,.jcall)
importFrom(rlang,":=")
importFrom(rlang,.data)
importMethodsFrom(DBI,dbBegin)
importMethodsFrom(DBI,dbClearResult)
importMethodsFrom(DBI,dbCommit)
importMethodsFrom(DBI,dbExistsTable)
importMethodsFrom(DBI,dbGetInfo)
importMethodsFrom(DBI,dbGetRowsAffected)
importMethodsFrom(DBI,dbIsValid)
importMethodsFrom(DBI,dbQuoteIdentifier)
importMethodsFrom(DBI,dbRollback)
importMethodsFrom(DBI,dbSendQuery)
importMethodsFrom(DBI,dbSendStatement)
importMethodsFrom(DBI,dbWriteTable)
importMethodsFrom(DBI,fetch)
importMethodsFrom(RJDBC,dbDataType)
importMethodsFrom(RJDBC,dbExistsTable)
importMethodsFrom(RJDBC,dbSendQuery)
importMethodsFrom(RJDBC,dbWriteTable)
importMethodsFrom(odbc,dbDataType)
importMethodsFrom(odbc,sqlCreateTable)
6 changes: 4 additions & 2 deletions R/Logger.R
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ Logger <- R6::R6Class(
dest = private$log_conn,
df = patch,
name = unique_table_name("SCDB_logger_patch"),
temporary = TRUE
temporary = TRUE,
analyze = FALSE
)
defer_db_cleanup(patch) # Clean up on exit

Expand Down Expand Up @@ -341,7 +342,8 @@ Logger <- R6::R6Class(
dest = private$log_conn,
df = patch,
name = unique_table_name("SCDB_logger_patch"),
temporary = TRUE
temporary = TRUE,
analyze = FALSE
)
defer_db_cleanup(patch) # Clean up on exit

Expand Down
Loading
Loading