Skip to content

Commit d384dda

Browse files
committed
Change SQL script importer names
1 parent 1a0635a commit d384dda

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed

Editor/SQLAssetDatabaseImporter.cs renamed to Editor/SQLScriptDatabaseImporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
namespace SQLite.Editor
2727
{
2828
[ScriptedImporter(0, null, new[] { "sql" })]
29-
public class SQLAssetDatabaseImporter : ScriptedImporter
29+
public class SQLScriptDatabaseImporter : ScriptedImporter
3030
{
3131
[Header("SQLite asset options")]
3232
[Tooltip("Flags controlling how the SQLite connection should be opened. 'ReadWrite' and 'Create' flags will be ignored, since SQLite assets are read-only.")]

Editor/SQLAssetTextImporter.cs renamed to Editor/SQLScriptTextImporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
namespace SQLite.Editor
2727
{
2828
[ScriptedImporter(0, "sql")]
29-
public class SQLAssetTextImporter : ScriptedImporter
29+
public class SQLScriptTextImporter : ScriptedImporter
3030
{
3131
public override void OnImportAsset(AssetImportContext ctx)
3232
{

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This package provides the excelent [SQLite-net](https://github.com/praeclarum/sq
1818
- [SQLiteAsset](Runtime/SQLiteAsset.cs): read-only SQLite database Unity assets.
1919
+ Files with the extensions ".sqlite", ".sqlite2" and ".sqlite3" will be imported as SQLite database assets.
2020
+ ".csv" files can be imported as SQLite database assets by changing the importer to `SQLite.Editor.SQLiteAssetCsvImporter` in the Inspector.
21-
+ ".sql" files are imported as Text assets by default, but can be imported as SQLite database assets by changing the importer to `SQLite.Editor.SQLAssetDatabaseImporter`.
21+
+ ".sql" files are imported as Text assets by default, but can be imported as SQLite database assets by changing the importer to `SQLite.Editor.SQLScriptDatabaseImporter`.
2222
+ Use the `CreateConnection()` method for connecting to the database provided by the asset.
2323
Make sure to `Dispose()` of any connections you create.
2424
+ SQLite assets may be loaded from Streaming Assets folder or from memory, depending on the value of their "Streaming Assets Path" property.

0 commit comments

Comments
 (0)