Source

Socrates / test / create.py

Full commit
#!/usr/bin/env python
# -*- coding:utf-8 -*-

import sys
import socrates.core

uri = "sqlite://"
schema = None
if len(sys.argv) > 1:
    uri = sys.argv[1]
if len(sys.argv) > 2:
    schema = sys.argv[2]

storage = socrates.core.Storage(uri=uri, create=True, schema=schema)
print storage.registed_type.keys()