diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-02-03 10:40:50 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-02-03 10:40:50 +0000 |
commit | 0a5e51795bde1f4d6dd3ff49b5af0829c2fdbcdd (patch) | |
tree | 00e64faf3f8cec07d409c4f3d30aac542ff5c095 /Source/SPExportController.m | |
parent | 957b8a38e9bc7a5f3f79eb6521d2adab2de9811a (diff) | |
download | sequelpro-0a5e51795bde1f4d6dd3ff49b5af0829c2fdbcdd.tar.gz sequelpro-0a5e51795bde1f4d6dd3ff49b5af0829c2fdbcdd.tar.bz2 sequelpro-0a5e51795bde1f4d6dd3ff49b5af0829c2fdbcdd.zip |
• improve CSV field mapping method to align file header names with table column names
- first calculate Levenshtein distance; if it is greater than 0 then subtract the length of shared prefix, suffix, and in common character sequence
- avoid mapping of already mapped file header names, instead take the next best match not mapped
Diffstat (limited to 'Source/SPExportController.m')
0 files changed, 0 insertions, 0 deletions