Git Product home page Git Product logo

2bass's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar inponomarev avatar ioanngolovko avatar mgramin avatar packpaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

2bass's Issues

foreign key faciliator

suggested foreign key instruction: /BASS IRRELEVANT VALUE IS {value}/

sets ERRONEOUS VALUES to {value}. All updated values are put to log along with key field values

aka feature

suggested index instruction: /*DB AKA {comma delimieted names}*/

if 2bass sees that index with AKA name exists, then it considers it OK and doesn't make any changes to db

this enables us to use live index rebuilding in PostgreSQL, when we create the same index with new name and then drop the previous one

idempotent table contents

suggested instruction:
/* BASS CONTENTS {table name} [DELIMITER COMMA | TAB | COLON | SEMICOLON | 'USER DELIMITER' ] UPDATE METHOD [REPLACE | UPDATE] [KEEP TRIGGERS [ALL | FOR MATERIALIZED VIEWS | selected trigger] ENABLED] [VERSION {version number}

FILENAME |

INLINE CONTENTS
field1, field2
field1, field2

*/

The idea is to keep checksum for every defined table contents. If checksum (or version) has changed then the contents of table is updated.

Replace method assumes truncating table and inserting new values. Update methods assume inserting new, deleting excess, updating changed.

Operation assumes that indexed and triggers are turned off, but we can explicitly say to leave triggers on. It is necessary, for example, for materialized views.

Indempotent approach may seem resource consuming. But putting table contents to vcs is useful in a limited number of cases. And in most of this cases we need modest tables. That would be good alternative for option field, for example.

not null faciliator

Suggested bass field instruction: /BASS NULL IS {value}/

unlike DEFAULT it doesn't set field DEFAULT property, just sets value if field value is null. IF field's property NOT NULL is set then the instruction is ignored.

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.