从哪里开始阅读SQLite源代码? [英] Where to begin reading SQLite source code?

查看:94
本文介绍了从哪里开始阅读SQLite源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解sqlite的实现方式.并且,想要阅读源代码(我已经下载了源代码).我应该开始看代码的哪一部分?

I want to understand how sqlite is implemented. And, want to read the source code( I have already downloaded the source). Which part of the code I should start looking at?

推荐答案

SQLite 文档页面有一个名为 SQLite技术/设计文档的精彩部分,其中包含有关SQLite内部的文章.我认为在开始阅读源代码本身之前,必须先阅读并理解这些内容.

The SQLite documentation page has a great section named SQLite Technical/Design Documentation with articles on the internals of SQLite. I think it's essential to read and understand those before you start reading the source code itself.

那里有很多宝石,但您最感兴趣的可能是 SQLite的体系结构,正如其描述所言:

There are many gems there, but the most interesting for you is probably Architecture of SQLite, as its description says:

SQLite库,对那些谁有用 想破解代码.

An architectural overview of the SQLite library, useful for those who want to hack the code.

该页面包含一个漂亮的SQLite代码框图:

That page contains a nice block diagram of SQLite's code:

然后解释在源代码中何处找到每个这样的块的实现.

And then explains where in the source to find the implementation of each such block.

Oreilly迷你书(简称快捷方式"(链接到这里 )命名为"Inside SQLite",它进入了SQLite的设计和代码,以解释其工作原理.

Another great resource (linked from here) is the Oreilly mini-book ("Short Cut") named "Inside SQLite" which goes into the design and code of SQLite to explain how it works.

这篇关于从哪里开始阅读SQLite源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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