equal
deleted
inserted
replaced
73 { |
73 { |
74 } |
74 } |
75 |
75 |
76 void CMdSSqLiteConnection::OpenDbL( const TDesC& aDbFileName ) |
76 void CMdSSqLiteConnection::OpenDbL( const TDesC& aDbFileName ) |
77 { |
77 { |
78 _LIT8( KMdsSqlDbaConfig, "cache_size=8000; page_size=2048; encoding=\"UTF-16\";"); |
78 _LIT8( KMdsSqlDbaConfig, "cache_size=2000; page_size=2048; encoding=\"UTF-16\";"); |
79 _LIT8( KBlacklistSqlDbaConfig, "cache_size=4000; page_size=1024; encoding=\"UTF-16\";"); |
79 _LIT8( KBlacklistSqlDbaConfig, "cache_size=1500; page_size=1024; encoding=\"UTF-16\";"); |
80 |
80 |
81 delete iDbFileName; |
81 delete iDbFileName; |
82 iDbFileName = NULL; // in case AllocL leaves |
82 iDbFileName = NULL; // in case AllocL leaves |
83 iDbFileName = aDbFileName.AllocL(); |
83 iDbFileName = aDbFileName.AllocL(); |
84 |
84 |
637 // save current find operation which will continue when diable transaction |
637 // save current find operation which will continue when diable transaction |
638 iNotFinishFindQuery = &aQuery; |
638 iNotFinishFindQuery = &aQuery; |
639 } |
639 } |
640 } |
640 } |
641 |
641 |
|
642 void CMdSSqLiteConnection::DoAnalyzeL() |
|
643 { |
|
644 _LIT( KAnalyze, "ANALYZE;"); |
|
645 |
|
646 RRowData emptyRow; |
|
647 CleanupClosePushL( emptyRow ); |
|
648 ExecuteL(KAnalyze, emptyRow); |
|
649 CleanupStack::PopAndDestroy( &emptyRow ); |
|
650 } |
642 |
651 |
643 TInt CMdSSqLiteConnection::DeleteAndReCreateDB( const HBufC* aDbFileName, |
652 TInt CMdSSqLiteConnection::DeleteAndReCreateDB( const HBufC* aDbFileName, |
644 const RSqlSecurityPolicy& asqlSecurityPolicy, |
653 const RSqlSecurityPolicy& asqlSecurityPolicy, |
645 const TDesC8* aKMdsSqlDbaConfig ) |
654 const TDesC8* aKMdsSqlDbaConfig ) |
646 { |
655 { |