Permalink
Browse files

Also show a sqlite connection string for a persistent db

  • Loading branch information...
1 parent fb6d925 commit 956950a666da880bd64c647f9e679151a020f101 @snusnu snusnu committed Sep 22, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 getting-started.markdown
View
@@ -53,6 +53,9 @@ You need make sure this is set before you define your models.
# An in-memory Sqlite3 connection:
DataMapper.setup(:default, 'sqlite::memory:')
+ # A Sqlite3 connection to a persistent database
+ DataMapper.setup(:default, 'sqlite:///path/to/project.db')
+
# A MySQL connection:
DataMapper.setup(:default, 'mysql://localhost/the_database_name')

0 comments on commit 956950a

Please sign in to comment.