TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Star Trek database, using SQLite

4 点作者 chungy大约 2 个月前
This isn&#x27;t exactly a new project, it dates back to 2015 and started in PostgreSQL (the &quot;postgresql&quot; tag represents the last state of that database). As a weekend project, I overhauled it to port over to SQLite, partly as an exercise, but also to increase its usability. Since SQLite requires no server to install or administer, and the database is a single file, it&#x27;s now real easy to pass around and play with.<p>While it is biased to Star Trek media that I own and enjoy, it can still be fun to query and get answers to questions you never thought to ask.<p>Example queries:<p>Listing episodes of The Next Generation season 1 by star date: SELECT title, airdate, episode_number, stardate FROM tng WHERE season = 1 ORDER BY stardate;<p>If your birthday is March 15, find the episodes that aired on that day: SELECT series.title AS series, episode.title AS episode, airdate FROM episode JOIN series USING (series_id) WHERE airdate like &#x27;%-03-15&#x27;;<p>Pick a random episode of Enterprise to watch, and display the Blu-ray disc to find it on: SELECT * FROM ent_bluray ORDER BY random() LIMIT 1;

暂无评论

暂无评论