-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Maxxen/main
Add support for reading/writing `.xlsx` files
- Loading branch information
Showing
89 changed files
with
13,530 additions
and
10,073 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,32 @@ | ||
--- | ||
BasedOnStyle: LLVM | ||
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 | ||
--- | ||
Language: Java | ||
SpaceAfterCStyleCast: true | ||
--- |
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,52 @@ | ||
Checks: '-*,clang-diagnostic-*,bugprone-*,performance-*,google-explicit-constructor,google-build-using-namespace,google-runtime-int,misc-definitions-in-headers,modernize-use-nullptr,modernize-use-override,-bugprone-macro-parentheses,readability-braces-around-statements,-bugprone-branch-clone,readability-identifier-naming,hicpp-exception-baseclass,misc-throw-by-value-catch-by-reference,-bugprone-signed-char-misuse,-bugprone-misplaced-widening-cast,-bugprone-sizeof-expression,-bugprone-easily-swappable-parameters,google-global-names-in-headers,llvm-header-guard,misc-definitions-in-headers,modernize-use-emplace,modernize-use-bool-literals,-performance-inefficient-string-concatenation,-performance-no-int-to-ptr,readability-container-size-empty,cppcoreguidelines-pro-type-cstyle-cast,-llvm-header-guard,-performance-enum-size,cppcoreguidelines-pro-type-const-cast,cppcoreguidelines-avoid-non-const-global-variables,cppcoreguidelines-interfaces-global-init,cppcoreguidelines-slicing,cppcoreguidelines-rvalue-reference-param-not-moved,cppcoreguidelines-virtual-class-destructor,-readability-identifier-naming,-bugprone-exception-escape,-bugprone-unused-local-non-trivial-variable,-bugprone-empty-catch' | ||
WarningsAsErrors: '*' | ||
HeaderFilterRegex: 'src/include/duckdb/.*' | ||
FormatStyle: none | ||
CheckOptions: | ||
- key: readability-identifier-naming.ClassCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.EnumCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.TypedefCase | ||
value: lower_case | ||
- key: readability-identifier-naming.TypedefSuffix | ||
value: _t | ||
- key: readability-identifier-naming.FunctionCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.MemberCase | ||
value: lower_case | ||
- key: readability-identifier-naming.ParameterCase | ||
value: lower_case | ||
- key: readability-identifier-naming.ConstantCase | ||
value: aNy_CasE | ||
- key: readability-identifier-naming.ConstantParameterCase | ||
value: lower_case | ||
- key: readability-identifier-naming.NamespaceCase | ||
value: lower_case | ||
- key: readability-identifier-naming.MacroDefinitionCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.StaticConstantCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.ConstantMemberCase | ||
value: aNy_CasE | ||
- key: readability-identifier-naming.StaticVariableCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.ClassConstantCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.EnumConstantCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.ConstexprVariableCase | ||
value: aNy_CasE | ||
- key: readability-identifier-naming.StaticConstantCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.TemplateTemplateParameterCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.TypeTemplateParameterCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.VariableCase | ||
value: lower_case | ||
- key: modernize-use-emplace.SmartPointers | ||
value: '::duckdb::shared_ptr;::duckdb::unique_ptr;::std::auto_ptr;::duckdb::weak_ptr' | ||
- key: cppcoreguidelines-rvalue-reference-param-not-moved.IgnoreUnnamedParams | ||
value: true | ||
|
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 |
---|---|---|
@@ -1,20 +1,35 @@ | ||
cmake_minimum_required(VERSION 2.8.12...3.29) | ||
set(TARGET_NAME excel) | ||
set(EXTENSION_NAME ${TARGET_NAME}_extension) | ||
set(LOADABLE_EXTENSION_NAME ${TARGET_NAME}_loadable_extension) | ||
|
||
project(ExcelExtension) | ||
|
||
include_directories(extension/excel/numformat/include) | ||
include_directories(extension/excel/include) | ||
add_subdirectory(extension/excel/numformat) | ||
# Dependencies from VCPKG | ||
find_package(EXPAT REQUIRED) | ||
find_package(ZLIB REQUIRED) | ||
find_package(minizip-ng CONFIG REQUIRED) | ||
|
||
build_static_extension(excel extension/excel/excel_extension.cpp ${NUMFORMAT_OBJECT_FILES}) | ||
include_directories(src/excel/numformat/include) | ||
include_directories(src/excel/include) | ||
add_subdirectory(src/excel/numformat) | ||
|
||
set(EXTENSION_SOURCES src/excel/excel_extension.cpp src/excel/xlsx/zip_file.cpp | ||
src/excel/xlsx/read_xlsx.cpp src/excel/xlsx/copy_xlsx.cpp) | ||
|
||
build_static_extension(${TARGET_NAME} ${EXTENSION_SOURCES} | ||
${NUMFORMAT_OBJECT_FILES}) | ||
set(PARAMETERS "-warnings") | ||
build_loadable_extension(excel ${PARAMETERS} extension/excel/excel_extension.cpp | ||
build_loadable_extension(${TARGET_NAME} ${PARAMETERS} ${EXTENSION_SOURCES} | ||
${NUMFORMAT_OBJECT_FILES}) | ||
|
||
target_link_libraries(${EXTENSION_NAME} EXPAT::EXPAT MINIZIP::minizip-ng | ||
ZLIB::ZLIB) | ||
target_link_libraries(${LOADABLE_EXTENSION_NAME} EXPAT::EXPAT | ||
MINIZIP::minizip-ng ZLIB::ZLIB) | ||
|
||
install( | ||
TARGETS excel_extension | ||
TARGETS ${EXTENSION_NAME} | ||
EXPORT "${DUCKDB_EXPORT_SET}" | ||
LIBRARY DESTINATION "${INSTALL_LIB_DIR}" | ||
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}") |
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
Submodule duckdb
updated
5478 files
Submodule extension-ci-tools
updated
12 files
+39 −0 | .github/workflows/TestCITools.yml | |
+5 −4 | .github/workflows/_extension_deploy.yml | |
+430 −81 | .github/workflows/_extension_distribution.yml | |
+6 −1 | README.md | |
+63 −0 | config/distribution_matrix.json | |
+5 −0 | docker/README.md | |
+99 −0 | docker/linux_amd64/Dockerfile | |
+80 −0 | docker/linux_amd64_gcc4/Dockerfile | |
+98 −0 | docker/linux_arm64/Dockerfile | |
+34 −7 | makefiles/duckdb_extension.Makefile | |
+83 −0 | scripts/append_extension_metadata.py | |
+75 −0 | scripts/modify_distribution_matrix.py |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.