-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:Dtenwolde/community-extensions
- Loading branch information
Showing
29 changed files
with
488 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build all extensions | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
duckdb_version: | ||
type: string | ||
duckdb_tag: | ||
type: string | ||
deploy: | ||
type: string | ||
|
||
jobs: | ||
collect_extensions: | ||
outputs: | ||
COMMUNITY_EXTENSION_LIST: ${{ steps.generate_list.outputs.EXTENSION_LIST }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Generate extension list | ||
id: generate_list | ||
run: | | ||
./scripts/get_extension_list.sh | ||
cat extension_list | ||
cat extension_list >> $GITHUB_OUTPUT | ||
build_all: | ||
needs: | ||
- collect_extensions | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
extension_name: ${{ fromJson(needs.collect_extensions.outputs.COMMUNITY_EXTENSION_LIST) }} | ||
uses: ./.github/workflows/build.yml | ||
secrets: inherit | ||
with: | ||
extension_name: ${{ matrix.extension_name }} | ||
duckdb_version: ${{ inputs.duckdb_version }} | ||
duckdb_tag: ${{ inputs.duckdb_tag }} | ||
deploy: ${{ inputs.deploy }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/ | ||
downloads-last-week.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function,description,comment,example | ||
bigquery_attach,"Attach to a BigQuery project.","","ATTACH 'project=my_gcp_project' as bq (TYPE bigquery);" | ||
bigquery_scan,"Scan a single table directly from BigQuery.",,"SELECT * FROM bigquery_scan('my_gcp_project.quacking_dataset.duck_tbl');" | ||
bigquery_query,"Run a custom GoogleSQL query in BigQuery and read the results.",,"SELECT * FROM bigquery_query('bq', 'SELECT * FROM quacking_dataset.duck_tbl WHERE duck_id = 123');" | ||
bigquery_execute,"Execute an arbitrary GoogleSQL query in BigQuery.",,"CALL bigquery_execute('bq', 'CREATE SCHEMA deluxe_dataset OPTIONS(location=""us"", default_table_expiration_days=3.75);')" | ||
bigquery_jobs,"List jobs in a BigQuery project.","","SELECT * FROM bigquery_jobs('bq');" | ||
bigquery_clear_cache,"Clear the internal caches to refetch the most current project information from BigQuery.","","CALL bigquery_clear_cache();" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
extension: | ||
name: flockmtl | ||
description: DuckDB LLM Extension | ||
version: 0.1.0 | ||
language: SQL & C++ | ||
build: cmake | ||
license: MIT | ||
maintainers: | ||
- dorbanianas | ||
- SunnyYasser | ||
- queryproc | ||
|
||
repo: | ||
github: dsg-polymtl/duckdb-flockmtl | ||
ref: 1bd8ac0f54f8bf4c7da1c3793b88e73daa127653 | ||
|
||
docs: | ||
hello_world: | | ||
-- After loading, any function call will throw an error if an OPENAI_API_KEY environment variable is not set | ||
-- Call an OpenAI model with a predefined prompt ('Tell me hello world') and default model ('gpt-4o-mini') | ||
D SELECT llm_complete('hello-world', 'default'); | ||
┌──────────────────────────────────────────┐ | ||
│ llm_complete(hello_world, default_model) │ | ||
│ varchar │ | ||
├──────────────────────────────────────────┤ | ||
│ Hello world │ | ||
└──────────────────────────────────────────┘ | ||
-- Check the prompts and supported models | ||
D GET PROMPTS; | ||
D GET MODELS; | ||
-- Create a new prompt for summarizing text | ||
D CREATE PROMPT('summarize', 'summarize the text into 1 word: {{text}}'); | ||
-- Create a variable name for the model to do the summarizing | ||
D CREATE MODEL('summarizer-model', 'gpt-4o', 128000); | ||
-- Summarize text and pass it as parameter | ||
D SELECT llm_complete('summarize', 'summarizer-model', {'text': 'We support more functions and approaches to combine relational analytics and semantic analysis. Check our repo for documentation and examples.'}); | ||
extended_description: | | ||
This extension is experimental and potentially unstable. Do not use it in production. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
extension: | ||
name: gsheets | ||
description: Read and write Google Sheets using SQL | ||
version: 0.0.2 | ||
language: C++ | ||
build: cmake | ||
license: MIT | ||
excluded_platforms: "windows_amd64_rtools;wasm_mvp;wasm_eh;wasm_threads" | ||
maintainers: | ||
- archiewood | ||
|
||
repo: | ||
github: evidence-dev/duckdb_gsheets | ||
ref: 01bdf2872b78af1b9234792766392840fc4a91b7 | ||
|
||
docs: | ||
hello_world: | | ||
-- Authenticate with Google Account in the browser (easiest) | ||
CREATE SECRET (TYPE gsheet); | ||
-- OR create a secret with your Google API access token (boring, see extension docs) | ||
CREATE SECRET ( | ||
TYPE gsheet, | ||
PROVIDER access_token, | ||
TOKEN '<your_token>' | ||
); | ||
-- Read a spreadsheet by full URL | ||
FROM read_gsheet('https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit'); | ||
-- Read a spreadsheet by full URL, implicitly | ||
FROM 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit'; | ||
-- Read a spreadsheet by spreadsheet id | ||
FROM read_gsheet('11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8'); | ||
-- Read a spreadsheet with no header row | ||
SELECT * FROM read_gsheet('11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8', headers=false); | ||
-- Read a sheet other than the first sheet using the sheet name | ||
SELECT * FROM read_gsheet('11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8', sheet='Sheet2'); | ||
-- Read a sheet other than the first sheet using the sheet id in the URL | ||
SELECT * FROM read_gsheet('https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit?gid=644613997#gid=644613997'); | ||
-- Write a spreadsheet from a table by spreadsheet id | ||
COPY <table_name> TO '11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8' (FORMAT gsheet); | ||
-- Write a spreadsheet from a table by full URL | ||
COPY <table_name> TO 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit?usp=sharing' (FORMAT gsheet); | ||
-- Write a spreadsheet to a specific sheet using the sheet id in the URL | ||
COPY <table_name> TO 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit?gid=1295634987#gid=1295634987' (FORMAT gsheet); | ||
extended_description: | | ||
The DuckDB GSheets Extension allows reading and writing of data in Google Sheets from DuckDB. | ||
For detailed setup and usage instructions, visit the docs at [duckdb-gsheets.com](https://duckdb-gsheets.com). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function,description,comment,example | ||
read_gsheet,"Read a single sheet directly from a Google Sheet via the sheet URL, or spreadsheet ID.",,"SELECT * FROM read_gsheet('https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit?gid=644613997#gid=644613997');" | ||
"COPY TO","Write data from a table to a Google Sheet via the sheet URL, or spreadsheet ID.",,"COPY <table_name> TO 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit?gid=1295634987#gid=1295634987' (FORMAT gsheet);" |
Oops, something went wrong.