1. codernity
  2. CodernityDB
  3. Issues
Issue #2 resolved

Database.create() should throw DatabaseException

Jesse Dhillon
created an issue

Run the following code twice, and the second iteration will throw CodernityDB.index.IndexException('Already exists') from index.create_index

db = Database('/foo/bar')

If it is an error to create a database which already exists, then perhaps there should be some exception thrown which is more appropriate than IndexException. Also, http://labs.codernity.com/codernitydb/api.html#database should indicate that create() throws an exception.

Comments (2)

  1. Log in to comment