aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSQLParser.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-08-31 21:05:17 +0000
committerrowanbeentje <rowan@beent.je>2009-08-31 21:05:17 +0000
commit934f1d41fa8699b3baba3c4ab7631e136fee14b7 (patch)
tree7dc268c119f3ff881147a085b16a90039bfcb6e9 /Source/SPSQLParser.h
parent046f4962f57099016340fc114e717ca279d8d5b7 (diff)
downloadsequelpro-934f1d41fa8699b3baba3c4ab7631e136fee14b7.tar.gz
sequelpro-934f1d41fa8699b3baba3c4ab7631e136fee14b7.tar.bz2
sequelpro-934f1d41fa8699b3baba3c4ab7631e136fee14b7.zip
Refactor CSV/SQL import structure slightly, and rewrite SQL import:
- SQL import now reads and processes files in full streaming mode, running queries as they are encountered - Memory usage during import is significantly reduced, and should stay within a few megabytes; the significant memory use remaining is for query logging - The progress bar more accurately represents progress and is shown at once (this addresses Issue #320)
Diffstat (limited to 'Source/SPSQLParser.h')
-rw-r--r--Source/SPSQLParser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPSQLParser.h b/Source/SPSQLParser.h
index 022e17bb..73dfe493 100644
--- a/Source/SPSQLParser.h
+++ b/Source/SPSQLParser.h
@@ -54,14 +54,14 @@
*
* It is anticipated that characterAtIndex: is currently the parsing weak point, and that in future
* this class could be further optimised by working with the underlying object/characters directly.
- * This class could also be improved by maintaining an internal parsedTo number to allow streaming
- * processing to occur without repetition.
*/
@interface SPSQLParser : NSMutableString
{
id string;
unichar *stringCharCache;
+ unichar parsedToChar;
+ long parsedToPosition;
long charCacheStart;
long charCacheEnd;
NSString *delimiter;