How to connect to an in-memory sqlite3 database?

Hi, I'm new to PyCharm (using version 3.0) and would like to connect the Database panel to the in-memory sqlite3 database I use for testing of my Django web app, i.e. the database engine is "django.db.backends.sqlite3" and the database name is ":memory:". How do I do this? Thanks!
1 comment
Comment actions Permalink
def create_connection():
conn = None
conn = sqlite3.connect(':memory:')
return conn
except Error as e:
print(e, "can not connect")

return conn

if __name__ == '__main__':
create_connection = ()

Please sign in to leave a comment.