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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Best way to put a database on the web?

2 点作者 djb_hackernews超过 6 年前
I have some data that is currently in an xlsx. I&#x27;d like to put this data on the web, as is, so that it is queryable by anyone via a UI. ie someone visits mydatabase.com and they can perform ad hoc queries (SQL, some slick UI, whatever works) on the data.<p>The data is not big, it&#x27;s a single sheet with about 20 columns and less than a million rows (however the xlsx file is too large to import in to google drive sheets, and attempts to save as csv have failed). I don&#x27;t care if it is SQL, cloud based, some other service. I&#x27;m not concerned about cost. I don&#x27;t need authentication or authorization or anything. I&#x27;m optimizing for just getting the data out there and ease of querying. I would like to be able to see visitor analytics if possible.<p>Before I go writing a webapp to do this, there must be something off the shelf?

4 条评论

ben165超过 6 年前
Oh dear, I think your file is already too big to handle it easily. How big is the file?<p>First, get the data somehow to plain text. LibreOffice is maybe able to convert it to an CSV file. Otherwise you have to open it with Python (for example) to export the data to a text file or directly to a database.<p>Best way is to find a web hoster which allows you to make the database public. With this solution you can transfer the XLSX columns one by one (with Python) to your online database. After finishing change the database from public to local.<p>An easy UI in PHP isn&#x27;t really a thing.
评论 #19064514 未加载
0xdeadc0de超过 6 年前
Checkout <a href="https:&#x2F;&#x2F;datasette.readthedocs.io" rel="nofollow">https:&#x2F;&#x2F;datasette.readthedocs.io</a>
karmakaze超过 6 年前
Try looking for a separate xlsx to csv converter that doesn&#x27;t have the limitation saving to csv. That&#x27;ll get you part way to being able to import the csv into a db or something you can query.<p>Edit: you&#x27;ll likely have better luck with offline utilities, online ones could fail on size.
ablerman超过 6 年前
Something like indexDB our one of the layers on top if it are probably good solutions.<p>CSV is probably easier to work with, if you&#x27;re having trouble converting from xlsx to csv, DM me and I can help out.<p>My email is in my profile.