i tried using web.py framework monetdb.
this implementation code :
import web render = web.template.render('templates/') db = web.database(dbn = 'monetdbd', user = 'monetdb', pw = 'monetdb', db = 'test') urls = ( '/','index' ) class index: def get(self,name): xselect = db.select(x) return render.index(xselect) if __name__ == "__main__": app = web.application(urls,globals()) app.run() i have got following error message while running python code.py
traceback (most recent call last): file "code.py", line 4, in <module> db = web.database(dbn = 'monetdbd', user = 'monetdb', pw = 'monetdb', db = 'test') file "/usr/local/lib/python2.7/dist-packages/web.py-0.37-py2.7.egg/web/db.py", line 1145, in database raise unknowndb, dbn web.db.unknowndb: monetdbd the database server running:
bmartis@bmartis-virtualbox:~/desktop/monetdb/web$ ps ucx| grep -i monetdb bmartis 2482 0.0 0.0 63956 2476 ? ssl jun29 0:33 monetdbd bmartis@bmartis-virtualbox:~/desktop/monetdb/web$ i don't understand wrong db definition here. what's right syntax or monetdb doesn't have support this?
it looks likes web2py doesn't support monetdb @ moment. can find full list of supported databases , required drivers in chapter 6 of web2py complete reference manual. of today looks below:
- sqlite -
sqlite3orpysqlite2orzxjdbc(on jython) - postgresql -
psycopg2orpg8000orzxjdbc(on jython) - mysql -
pymysqlormysqld - oracle -
cx_oracle - mssql -
pyodbcorpypyodbc - firebird -
kinterbasdborfdborpyodbc - db2 -
pyodbc - informix -
informixdb - ingres -
ingresdbi - cubrid -
cubriddb - sybase -
sybase - teradata -
pyodbc - sapdb -
sapdb - mongodb -
pymongo - imap -
imaplib
Comments
Post a Comment