Skip to content

Commit 72cf1a9

Browse files
authored
Merge branch 'main' into worktree-ssh-totp-support
Signed-off-by: Ngô Quốc Đạt <datlechin@gmail.com>
2 parents 377fbee + 8a15584 commit 72cf1a9

32 files changed

Lines changed: 2965 additions & 72 deletions

.github/workflows/build-plugin.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,27 @@ jobs:
5757
TARGET="OracleDriver"; BUNDLE_ID="com.TablePro.OracleDriver"
5858
DISPLAY_NAME="Oracle Driver"; SUMMARY="Oracle Database 12c+ driver via OracleNIO"
5959
DB_TYPE_IDS='["Oracle"]'; ICON="server.rack"; BUNDLE_NAME="OracleDriver"
60-
HOMEPAGE="https://tablepro.app/databases/oracle" ;;
60+
HOMEPAGE="https://docs.tablepro.app/databases/oracle" ;;
6161
clickhouse)
6262
TARGET="ClickHouseDriver"; BUNDLE_ID="com.TablePro.ClickHouseDriver"
6363
DISPLAY_NAME="ClickHouse Driver"; SUMMARY="ClickHouse OLAP database driver via HTTP interface"
6464
DB_TYPE_IDS='["ClickHouse"]'; ICON="chart.bar.xaxis"; BUNDLE_NAME="ClickHouseDriver"
65-
HOMEPAGE="https://tablepro.app/databases/clickhouse" ;;
65+
HOMEPAGE="https://docs.tablepro.app/databases/clickhouse" ;;
6666
sqlite)
6767
TARGET="SQLiteDriver"; BUNDLE_ID="com.TablePro.SQLiteDriver"
6868
DISPLAY_NAME="SQLite Driver"; SUMMARY="SQLite embedded database driver"
6969
DB_TYPE_IDS='["SQLite"]'; ICON="internaldrive"; BUNDLE_NAME="SQLiteDriver"
70-
HOMEPAGE="https://tablepro.app" ;;
70+
HOMEPAGE="https://docs.tablepro.app/databases/sqlite" ;;
7171
duckdb)
7272
TARGET="DuckDBDriver"; BUNDLE_ID="com.TablePro.DuckDBDriver"
7373
DISPLAY_NAME="DuckDB Driver"; SUMMARY="DuckDB analytical database driver"
7474
DB_TYPE_IDS='["DuckDB"]'; ICON="bird"; BUNDLE_NAME="DuckDBDriver"
75-
HOMEPAGE="https://tablepro.app" ;;
75+
HOMEPAGE="https://docs.tablepro.app/databases/duckdb" ;;
76+
cassandra)
77+
TARGET="CassandraDriver"; BUNDLE_ID="com.TablePro.CassandraDriver"
78+
DISPLAY_NAME="Cassandra Driver"; SUMMARY="Apache Cassandra and ScyllaDB driver via DataStax C driver"
79+
DB_TYPE_IDS='["Cassandra", "ScyllaDB"]'; ICON="cassandra-icon"; BUNDLE_NAME="CassandraDriver"
80+
HOMEPAGE="https://docs.tablepro.app/databases/cassandra" ;;
7681
*) echo "Unknown plugin: $plugin_name"; return 1 ;;
7782
esac
7883
}
@@ -91,6 +96,11 @@ jobs:
9196
9297
echo "Building $TARGET v$VERSION"
9398
99+
# Build Cassandra dependencies if needed
100+
if [ "$PLUGIN_NAME" = "cassandra" ]; then
101+
./scripts/build-cassandra.sh both
102+
fi
103+
94104
# Build both architectures
95105
./scripts/build-plugin.sh "$TARGET" arm64
96106
./scripts/build-plugin.sh "$TARGET" x86_64

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5353
- Pre-connect script: run a shell command before each connection (e.g., to refresh credentials or update ~/.pgpass)
5454
- `ParameterStyle` enum in TableProPluginKit: plugins declare `?` or `$1` placeholder style via `parameterStyle` property on `PluginDatabaseDriver`
5555
- DML statement generation in ClickHouse, MSSQL, and Oracle plugins via `generateStatements()` for database-specific UPDATE/DELETE syntax
56+
- Cassandra and ScyllaDB database support via DataStax C driver (downloadable plugin)
5657
- `quoteIdentifier` method on `PluginDatabaseDriver` and `DatabaseDriver` protocols: plugins provide database-specific identifier quoting (backticks for MySQL/SQLite/ClickHouse, brackets for MSSQL, double-quotes for PostgreSQL/Oracle/DuckDB, passthrough for MongoDB/Redis)
5758

5859
### Changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// CCassandra.h
3+
// TablePro
4+
//
5+
// C bridging header for the DataStax Cassandra C driver.
6+
// Headers are bundled in the include/ subdirectory.
7+
//
8+
9+
#ifndef CCassandra_h
10+
#define CCassandra_h
11+
12+
#include "include/cassandra.h"
13+
14+
#endif /* CCassandra_h */
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module CCassandra [system] {
2+
header "CCassandra.h"
3+
export *
4+
}

0 commit comments

Comments
 (0)