Comments (3)
Thanks. Are you trying to copy data within the same database, or from one database into another? For the former, can you try INSERT INTO ... SELECT ... FROM ...
as a single SQL statement? The dplyr::rows_append()
function might also be useful.
from rsqlite.
Thanks. Are you trying to copy data within the same database, or from one database into another?
I need to pull data a, b, c
from mytable
and insert a, f(b,c)
into second_table
, where f
is a function that takes b
and c
as arguments. (Here, f(b, c) = b + c
for simplicity, but my actual use case involves a Haversine distance function, among other things.)
from rsqlite.
Got you. So it's difficult to compute f(b, c)
on the database.
That's a use case I haven't encountered so far. The restriction to a single result set is somewhat artificial, we might want to lift that. Would it be feasible to read the whole data as a data frame and to write the resulting data as a whole too?
from rsqlite.
Related Issues (20)
- Error compiling DbConnection.cpp when installing from source HOT 4
- dbWriteTable Inconsistently accepts DBI:ID HOT 1
- dbAppendTable() with SnowFlake doesn't respect DB or Schema constraints. HOT 1
- dbAppendTable takes ~ 30 seconds in Snowflake HOT 1
- slice_sample() does not interact correctly with set.seed() when working with an SQLite database HOT 1
- Unable to install from source with Mac OS 13.4.1 (clang-1403.0.22.14.1) HOT 15
- Installation of RSQLite failed with cpp11-ver0.4.6 in Ubuntu 22.04 HOT 2
- FR : bindings to sqlite3_clear_bindings HOT 3
- Support multiple queries
- Support encrypted databases HOT 12
- dbExistsTable(conn, Id(schema = "INFORMATION_SCHEMA", table = "TABLES")) throws error (should return FALSE?) HOT 2
- unittest fails HOT 20
- Connect to remote sqlite database HOT 2
- RSQLite keeps numeric of epoch day as date in SQLite database whereas SQLite regards numeric as Julian day (REAL) or epoch second (INTEGER) HOT 1
- System-wide sqlite 3.36 breaks installation of R package (which comes with sqlite 3.46) HOT 12
- RSQLite compile error on Windows using GitHub Actions HOT 7
- Description Definition HOT 1
- Unexpected message and test skipping when using `extended_types = TRUE` HOT 5
- `PRIMARY KEY` variable is not being recognised as primary index HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsqlite.