caribou icon indicating copy to clipboard operation
caribou copied to clipboard

add support for other databases

Open clutchski opened this issue 16 years ago • 1 comments

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.

clutchski avatar Nov 15 '09 17:11 clutchski

should have this interface:

def upgrade(database): # and can support this kind of calls conn = database.get_connection() # vanilla dbapi connection, with default adapter conn = database.get_connection(pgpsql) # with a specific adaptpr # or if we want things to be explicit url = database.get_url() # this can be passed into sqlalchemy/whatever else

clutchski avatar Nov 21 '09 21:11 clutchski