<tfoot id='BcmeQ'></tfoot>

    1. <legend id='BcmeQ'><style id='BcmeQ'><dir id='BcmeQ'><q id='BcmeQ'></q></dir></style></legend>
        <bdo id='BcmeQ'></bdo><ul id='BcmeQ'></ul>

        <small id='BcmeQ'></small><noframes id='BcmeQ'>

      1. <i id='BcmeQ'><tr id='BcmeQ'><dt id='BcmeQ'><q id='BcmeQ'><span id='BcmeQ'><b id='BcmeQ'><form id='BcmeQ'><ins id='BcmeQ'></ins><ul id='BcmeQ'></ul><sub id='BcmeQ'></sub></form><legend id='BcmeQ'></legend><bdo id='BcmeQ'><pre id='BcmeQ'><center id='BcmeQ'></center></pre></bdo></b><th id='BcmeQ'></th></span></q></dt></tr></i><div id='BcmeQ'><tfoot id='BcmeQ'></tfoot><dl id='BcmeQ'><fieldset id='BcmeQ'></fieldset></dl></div>

        如何访问默认的 Rails sqlite 数据库?

        时间:2023-08-21
        <legend id='zF6ho'><style id='zF6ho'><dir id='zF6ho'><q id='zF6ho'></q></dir></style></legend>
          <tbody id='zF6ho'></tbody>
      2. <tfoot id='zF6ho'></tfoot>
          <i id='zF6ho'><tr id='zF6ho'><dt id='zF6ho'><q id='zF6ho'><span id='zF6ho'><b id='zF6ho'><form id='zF6ho'><ins id='zF6ho'></ins><ul id='zF6ho'></ul><sub id='zF6ho'></sub></form><legend id='zF6ho'></legend><bdo id='zF6ho'><pre id='zF6ho'><center id='zF6ho'></center></pre></bdo></b><th id='zF6ho'></th></span></q></dt></tr></i><div id='zF6ho'><tfoot id='zF6ho'></tfoot><dl id='zF6ho'><fieldset id='zF6ho'></fieldset></dl></div>

              <small id='zF6ho'></small><noframes id='zF6ho'>

                  <bdo id='zF6ho'></bdo><ul id='zF6ho'></ul>

                  本文介绍了如何访问默认的 Rails sqlite 数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我想在使用 Rails 进行开发时查看我的数据库中的数据(实际上在所有 3 个开发、测试和生产中).我没有接触过配置,所以应该很容易,但我找不到任何可用的信息.

                  I would like to view the data in my DB while developing with Rails (actually in all 3 of them development, test and production). I have not touched the configs, so it should be easy, but I was not able to find any usable info.

                  我不知道连接字符串可能是什么或在哪里输入它,因为 Aptana (v.3) 似乎缺乏我从 Eclipse 知道的旧数据源浏览器视图.有人能指出我正确的方向吗?

                  I have no idea what the connection string could be or where to enter it, since Aptana (v.3) seems to lack the good old data source explorer view I know from Eclipse. Could someone point me into the right direction?

                  我正在使用 linux - Mint 12

                  I am working on linux - Mint 12

                  推荐答案

                  您忽略了您正在使用的操作系统.

                  You have neglected to mention the OS you are using.

                  一种方法是在终端中使用 sqlite3 命令.

                  One way is to use the sqlite3 command in your terminal.

                  sqlite3 db/development.sqlite3
                  

                  但是,对于检查行之类的事情,最好使用 rails 控制台.

                  However, for things like inspecting your rows, you would be better using a rails console.

                  rails c
                  > User.all # Where user is your model.
                  

                  注意:不要直接通过 sqlite3 更改您的数据库架构,如果您来自不同的网络堆栈背景,您可能已经习惯了这一点.这是因为下次运行迁移时,状态将与 Rails 预期的不同.

                  NOTE: Do not change your DB schema directly through sqlite3, something you may be used to if you come from a different web stack background. This is because the next time you run the migrations, the state will be different to what rails expects.

                  这篇关于如何访问默认的 Rails sqlite 数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:无法在 mysql-apt-config [Ubuntu 14.04] 中选择“确定& 下一篇:如何将阿拉伯字符插入到 SQL 数据库中?

                  相关文章

                  最新文章

                • <tfoot id='2RLPU'></tfoot>

                    <small id='2RLPU'></small><noframes id='2RLPU'>

                    <i id='2RLPU'><tr id='2RLPU'><dt id='2RLPU'><q id='2RLPU'><span id='2RLPU'><b id='2RLPU'><form id='2RLPU'><ins id='2RLPU'></ins><ul id='2RLPU'></ul><sub id='2RLPU'></sub></form><legend id='2RLPU'></legend><bdo id='2RLPU'><pre id='2RLPU'><center id='2RLPU'></center></pre></bdo></b><th id='2RLPU'></th></span></q></dt></tr></i><div id='2RLPU'><tfoot id='2RLPU'></tfoot><dl id='2RLPU'><fieldset id='2RLPU'></fieldset></dl></div>

                    <legend id='2RLPU'><style id='2RLPU'><dir id='2RLPU'><q id='2RLPU'></q></dir></style></legend>

                      <bdo id='2RLPU'></bdo><ul id='2RLPU'></ul>