pgx
PGX — Lightweight Postgres for AI agents. Written in Rust. Thousands of isolated databases in one runtime. 🐘
翻譯準備中
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證NextSQL is a new database engine, written primarily in Go.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
NextSQL is a high-performance, encrypted-by-default multimodel database written in Go. Relational SQL, binary JSON, vector search (HNSW), full-text search (BM25), and geospatial types share one ACID engine, one write-ahead log, and one cost-based query optimizer.
It is a new database — not a wrapper, fork, or compatibility layer for PostgreSQL, MySQL, MongoDB, or Elasticsearch. It has its own 16 KiB page storage engine, SQL dialect, binary wire protocol (NSQL v1), and first-party drivers.檢視完整 README ↗NextSQL is a high-performance, encrypted-by-default multimodel database written in Go. Relational SQL, binary JSON, vector search (HNSW), full-text search (BM25), and geospatial types share one ACID engine, one write-ahead log, and one cost-based query optimizer.
It is a new database — not a wrapper, fork, or compatibility layer for PostgreSQL, MySQL, MongoDB, or Elasticsearch. It has its own 16 KiB page storage engine, SQL dialect, binary wire protocol (NSQL v1), and first-party drivers.
The current release is 0.0.7 (preview). Linux packages are on GitHub Releases. On Windows, run them inside WSL 2.
All data models live in the same table, share the same transaction, and execute within a single physical plan:
CREATE TABLE products (
id UUID PRIMARY KEY DEFAULT UUID(),
name STRING NOT NULL,
description TEXT,
price DECIMAL(12,2),
metadata JSON,
embedding VECTOR<F32,1536>,
location POINT,
created_at TIMESTAMPTZ DEFAULT NOW()
);
CREATE FULLTEXT INDEX ix_desc ON products (description);
CREATE VECTOR INDEX ix_emb ON products (embedding) USING HNSW;
-- One plan: relational filter + JSON path + full-text BM25 + vector ANN
SELECT id, name, price
FROM products
WHERE metadata.category = 'headphones'
AND price <= 150.00
SEARCH description FOR 'wireless noise cancelling'
NEAREST embedding TO $query
LIMIT 20;
NSJB), vectors (HNSW), full-text (BM25), and geo (WGS84) share a single ACID transaction and cost model.fsync before a commit is acknowledged. MVCC with snapshot and serializable isolation.go install github.com/bzync/nextsql/cmd/nextsql@latest
go install github.com/bzync/nextsql/cmd/nextsqld@latest
Pre-built Linux installers (.deb, .tar.gz, .run) are on the v0.0.7 release. For containers and multi-service orchestration, see the Docker and Docker Compose guides. Native Windows is not supported; on Windows, run NextSQL inside WSL 2.
# Initialize encrypted data directory with a root key
nextsql init --data-dir /var/lib/nextsql --key-file /etc/nextsql/root.key --user app --password-file /tmp/nextsql.pw --database app
# Start the daemon
nextsqld --data-dir /var/lib/nextsql --key-file /etc/nextsql/root.key --listen 127.0.0.1:7210 --user app --password-file /tmp/nextsql.pw
# Execute a query
nextsql exec --addr 127.0.0.1:7210 --user app --password-file /tmp/nextsql.pw --insecure -c "SELECT 'Hello, NextSQL!';"
Note: Non-loopback network connections require TLS 1.3.
MIT (LICENSE)