Giter Club home page Giter Club logo

Comments (5)

alitrack avatar alitrack commented on August 14, 2024

I am still working on it.

from duckdb_fdw.

elysabethpc avatar elysabethpc commented on August 14, 2024

Hello,

I tried myaniu's solution, but it doesn't work for me.
I can load the extension and create server but failed when I try to read from duckdb file with "unable to open database file":

db1=# create extension duckdb_fdw;
CREATE EXTENSION
db1=# \dx
                   List of installed extensions
    Name    | Version |   Schema   |         Description          
------------+---------+------------+------------------------------
 duckdb_fdw | 1.1     | public     | DuckDB Foreign Data Wrapper
 plpgsql    | 1.0     | pg_catalog | PL/pgSQL procedural language
(2 rows)

db1=# create server duckdb_srv foreign data wrapper duckdb_fdw options (database '/tmp/db1.duckdb', read_only 'true');
CREATE SERVER
db1=# 

db1=# import foreign schema public from server duckdb_srv into public;
ERROR:  SQL error during prepare: unable to open database file SELECT name FROM sqlite_master WHERE type in('table', 'view') AND name NOT LIKE 'sqlite_%'

I also tried the myaniu's dockfile on issue thread "duckdb_fdw.so: undefined symbol: sqlite3_limit", but failed.

Thank you

from duckdb_fdw.

alitrack avatar alitrack commented on August 14, 2024

fixed,
from DuckDB 0.6, sqlite3_api_wrapper has an extra include, so I have to include it too.

#include "duckdb_shell_wrapper.h"

from duckdb_fdw.

alitrack avatar alitrack commented on August 14, 2024

btw,please refer this to simplify the job.

https://github.com/alitrack/duckdb_fdw_docker

from duckdb_fdw.

elysabethpc avatar elysabethpc commented on August 14, 2024

It works ok. Thank you

from duckdb_fdw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.