style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ Please modify the `.env` file as needed for your use case.
```sql
-- Create a keyspace
CREATE KEYSPACE test_keyspace
CREATE KEYSPACE test_keyspace
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
-- Use the keyspace
@@ -71,7 +71,7 @@ CREATE TABLE users (
);
-- Insert data
INSERT INTO users (id, name, email)
INSERT INTO users (id, name, email)
VALUES (uuid(), 'John Doe', 'john@example.com');
-- Query data
+2 -2
View File
@@ -57,7 +57,7 @@
```sql
-- 创建键空间
CREATE KEYSPACE test_keyspace
CREATE KEYSPACE test_keyspace
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
-- 使用键空间
@@ -71,7 +71,7 @@ CREATE TABLE users (
);
-- 插入数据
INSERT INTO users (id, name, email)
INSERT INTO users (id, name, email)
VALUES (uuid(), 'John Doe', 'john@example.com');
-- 查询数据
+4 -4
View File
@@ -4,15 +4,15 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
services:
cassandra:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}cassandra:${CASSANDRA_VERSION:-5.0.2}
ports:
- "${CASSANDRA_CQL_PORT_OVERRIDE:-9042}:9042"
- "${CASSANDRA_THRIFT_PORT_OVERRIDE:-9160}:9160"
- '${CASSANDRA_CQL_PORT_OVERRIDE:-9042}:9042'
- '${CASSANDRA_THRIFT_PORT_OVERRIDE:-9160}:9160'
volumes:
- cassandra_data:/var/lib/cassandra
- cassandra_logs:/var/log/cassandra
@@ -39,7 +39,7 @@ services:
cpus: ${CASSANDRA_CPU_RESERVATION:-0.50}
memory: ${CASSANDRA_MEMORY_RESERVATION:-1G}
healthcheck:
test: ["CMD-SHELL", "cqlsh -e 'DESCRIBE CLUSTER'"]
test: [CMD-SHELL, "cqlsh -e 'DESCRIBE CLUSTER'"]
interval: 30s
timeout: 10s
retries: 5