Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ credentials.json
compile_commands.json
.cache/clangd/
.helix/
service-account-credentials.json
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ include_directories(src/include)
include_directories(third_party)

# Update the EXTENSION_SOURCES to include the new gsheets_auth.cpp file
set(EXTENSION_SOURCES
set(EXTENSION_SOURCES
src/gsheets_extension.cpp
src/gsheets_auth.cpp
src/gsheets_copy.cpp
src/gsheets_requests.cpp
src/gsheets_read.cpp
src/gsheets_utils.cpp
src/gsheets_get_token.cpp
)
src/gsheets_get_token.cpp)

build_static_extension(${TARGET_NAME} ${EXTENSION_SOURCES})
build_loadable_extension(${TARGET_NAME} " " ${EXTENSION_SOURCES})
Expand Down
27 changes: 24 additions & 3 deletions docs/pages/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Note: VCPKG is only required for extensions that want to rely on it for dependen
### Build steps
Now to build the extension, run:
```sh
make
GEN=ninja make
```
The main binaries that will be built are:
```sh
Expand All @@ -30,10 +30,12 @@ To run the extension code, simply start the shell with `./build/release/duckdb`.

Now we can use the features from the extension directly in DuckDB.

## Running the tests
## Running the tests\
To run the test suite, you need to generate a token for the Google Sheets API, follow the instructions in the README file to get one.

Different tests can be created for DuckDB extensions. The primary way of testing DuckDB extensions should be the SQL tests in `./test/sql`. These SQL tests can be run using:
```sh
make test
TOKEN=your-token-here GEN=ninja make test
```

### Installing the deployed binaries
Expand Down Expand Up @@ -68,3 +70,22 @@ After running these steps, you can install and load your extension using the reg
INSTALL gsheets
LOAD gsheets
```

## Formatting

- Install clang-format (e.g. `brew install clang-format`)
- Install cmake-format (e.g. `pip install cmake-format`)

```sh
$ clang-format --version
clang-format version 20.1.8
```

```sh
$ cmake-format --version
0.6.13
```

```sh
make format
```
2 changes: 1 addition & 1 deletion duckdb
Submodule duckdb updated 5583 files
Loading
Loading