Skip to content
Discussion options

You must be logged in to vote

The UDF should be registered on the pg side first. Do sth like this:

CREATE FUNCTION read_xlsx(path text, 
                                        header BOOLEAN DEFAULT NULL,
                                        sheet TEXT DEFAULT NULL,
                                        all_varchar BOOLEAN DEFAULT FALSE,
                                        ignore_errors BOOLEAN DEFAULT FALSE,
                                        range TEXT DEFAULT NULL,
                                        stop_at_empty BOOLEAN DEFAULT NULL,
                                        empty_as_varchar BOOLEAN DEFAULT FALSE)
RETURNS SETOF duckdb.row
SET search_path = pg_catalog, pg_temp
AS 'pg_duckdb.so', '…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mdawkins
Comment options

Answer selected by mdawkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants