Giter Site home page Giter Site logo

db's People

Contributors

roastduck avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

zhengly123

db's Issues

备忘:需要处理的异常

  • 表名、数据库名超过额定最大长度

  • 列数超过限制

  • 非簇集索引数目超过限制

  • 单个记录字节数超过限制(注意:为使索引正常工作,一个页至少要能存两条记录)

  • 不存在要查询的列

  • 删除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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.