diff --git a/dev/CODE_OF_CONDUCT.html b/dev/CODE_OF_CONDUCT.html index 74ffe25d..654ca5f5 100644 --- a/dev/CODE_OF_CONDUCT.html +++ b/dev/CODE_OF_CONDUCT.html @@ -7,7 +7,7 @@ RPostgres - 1.4.7.9003 + 1.4.7.9004

Let’s use callr again to start 2 workers:

-
+
 stdout_1 <- tempfile()
 stdout_2 <- tempfile()
 rp <- callr::r_bg(worker, stdout = stdout_1, stderr = stdout_1)
@@ -256,7 +255,7 @@ 

Implementing our workerSys.sleep(1) # Give workers a chance to set themselves up

Now our client can add some values to our table and notify the workers that there’s something to do:

-
+
 con <- dbConnect(RPostgres::Postgres())
 
 add_sqroot <- function(in_val) {
@@ -269,31 +268,28 @@ 

Implementing our worker} add_sqroot(7) -#> [1] 0

-
-add_sqroot(8)
-#> [1] 0
-
-add_sqroot(9)
+#> [1] 0
+add_sqroot(8)
+#> [1] 0
+add_sqroot(9)
 #> [1] 0

…after a wait, the answers should have been populated by the workers for us:

-
+
 Sys.sleep(3)
 rs <- dbSendQuery(con, "SELECT * FROM sqroot_vignette_example ORDER BY in_val")
 dbFetch(rs)
 #>   in_val  out_val
 #> 1      7 2.645751
 #> 2      8 2.828427
-#> 3      9 3.000000
-
-dbClearResult(rs) ; rs <- NULL
+#> 3 9 3.000000 +dbClearResult(rs) ; rs <- NULL

Finally, we can use NOTIFY to stop all the workers:

-
+
 dbExecute(con, "NOTIFY sqroot_shutdown, ''")
 #> [1] 0

And see what messages were printed as they run:

-
+
 # We can't control which worker will process the first entry,
 # so we sort the results so the vignette output stays the same.
 outputs <- sort(c(
@@ -304,9 +300,8 @@ 

Implementing our worker#> Not sqroot-ing as another worker got there first #> Sqroot-ing 8 ... #> Not sqroot-ing as another worker got there first -#> Shutting down.

-
-writeLines(outputs[[2]])
+#> Shutting down.
+writeLines(outputs[[2]])
 #> Sqroot-ing 7 ... 
 #> Not sqroot-ing as another worker got there first
 #> Sqroot-ing 9 ... 
@@ -327,7 +322,7 @@ 

Implementing our worker diff --git a/dev/authors.html b/dev/authors.html index 01c0bf98..1273c39b 100644 --- a/dev/authors.html +++ b/dev/authors.html @@ -7,7 +7,7 @@ RPostgres - 1.4.7.9003 + 1.4.7.9004

@@ -90,7 +90,7 @@

Citation

diff --git a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyC0ITw.woff2 b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyC0ITw.woff2 index f4675de1..6478b9ad 100644 Binary files a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyC0ITw.woff2 and b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyC0ITw.woff2 differ diff --git a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCAIT5lu.woff2 b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCAIT5lu.woff2 index 7ac6ae08..dee82d4b 100644 Binary files a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCAIT5lu.woff2 and b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCAIT5lu.woff2 differ diff --git a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCIIT5lu.woff2 b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCIIT5lu.woff2 index 3d4f643a..b5664780 100644 Binary files a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCIIT5lu.woff2 and b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCIIT5lu.woff2 differ diff --git a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCMIT5lu.woff2 b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCMIT5lu.woff2 index 753e47ca..e0d65386 100644 Binary files a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCMIT5lu.woff2 and b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCMIT5lu.woff2 differ diff --git a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCkIT5lu.woff2 b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCkIT5lu.woff2 index 49dbbaa5..1005b7c8 100644 Binary files a/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCkIT5lu.woff2 and b/dev/deps/bootstrap-5.3.1/fonts/1Ptug8zYS_SKggPNyCkIT5lu.woff2 differ diff --git a/dev/index.html b/dev/index.html index fd03e0ed..8dcda941 100644 --- a/dev/index.html +++ b/dev/index.html @@ -23,7 +23,7 @@ RPostgres - 1.4.7.9003 + 1.4.7.9004
diff --git a/dev/news/index.html b/dev/news/index.html index 8566fa20..7bcf7428 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -7,7 +7,7 @@ RPostgres - 1.4.7.9003 + 1.4.7.9004
+
+

RPostgres 1.4.7.9004 (2024-07-02)

+
+

Continuous integration

+
  • Fix on Windows, tweak lock workflow.
  • +
+

RPostgres 1.4.7.9003 (2024-07-01)

@@ -405,7 +412,7 @@

RPo

diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index aed86825..d6930d1c 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -1,9 +1,9 @@ pandoc: 3.1.11 -pkgdown: 2.0.9.9000 -pkgdown_sha: a98c134518cc9f5006f9ce17d4b6fc29ea37b56b +pkgdown: 2.1.0.9000 +pkgdown_sha: 6f01c9267a1cee263216cec38eea10017d751dd8 articles: work-queue: work-queue.html -last_built: 2024-07-01T18:03Z +last_built: 2024-08-01T14:26Z urls: reference: https://rpostgres.r-dbi.org/reference article: https://rpostgres.r-dbi.org/articles diff --git a/dev/reference/Postgres.html b/dev/reference/Postgres.html index 8f697536..abb08b0a 100644 --- a/dev/reference/Postgres.html +++ b/dev/reference/Postgres.html @@ -17,7 +17,7 @@ RPostgres - 1.4.7.9003 + 1.4.7.9004