V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yakczh
V2EX  ›  Python

sqlalchemy 建的库建到哪去了?

  •  
  •   yakczh · Aug 19, 2013 · 2864 views
    This topic created in 4641 days ago, the information mentioned may be changed or developed.
    engine=sqlalchemy.create_engine("sqlite:///tutorial.db",echo=True)

    这个tutorial.db建到哪了?是在内存里面,当前路径下没找到
    4 replies    1970-01-01 08:00:00 +08:00
    justfly
        1
    justfly  
       Aug 19, 2013
    你要首先确定这个在当前目录下,不然你运行会报错的。不是他创建,而是你创建好它使用。
    roricon
        2
    roricon  
       Aug 20, 2013
    是建立到内存里面,只有session commit后才会生成sqlite库文件。
    库文件会生成在当前的工作目录。
    mkeith
        3
    mkeith  
       Aug 20, 2013
    看下根目录和用户主目录
    batfree
        4
    batfree  
       Aug 20, 2013
    /tutorial.db 应该是在根目录下面吧。如果没有权限,应该是失败才对。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2631 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 11:09 · PVG 19:09 · LAX 04:09 · JFK 07:09
    ♥ Do have faith in what you're doing.