roastduck / db Goto Github PK
View Code? Open in Web Editor NEWSimple SQL database
Simple SQL database
表名、数据库名超过额定最大长度
列数超过限制
非簇集索引数目超过限制
单个记录字节数超过限制(注意:为使索引正常工作,一个页至少要能存两条记录)
不存在要查询的列
删除Table时破坏外键约束
创建主索引时允许null
整数溢出
主索引中重复的项
重复的索引
第一阶段比我想象得复杂,但其实更好分工了。
现在主要分为两个部分:在页中管理raw records(只包含字节串等raw信息),和把raw records parse成真正的不同类型的值。我实现了一个RawRecord
struct存储这种中间状态。
@ZHANGChongzhi 负责实现DataPage
类(头文件已经上传),在页中储存/查询/删除raw records。暂时只需要管理某个页中的信息,多个页的情况似乎可以直接用索引搞掂。
我负责实现TableStruct
类(头文件已经上传),管理并储存表结构,按表结构把raw records parse成真正的不同类型的值。
注1:课程给出的页文件系统已上传到src/filesystem
,不包含文档。它的代码似乎有点乱,而且所有逻辑都写在了header里,如果出问题了可能需要改他的代码:(
注2:/**
和///
开头的注释是用来用Doxygen自动生成文档的
作业要求ppt上(YYYY/MM/DD)和样例测例里(YYYY-MM-DD)日期格式不一样,助教说以测例为准。并且,如果实际输入没有前导零,不报错。所以实际的格式应为Y-M-D
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.