vitess源码阅读笔记笔记之基本概念与架构图

vitess中需要理解的基本概念

DDL和DML的区别
SQL statements are often divided into three categories:
DML (Data Manipulation Language). These SQL statements are used to retrieve and manipulate data. 
    This category encompasses the most fundamental commands including DELETE, INSERT, SELECT, and UPDATE. 
    DML SQL statements have only minor differences between SQL variations. DML SQL commands include the following:
DELETE to remove rows.
INSERT to add a row.
SELECT to retrieve row.
UPDATE to change data in specified columns.
DDL (Data Definition Language). These SQL statements define the structure of a database, 
including rows, columns, tables, indexes, and database specifics such as file locations.
DDL SQL statements are more part of the DBMS and have large differences between the SQL variations. DML SQL commands include the following:
CREATE to make a new database, table, index, or stored query.
DROP to destroy an existing database, table, index, or view.
DBCC (Database Console Commands) statements check the physical and logical consistency of a database.
DCL (Data Control Language). These SQL statements control the security and permissions of the objects or parts of the database(s). 
DCL SQL statements are also more part of the DBMS and have large differences between the SQL variations. DML SQL commands include the following:
GRANT to allow specified users to perform specified tasks.
DENY to disallow specified users from performing specified tasks.

REVOKE to cancel previously granted or denied permissions. 

 

 

好的架构图让人一看就明白系统的整个架构,vitess的架构图虽然简单,但准确的表述了模块和模块关系。

注意看图的顺序是从上到下,逆时针方向。

 

 

接下来的笔记中再来慢慢的抽丝剥茧,阅读代码时要始终想着代码是哪个模块,在整个系统中扮演的角色,以免过度迷失在细节中。 

转载于:https://www.cnblogs.com/gongaut/archive/2012/04/05/2433201.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值