Giter Site home page Giter Site logo

--ddl 参数不生效啊 about bingo2sql HOT 5 CLOSED

guolong123 avatar guolong123 commented on June 8, 2024
--ddl 参数不生效啊

from bingo2sql.

Comments (5)

hanchuanchuan avatar hanchuanchuan commented on June 8, 2024

见文档说明. ddl的表结构暂不支持回滚的(这个回滚的意义不太大).
--ddl 解析ddl,仅支持正向解析。可选。默认false。

from bingo2sql.

guolong123 avatar guolong123 commented on June 8, 2024

在升级的时候,会有些结构变动语句,给表加字段啥的。如果没有这些语句的回滚,也有可能造成回滚后业务数据丢失啊,为啥会意义不大呢?

from bingo2sql.

hanchuanchuan avatar hanchuanchuan commented on June 8, 2024

DDL的回滚只能是逻辑性的.
比如说你删除了一个字段, 数据肯定是找不回来的. 这个数据没有记录binlog.

from bingo2sql.

guolong123 avatar guolong123 commented on June 8, 2024

了解了,要回滚必须要知道sql执行前的状态。

from bingo2sql.

hanchuanchuan avatar hanchuanchuan commented on June 8, 2024

是的,所以binlog解析通常仅用于DML操作。

from bingo2sql.

Related Issues (20)

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.