1 | initial version |
Here is the cause of your trouble: #10353. sage.databases.db.Database
has been removed because it uses ZODB which is no more included in Sage.
What you expect will not work. The __init__
method of jCurveDatabase
in euler_database.py does not initialize properly a SQL database (you need to provide a skeleton to do so). On the other hand, it is straightforward to adapt the code in order to use SQLDatabase (there are many examples within that file). But, if I am not mistaken, your database looks more like a list of objects (rather than a list of objects with their invariants). The SQL framework is perhaps not the simplest way to achieve it. You may have a look at the Conway database in sage.databases.conway
.
2 | No.2 Revision |
Here is the cause of your trouble: #10353. sage.databases.db.Database
has been removed because it uses ZODB which is no more included in Sage.
What you expect will not work. The __init__
method of jCurveDatabase
in euler_database.py does not initialize properly a SQL database (you need to provide a skeleton to do so). On the other hand, it is straightforward to adapt the code in order to use SQLDatabase (there are many examples within that file). But, if If I am not mistaken, your database looks more like a list of objects (rather than a list of objects with some of their invariants). The SQL framework is perhaps not the simplest way to achieve it. You may have a look at the Conway database in sage.databases.conway
. which is simply a dictionnary which is stored on hard drive using python pickling.