Using SQLite in Ruby on Rails

Source: Internet
Author: User
Tags sqlite database ruby on rails
SQLite is a lightweight, embedded, and SQL database without configuration. It is very convenient to use only two files because it does not need to be installed. Sqlite3.dll, sqlite3.exe is about K in total, much smaller than mysql30 M. In addition to downloading the two files mentioned above in rails, you also need to install SQLite-Ruby. For local installation, refer to the Ruby on Rails local installation method. In Windows, the gem is sqlite3.ruby. 1.2.1.mswind32.gem. If it is a Remote Installation, you will be prompted to choose from. After installing rails, add the parameter-D sqlite3. Otherwise, MySQL is used by default, for example, rails demo-D sqlite3. If you need the SQLite management program, you can use the SQLite database browser, which is also a file and does not need to be installed. Add the directory where sqlite3.dlland sqlite3.exe are located to the & Path & environment variable.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.