下面是一些创建sqlite数据库的代码。有没有办法限制此数据库可以增长到的最大大小?
int i, r;
sqlfs_t *sql_fs = calloc(1, sizeof(*sql_fs));
assert(sql_fs);
for (i = 0; i < (int)(sizeof(sql_fs->stmts) / sizeof(sql_fs->stmts[0])); i++)
{
sql_fs->stmts[i] = 0;
}
r = sqlite3_open(db_file, &(sql_fs->db));
if (r != SQLITE_OK)
{
fprintf(stderr, "Cannot open the database file %s\n", db_file);
return 0;
}