Coder Social home page Coder Social logo

caribou's People

Contributors

anirvan avatar clutchski avatar cosmicboots avatar ribalba 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

caribou's Issues

ALTER / Move-and-Copy

This is a feature request.

SQLITE does not support many of the ALTER statements we are used to in other RDBMS. It would be great if Caribou helped us do effortless ALTERs by doing the move-and-copy workaround for us. It could batch the alters together so that only a single move-and-copy would need to be executed.

I understand that I can do this today by implementing a migration that does this myself, but there may be room for Caribou to provide helper functions to make such a task less error prone / easier / more efficient, especially to those less familiar with this pattern.

I also understand if this is outside the intended scope of caribou, as it presents less "simple" and more "advanced/smart" feature beyond just the migration.

For an example of what I mean, you can check SQLAlchemy's Alembic project which implements this specifically for SQLite databases and is MIT licensed.

How to make caribou work with Pyinstaller?

I'm trying to build my python app with Pyinstaller but I can't figure out how to make caribou work in the built version of the app. Caribou works fine when running the app using python app.py since the migration directories are preserved. In the build version, all files are build into binaries, all in the same directory ... and that leads to caribou failing with

caribou.Error: /tmp/_MEI7FKrIm/app/migrations/main is not a directory.

I'm building my app in pyinstaller's single file mode.

CLI does not invoke properly on windows

Windows doesn't respect the #! line in CLI on the script folder.

I suggest to make the CLI a module and then invoke with

python -m caribou create my_migration

Such that it is consistent across platform.

Will you take a PR for it?

add support for other databases

thinking about adding support for other databases.

some thoughts:

  • keep migrations from depending on caribou, for simplicity's sake
  • pass in the cx string into migration methods, then people are free to do whatever they want with it ... use different db api adapters, sql alchemy, storm, use DDL transactions, etc.

improve command line error messaging

  • if an unexpected error is thrown (e.g. migration syntax error) print the traceback
  • otherwise, print just the error string (e.g. "migration 1234 doesn't exist")

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.