> skip_if_local_src()
> data <- test_src_frame(a = 1:3, b = letters[c(1:2, NA)], c = 0.5 + 0:2)
> data
      a b         c
  <int> <chr> <dbl>
1     1 a       0.5
2     2 b       1.5
3     3 <NA>    2.5

> rows_insert(data, tibble(a = 4, b = "z"))
Error: `x` and `y` must share the same src, set `copy` = TRUE (may be slow).

> rows_insert(data, test_src_frame(a = 4, b = "z"))
Message: Result is returned as lazy table. Use `in_place = FALSE` to mute this message, or `in_place = TRUE` to write to the underlying table.

      a b         c
  <dbl> <chr> <dbl>
1     1 a       0.5
2     2 b       1.5
3     3 <NA>    2.5
4     4 z      NA  

> suppressMessages(rows_update(data, tibble(a = 2:3, b = "w"), copy = TRUE,
+ in_place = FALSE))
      a b         c
  <int> <chr> <dbl>
1     1 a       0.5
2     2 w       1.5
3     3 w       2.5

> suppressMessages(rows_update(data, tibble(a = 2:3), copy = TRUE, in_place = FALSE))
      a b         c
  <int> <chr> <dbl>
1     1 a       0.5
2     2 b       1.5
3     3 <NA>    2.5

> rows_insert(data, test_src_frame(a = 4, b = "z"), in_place = TRUE)
> data %>% arrange(a)
      a b         c
  <int> <chr> <dbl>
1     1 a       0.5
2     2 b       1.5
3     3 <NA>    2.5
4     4 z      NA  

> rows_update(data, test_src_frame(a = 2:3, b = "w"), in_place = TRUE)
> data %>% arrange(a)
      a b         c
  <int> <chr> <dbl>
1     1 a       0.5
2     2 w       1.5
3     3 w       2.5
4     4 z      NA  

> rows_update(data, test_src_frame(a = 2:3), in_place = TRUE)
> data %>% arrange(a)
      a b         c
  <int> <chr> <dbl>
1     1 a       0.5
2     2 w       1.5
3     3 w       2.5
4     4 z      NA  

