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
34 changes: 34 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
BasedOnStyle: LLVM
SortIncludes: false
TabWidth: 4
IndentWidth: 4
ColumnLimit: 120
AllowShortFunctionsOnASingleLine: false
---
UseTab: ForIndentation
DerivePointerAlignment: false
PointerAlignment: Right
AlignConsecutiveMacros: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AlignAfterOpenBracket: Align
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
IncludeBlocks: Regroup
Language: Cpp
AccessModifierOffset: -4
KeepEmptyLinesAtTheStartOfBlocks: false
---
Language: Java
SpaceAfterCStyleCast: true
---
38 changes: 34 additions & 4 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,45 @@
name: Integration Tests
on: [push, pull_request,repository_dispatch]
on:
push:
paths-ignore:
- '**.md'
- '.github/workflows/**'
- '!.github/workflows/Linux.yml'
pull_request:
repository_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }}
cancel-in-progress: true
defaults:
run:
shell: bash

jobs:

format-check:
name: Format Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'

- name: Install
run: |
pip3 install \
black==25.1.0 \
clang_format==11.0.1 \
cmake-format==0.6.13

- name: Format Check
run: |
python -m pip show black
python -m pip show cmake_format
python -m pip show clang_format
clang-format --version
clang-format --dump-config
make format-check

linux-tests-postgres:
name: Run tests on Linux
needs: format-check
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/MainDistributionPipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
name: Main Extension Distribution Pipeline
on:
push:
paths-ignore:
- '**.md'
- '.github/workflows/**'
- '!.github/workflows/MainDistributionPipeline.yml'
pull_request:
workflow_dispatch:

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ cmake-build-debug
.idea
.DS_Store
postgres/postgres
.clang-format
postgres
1 change: 0 additions & 1 deletion src/postgres_attach.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ struct AttachFunctionData : public TableFunctionData {

static unique_ptr<FunctionData> AttachBind(ClientContext &context, TableFunctionBindInput &input,
vector<LogicalType> &return_types, vector<string> &names) {

auto result = make_uniq<AttachFunctionData>();
result->dsn = input.inputs[0].GetValue<string>();

Expand Down
1 change: 0 additions & 1 deletion src/storage/postgres_clear_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ struct ClearCacheFunctionData : public TableFunctionData {

static unique_ptr<FunctionData> ClearCacheBind(ClientContext &context, TableFunctionBindInput &input,
vector<LogicalType> &return_types, vector<string> &names) {

auto result = make_uniq<ClearCacheFunctionData>();
return_types.push_back(LogicalType::BOOLEAN);
names.emplace_back("Success");
Expand Down
Loading