What is the maximum allowed size for a SQLite database in a Windows Forms application?
Can I use PetaPoco as an ORM, or can you suggest a similar ORM?
Asked
Active
Viewed 649 times
3

Christian Specht
- 35,843
- 15
- 128
- 182

David
- 5,403
- 15
- 42
- 72
3 Answers
6
Concerning your max size question the limit is about 14 terabytes (http://www.sqlite.org/limits.html).
And I think you can use PetaPoco, since this lines can be found in PetaPoco.cs:
enum DBType
{
SqlServer,
SqlServerCE,
MySql,
PostgreSQL,
Oracle,
SQLite
}

Francesco Baruchelli
- 7,320
- 2
- 32
- 40
-
This answer should be accepted since it answers **both** questions. +1 – Robert Koritnik Aug 10 '11 at 19:44
1
Concerning your PetaPoco question:
No, you can't use PetaPoco because it doesn't support SQLite.
Quote from the main page:
Works with SQL Server, SQL Server CE, MySQL, PostgreSQL and Oracle.
If you don't want to usw a full-blown ORM like NHibernate (which suppports SQLite), there are other Micro-ORMs like PetaPoco:
- Dapper (made and used by the folks here at Stack Overflow)
- Massive (by Rob Conery)
Dapper is completely database agnostic, Massive explicitly supports SQLite.

Christian Specht
- 35,843
- 15
- 128
- 182