Comments (2)
This function and the associated default_connection()
is not really used even internally. We're free to design it to our desires, but I'd like to understand the motivation and use case. Most of that can be achieved today with DBI too?
from duckdb-r.
Thank you for your reply.
I think it would be great if I could eventually do something like the following in Python.
https://duckdb.org/docs/archive/0.9.2/guides/python/import_pandas
import duckdb
import pandas
# Create a Pandas dataframe
my_df = pandas.DataFrame.from_dict({'a': [42]})
# create the table "my_table" from the DataFrame "my_df"
# Note: duckdb.sql connects to the default in-memory database connection
duckdb.sql("CREATE TABLE my_table AS SELECT * FROM my_df")
# insert into the table "my_table" from the DataFrame "my_df"
duckdb.sql("INSERT INTO my_table SELECT * FROM my_df")
Here, the connection specification and the registration of the pandas.DataFrame
to the DB are done automatically.
The R client currently does not automatically register data frames (duckdb/duckdb#6771), but I think it would be useful at the moment to be able to omit specifying a connection like with the sql
function.
from duckdb-r.
Related Issues (20)
- "Out-of-tree-extensions" missing for Windows HOT 6
- garbage-collection warning despite using shutdown -- only when dbdir is specified HOT 3
- MAP type is not working in R HOT 2
- ``histogram(arg)`` aggregate function not working in R HOT 1
- Unable to install duckdb R package. HOT 6
- Support for hive partitioning HOT 2
- dbExecute(con, "load 'httpfs';") Failed HOT 2
- Install extension when using webr HOT 6
- Not correctly escaping column names in sql for `duckdb` connection HOT 2
- garbage-collection issue: the file size is not reduced and keep growing despite deleting all the tables! HOT 2
- nanoarrow/ADBC integrations?
- Duckdb 0.10.0 (stable) Release for R ? HOT 4
- `local_con()` test fixture
- parameters passed using dbConnect( config = list() ) are ignored HOT 9
- Avoid establishing connection for `dbGetInfo()`
- Debug symbols in CRAN builds HOT 4
- Implement a way to access the new ALTREP lists
- Excessive RAM usage for `DBI::dbWriteTable()` and `dplyr::collect()` HOT 4
- Make `duckdb_register` as a generic function HOT 2
- Array returns "unknown column type" in 0.9.99.9000 when getting the results of a query HOT 2
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 duckdb-r.