实现数据库——如何开始 [英] Implementing a database -- How to get started

查看:17
本文介绍了实现数据库——如何开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力学习编程.我研究过 Java 和 Python,我对它们的语法很满意.最近,我想利用我学到的知识从头开始编写一个有形的软件.

I've been trying to learn programming for a while. I've studied Java and Python, and I'm comfortable with their syntax. Recently, I wanted to use what I've learnt with coding a tangible software from ground up.

我想实现一个数据库引擎,一种 NoSQL 数据库.我整理了一个小文档,在我的整个编码过程中都遵循了规范.但我只知道一堆关键词.我不知道从哪里开始.

I want to implement a database engine, sort of a NoSQL database. I've put together a small document, sort of a specification to follow throughout my adventure of coding it. But all I know is a bunch of keywords. I don't know where to start.

有人可以帮助我了解如何收集此类工作所需的知识以及学习的顺序吗?我已经搜索了文档,但我觉得我最终会找到不相关/错误的内容,或者从错误的点开始,因为实现一个完整的数据库引擎是(似乎是)一项真正复杂的任务.

Can someone help me find out how to gather the knowledge I need for this kind of work and in what order to learn things? I have searched for documents, but I feel like I'll end up finding unrelated/erroneous content or start from a wrong point, because implementing a complete database engine is (seeming to be) a truly complicated task.

我不想表达我更喜欢论文、白皮书和 (e) 书籍而不是其他项目的代码,因为我问过一个人们通常以 的形式回答的问题读取项目 - x' 源代码".我还没有达到舒适阅读和理解源代码的水平.

I wan't to express that I'd prefer theses and whitepapers and (e)books to codes of other projects, because I've asked a question of kind in which people usually get answered in the form of "read project - x' source code". I'm not at the level of comfortably reading and understanding source code.

推荐答案

首先,你可以看看 How to编写一个简单的数据库引擎.虽然它专注于 SQL 引擎,但答案中仍然有很多好的材料.

First, you may have a look that the answers for How to write a simple database engine. While it focus on a SQL engine, there is still a lot of good material in the answers.

否则,一个好的项目教程是实现一个B-Tree 数据库类.示例代码是用 C++ 编写的,但对所做的事情和原因的描述可能是您无论如何都想看的.

Otherwise, a good project tutorial is Implementation of a B-Tree Database Class. The example code is in C++, but the description of what is done and why is probably what you'll want to look at anyway.

此外,还有 设计和实现结构化MSDN 上的存储(数据库引擎).那里有大量信息可以帮助您完成学习项目.

Also, there is Designing and Implementing Structured Storage (Database Engine) over at MSDN. Plenty of information there to help you in your learning project.

这篇关于实现数据库——如何开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆