A developer built SQL driver modules for the Hare programming language, modeling the design on Go's database/sql package. The hare-sql module defines a vtable-based interface, while hare-sqlite wraps SQLite's C bindings and hare-postgresql implements the PostgreSQL wire protocol directly over TCP, including SCRAM-SHA-256, MD5 and PBKDF2 authentication, with MD5 and PBKDF2 hand-rolled since Hare's crypto library lacks them. A driver registry was removed because two drivers didn't justify it and it forced heap allocation. Errors use errors::opaque_ to preserve driver-specific codes like PostgreSQL's SQLSTATE without a shared string type. A bug was found in net::uri, which fails to parse a password in a URI's userinfo unless the colon is percent-encoded.
Nguồn: https://blainsmith.com/articles/writing-sql-drivers-in-hare. 8 Sync News chỉ tóm tắt và dẫn link; bản quyền nội dung thuộc tác giả và nguồn gốc.
Đọc tin ở đây, luyện code, học theo lộ trình và luyện IELTS trên các sản phẩm anh em — tất cả kết nối với nhau trong hệ sinh thái 8 Sync.
Cổng chính của hệ sinh thái: giới thiệu sản phẩm, blog và bảng giá trọn bộ.
Khám pháHọc theo lộ trình rõ từng chặng: video, quiz chấm tự động, certificate và mentor đang làm nghề.
Xem lộ trình1.000 bài DSA, đề tiếng Việt, chấm tự động 7 ngôn ngữ — nhiều bài FREE, chạy ngay trên trình duyệt.
Luyện miễn phíChấm bốn kỹ năng IELTS bằng AI, phản hồi chi tiết theo rubric.
Dùng thử miễn phíAI IDE 22 MB cho dev Việt.
Tải miễn phíBộ nhớ tổ chức cho AI agent.
Khám pháAI trực Fanpage, tự sàng lọc lead.
Dùng thửAgents write faster than humans can review. Typed graphs check every write, checked queries validate every question, and branches keep the human where true is decided.
Ultorg is an efficient, spreadsheet-like user interface for relational databases. Query and edit data across tables and relationships, without SQL.
Anchor is a self-hosted notes app with offline editing, mobile apps, automatic syncing, note sharing, and Docker support.
Event-driven systems only agree eventually. Here’s how we check they actually got there: deadlines, data ownership, and a reconciliation job that walks the floor.
OccupySaaS is a protest movement in code: laid-off developers building clean-room, open-source, drop-in replacements for the SaaS giants. First up: ZeroAuthy (Auth0) and SalesCompel (Salesforce).
json vs jsonb in PostgreSQL 17 and 18, measured on six document shapes: when jsonb is 23% smaller or 41% larger, read speed, GIN, and what it changes.
An API can save an order and crash before publishing the message that tells other services about it.
Postgres 18’s new file_copy_method = clone setting lets you give every git worktree its own copy of your database in seconds, without eating up your disk.
Đang tải bình luận…