brew install --cask super- 近 30 天安装
- 4
- App榜第 2448
- 近一年安装
- 67
- 365 天累计
- 最新版本
- 0.5.0
- 下载大小
- 16MB
- gz
- 更新节奏
- 每月
- 近 30 天 2 个版本
介绍
SuperDB 是一款命令行分析数据库,可用于处理关系表和 JSON 等半结构化数据。它将两者纳入共同的数据模型,并使用强类型且动态类型化的值,因此可以容纳异构记录,而不要求所有输入都遵循同一固定架构。
- 使用 SuperSQL 查询数据;该 SQL 方言扩展了管道语法和快捷写法。
- 处理 JSON、CSV、Parquet 和 Arrow 流等常见格式;项目还定义了 SUP、BSUP 和 CSUP 数据格式。
- 使用
super命令查询本地文件,以及可通过 HTTP 端点或 S3 路径访问的数据。查询引擎可在本地运行,无需存储引擎。 - 可用于数据整理、分析和搜索工作负载。
使用 brew install --cask super 安装命令行工具。此 cask 会将 super 二进制文件安装到 Homebrew 的 bin 目录。开始使用时,可运行 super 并提供要查询的数据;SuperSQL 语法和命令请参阅项目文档。
SuperDB 是命令行工具,并非另行介绍的 SuperDB Desktop 应用。项目说明 SuperSQL 仍在演进,其语法和语义仍在开发中。
来源:SuperDB 项目 · Homebrew cask
基本信息
- 芯片
- Apple 芯片 · Intel
- 自动更新
- 否
- 仓库
- GitHub 仓库 · 0 天前更新★1,577
- Homebrew
- 可以安装,由 Homebrew 更新
- 其他名称
- super
- 主页
- superdb.org
- 软件包标识符
- super
核查日期
0.5.0 更新内容
新版本 · 来自 GitHub Release
Highlights
- The algebraic data model and a blog: The docs now open with a chapter on the algebraic data model behind SuperDB, and a new blog starts with posts on the sum type hiding in GitHub Archive JSON and on JSON's map-or-record problem.
- Faster aggregations: For faster performance, aggregations and
distinctnow use a vectorized hash table, and scans of BSUP files read less data for queries that use only a value's type, a type assertion, or some of a record's fields. - AI agents via MCP:
super db mcpandsuper db serve -mcplet AI agents describe, query, and load a database through the Model Context Protocol. - Working with sum types: Type assertions (e.g.,
x.),(int64) ?? 0matchexpressions on a value's type, functions that construct types, and type narrowing in the type checker make values of union types easier to work with. - Consistent comparisons: Comparisons are now type-checked by the same rules at compile time and at run time, and values of every type have an order.
BREAKING CHANGES
Users of earlier releases should expect to regenerate any saved binary files and databases from their original sources, and to update some queries. If you have valuable saved data you can't easily regenerate, please speak up on community Slack or open an issue for assistance.
- BSUP files and databases written by earlier releases, or by builds of
mainsince v0.4.0, can't be read by this release and fail with aversion mismatcherror. The BSUP format has changed for faster type handling, and the database version has advanced with it (#7605, #7609, #7619, #7726, #7727). - Comparisons are no longer polymorphic. Comparing values of different types (e.g.,
1 =, which was= "a"false) now converts the operands when possible and is otherwise an error, reported by the compiler when the types are known and as an error value at run time otherwise. Theinoperator now reports the same errors at run time as at compile time.compare()still compares values of any types (#7663, #7667). - Static type checking is stricter. These are now compile errors: arithmetic on a union with a non-numeric type (e.g.,
x+1wherexisint64|string; narrow it first with a type assertion likex.or a filter like(int64) ?? 0where is(x, <int64>)), a reference insideok()to a field that no input can have, andLIKEon a value that isn't a string (e.g.,bytes, where it was silentlyfalse) (#7652, #7670, #7698). - After an outer join, the side that may be unmatched is now typed as possibly missing, so a bare reference such as
right.is a compile error where it wascolor error("no such field right")at run time. Useok()or?., which now turns a missing field intonone, e.g.,this?.(#7704).right?. ?? "unpainted"color unnestno longer treats a two-field record specially, sounnest {id,a}is now an error. Useunnest a with id, which puts the element first ({a:1,id:1}), or name the element with:=, as inunnest item:=(#7600).a with idgrep()now always treats its pattern as a regular expression, so a pattern without metacharacters is now case-sensitive, where it was a case-insensitive substring search (e.g.,grep("BAR", "foobar")is nowfalse). Start the pattern with(?i)to ignore case. Search expressions such assearch BARare unchanged (#7723).- The unnamed columns of SQL
VALUESrows and tuples are now namedcolumn1,column2, and so on, as in PostgreSQL, where they werec0,c1(e.g.,values (1,2)is now{column1:1,column2:2}) (#7669).
Added
- Model Context Protocol (MCP) support for AI agents:
super db mcpruns an MCP server over standard input and output, andsuper db serve -mcpadds an MCP endpoint to a running service (see also-mcp.andreadonly -mcp.). Its tools list and describe tables, run queries, and load data, including CSV with ainclude delimargument (#7602, #7677). - Type assertions:
e.is(T) eif it has typeTandnoneotherwise, e.g.,x., or(int64) ?? 0x.to pick a member of a sum type (#7592).(Push)?. ref matchexpressions select a result by the type of a value, e.g.,match this when int64 "int" when string "str" else "other"(#7595, #7604).- New functions that construct types from other types:
array_type(),enum_type(),error_type(),fusion_type(),map_type(),named_type(),option_type(),record_type(),set_type(), andunion_type(), e.g.,array_type(<int64>)is<[int64]>(#7579). - The type checker now narrows types after a filter, e.g., after
where is(x, <int64>),xis treated as anint64(#7629). - New
supertypeof()function, which returns a value's type including any fusion types, whichtypeof()leaves out (#7577). - New
has()function, which tests whether a record (or record type) has a field or a map has a key (#7635). - Records can now be cast to maps (e.g.,
map{string:any}) and maps to records (#7591). - Materialized subqueries:
let q = materialized (.,. . ) with t as materialized (., and. . ) values materialized (.run their query once and reuse its output (#7640).. . ) - The
outputoperator can now end a subquery (including the body ofunnest .), sending its values to the query's output (#7639).. into. fromwith a computed (f-string) URL now accepts themethod,headers, andbodyoptions, and whenfromhas a parent, these options are evaluated for each input value (#7624).- New
delimoption onfromfor CSV sources, e.g.,from data., and on SQLcsv (delim ';')FROM(#7675). super -c <query> -- -andsuper db -c <query> -read the lines of standard input into theargsconstant (#7574).
Changed
- A
nonevalue (e.g., fromok()or?.) is now dropped from query output, and a pipe subquery that produces no values is nownonerather thannull, so it disappears from a record, array, or map (e.g.,{s:(unnest a | where this > 1)}is{}where it was{s:null}). SQL subqueries still givenull(#7584, #7635). optionize()now treats a field whose type includesnulllike a missing field (e.g.,{y?:string}rather than{y?:string|null}), and castingnullto an option type that doesn't admitnullnow givesnone(#7590).- Accessing a field of a
nullrecord now givesnullrather than an error, and the fields of a nullable record (e.g.,null|{b:int32}) can now be accessed (#7613, #7617). - The comparison operators
<,<=,>, and>=now order values of every type, includingbool(false < true),net, arrays, sets, maps, records, enums, and type values, and NaN now sorts after all other numbers in comparisons,compare(), andsort(#7664, #7665, #7674, #7685, #7687, #7689, #7690, #7706, #7707, #7709, #7711). under()of a value of a named union type now removes only the name, so the value keeps its union type (e.g.,under(1::U)is1::(int64|string)where it was1) (#7620).- JSON input is now batched by size as well as by count, with a batch ending at 16 MB of input by default (set with the new
-json.flag), so inputs with large values use much less memory (#7701).inputcapbytes
Fixed
- Fix
distinctreturning duplicate values when it ran in parallel (e.g., on BSUP files) (#7589). - Fix
switchsending a value down a case whose result wasnullor not a Boolean, and a related panic (#7632). - Fix filters after an outer join returning extra rows, e.g.,
LEFT JOIN .returned every left row. An outer join is now turned into an inner join when such a filter can't be true for unmatched values, so the filter is still pushed down (#7703, #7705).. WHERE p.. color= 'red' - Fix subtracting two timestamps, which gave a timestamp rather than a duration (#7593).
- Fix
bucket()returning constant values unchanged (e.g., timestamps in a BSUP frame that all have the same value, or SQLCAST(.of a constant), and rounding up rather than down before 1970 and for negative durations (#7713, #7716).. AS DATE). - Fix
position()counting bytes rather than characters (#7720). - Fix search expressions and
grep()matching the wrong values inside arrays, sets, and maps after a filter,searchpanics on nulls and on unions inside errors, andhas_error()panics and wrong results after a filter (#7644, #7645, #7646). - Fix the JSON reader splitting a number that straddled a 512 KiB buffer boundary, and typing an empty array as
[missing]when the same field is a non-empty array elsewhere. Fix JSON output panicking on infinite and NaN floats, which are now written as the strings"+Inf","-Inf", and"NaN"(#7578, #7724, #7725). - Fix reading BSUP frames larger than 100 MB, a race that could panic with
type "foo" redefinedor give wrong values when a query reads the same BSUP file more than once, and lost type names and panics when projecting fields from a union of named record types (#7598, #7642, #7651). - Fix
super dbpanics loading values of a named record type into a sorted table and compacting a table of mixed types, a crash when filtering a table with more than one data object, and the service's/endpoint (#7661, #7686, #7699).compile - Fix
unnestof an array expression whose elements all disappear (e.g., spreads of non-arrays), and panics afterunnestorvaluesover values of mixed types (#7612, #7672). - Fix casting
noneto a named type, which gave a wrong value (e.g.,-128::named), and the field name derived from a?.expression (e.g.,put o?.added a field namedy "o?.) (#7601, #7676).y" - Fix SQL queries dropping columns when the input mixes a named record type with other record types (#7603).
- Fix writing Parquet when a field from
fuseisnullwherever it's present, which failed withunsupported type: not implemented: support for DENSE_UNION(#7694). - Fix a leading UTF-8 byte order mark (as written by Excel and Windows Notepad) ending up in the first CSV or TSV column name, or making JSON, SUP, and Zeek input fail to parse or be auto-detected. It's now skipped (#7668).
- Fix subqueries over a computed
from(e.g.,[from f"{this}"]) returning nothing or hanging after an earlier value hit an error (#7662). - Fix a record spread of a union value, which contributed no fields (#7719).
- Fix panics: in
substring(); when a user function calls an unknown function; when a recursive function is used as an operator (now an error asking forvaluesorwhere); when indexing gives an error (e.g.,[1][2]); in a conditional expression over database data; and infromwith a computed path over mixed-type input (#7583, #7627, #7658, #7659, #7660, #7678).
Performance
- Faster aggregations and
distinct, using a new vectorized hash table (#7607, #7631, #7643, #7648, #7650, #7654, #7655, #7656). - Scans of BSUP files read only types, not values, for queries that use only a value's type (e.g.,
typeof()orkind()), and read only the selected member of a union for a type assertion (#7653, #7657, #7683). - Fields of a
valuesrecord that nothing downstream uses are no longer read from files (#7587, #7673). - Faster
inwith a constant list, and faster comparisons of dictionary-encoded columns with constants (#7679, #7680, #7696, #7721). - Faster field access through unions with
missing, as in fused JSON data (#7708). - Faster queries over values of mixed types and unions (#7691, #7692, #7693, #7717).
- Faster conditional (
?:) expressions, notably in recursive functions, and less memory used byany()(#7586, #7596).
如何在 Mac 上安装 SuperDB
不用 Homebrew 安装
按芯片下载 Homebrew 使用的文件: 安装细节
卸载 SuperDB 与可选的数据清理
brew uninstall --cask super普通卸载会删除应用本身,设置和缓存会保留。
关于 SuperDB 的常见问题
SuperDB 安全吗?
SuperDB 收录在 Homebrew 官方软件库中,没有被停用。自 2026 年 9 月起,Homebrew 会停用没有通过 macOS Gatekeeper 检查的应用。安装时,Homebrew 会用 SHA-256 校验值核对来自 github.com 的安装包。过去 30 天,它通过 Homebrew 安装了 4 次。
SuperDB 有公开的 GitHub 仓库吗?
SuperDB 有公开的 GitHub 仓库(https://github.com/superdb/super),但 OpenNavo 尚未核实其 OSI 许可证。
怎样在 Mac 上彻底卸载 SuperDB?
运行 brew uninstall --cask super。
SuperDB 支持 Apple 芯片(M1 及更新)的 Mac 吗?
支持。Homebrew 会为 Apple 芯片和 Intel 芯片的 Mac 分别下载不同的安装包。
SuperDB 的最新版本是多少?
最新版本是 0.5.0,Homebrew 收录于 2026年11月26日。运行 brew upgrade --cask super 即可更新。
安装 SuperDB 还会装上什么?
还会装上 1 个命令行工具:super。
相似应用
- SQLPro for SQLite一款 macOS SQLite 管理应用,可创建表、运行查询、筛选数据,并保存查询历史和收藏。
- DBeaver Ultimate Edition桌面数据库管理工具和 SQL 客户端,提供云连接、数据编辑与管理功能。
- DB Pro一款桌面数据库工具,可浏览和编辑数据、运行 SQL,并管理查询与仪表板。
- DBeaver Team Edition面向 macOS 的桌面数据库客户端,支持 Team Edition 共享工作区、SQL 开发、数据管理和团队协作。