@@ -30,10 +30,10 @@ public class SqliteAssetCsvImporter : ScriptedImporter
30
30
31
31
[ Header ( "CSV options" ) ]
32
32
[ Tooltip ( "Which separator character will be used when parsing the CSV file." ) ]
33
- [ SerializeField ] private CsvReader . SeparatorChar _csvSeparator = CsvReader . SeparatorChar . Comma ;
33
+ [ SerializeField ] private CsvReader . SeparatorChar _CSVSeparator = CsvReader . SeparatorChar . Comma ;
34
34
35
35
[ Tooltip ( "If true, the original CSV file will also be imported as a TextAsset" ) ]
36
- [ SerializeField ] private bool _importCsvTextAsset = false ;
36
+ [ SerializeField ] private bool _importCSVTextAsset = false ;
37
37
38
38
[ Header ( "Additional SQL" ) ]
39
39
[ Tooltip ( "SQL script that will be run before reading CSV data. Use this for configuring the generated database using PRAGMAs like 'page_size'." ) ]
@@ -53,7 +53,7 @@ public override void OnImportAsset(AssetImportContext ctx)
53
53
{
54
54
tempDb . Execute ( _SQLBeforeReadingCSV ) ;
55
55
}
56
- tempDb . ImportCsvToTable ( _tableName , stream , _csvSeparator ) ;
56
+ tempDb . ImportCsvToTable ( _tableName , stream , _CSVSeparator ) ;
57
57
if ( ! string . IsNullOrWhiteSpace ( _SQLAfterReadingCSV ) )
58
58
{
59
59
tempDb . Execute ( _SQLAfterReadingCSV ) ;
@@ -64,7 +64,7 @@ public override void OnImportAsset(AssetImportContext ctx)
64
64
ctx . AddObjectToAsset ( "sqlite" , asset ) ;
65
65
ctx . SetMainObject ( asset ) ;
66
66
67
- if ( _importCsvTextAsset )
67
+ if ( _importCSVTextAsset )
68
68
{
69
69
var textAsset = new TextAsset ( File . ReadAllText ( assetPath ) )
70
70
{
0 commit comments