|
| 1 | +using Microsoft.Data.Sqlite; |
| 2 | +using System.Collections.Generic; |
| 3 | + |
| 4 | +namespace Analyzer.SQLite.Commands |
| 5 | +{ |
| 6 | + /* TABLE DEFINITION: |
| 7 | + create table addr_build_bundles |
| 8 | + ( |
| 9 | + id INTEGER, |
| 10 | + build_id INTEGER, |
| 11 | + asset_count INTEGER, |
| 12 | + build_status INTEGER, |
| 13 | + bundle_dependencies TEXT, |
| 14 | + crc INTEGER, |
| 15 | + compression TEXT, |
| 16 | + dependencies TEXT, |
| 17 | + dependency_file_size INTEGER, |
| 18 | + dependent_bundles TEXT, |
| 19 | + expanded_dependencies TEXT, |
| 20 | + expanded_dependency_file_size INTEGER, |
| 21 | + file_size INTEGER, |
| 22 | + files TEXT, |
| 23 | + group_rid INTEGER, |
| 24 | + hash TEXT, |
| 25 | + internal_name TEXT, |
| 26 | + load_path TEXT, |
| 27 | + name TEXT, |
| 28 | + provider TEXT, |
| 29 | + result_type TEXT, |
| 30 | + PRIMARY KEY (id, build_id) |
| 31 | + ); |
| 32 | + */ |
| 33 | + internal class AddressablesBuildBundle : AbstractCommand |
| 34 | + { |
| 35 | + protected override string TableName => "addr_build_bundles"; |
| 36 | + |
| 37 | + protected override Dictionary<string, SqliteType> Fields => new Dictionary<string, SqliteType> |
| 38 | + { |
| 39 | + { "id", SqliteType.Integer }, |
| 40 | + { "build_id", SqliteType.Integer }, |
| 41 | + { "asset_count", SqliteType.Integer }, |
| 42 | + { "build_status", SqliteType.Integer }, |
| 43 | + { "bundle_dependencies", SqliteType.Text }, // JSONB type in SQLite uses TEXT |
| 44 | + { "crc", SqliteType.Integer }, |
| 45 | + { "compression", SqliteType.Text }, |
| 46 | + { "dependencies", SqliteType.Text }, // JSONB type in SQLite uses TEXT |
| 47 | + { "dependency_file_size", SqliteType.Integer }, |
| 48 | + { "dependent_bundles", SqliteType.Text }, // JSONB type in SQLite uses TEXT |
| 49 | + { "expanded_dependencies", SqliteType.Text }, // JSONB type in SQLite uses TEXT |
| 50 | + { "expanded_dependency_file_size", SqliteType.Integer }, |
| 51 | + { "file_size", SqliteType.Integer }, |
| 52 | + { "files", SqliteType.Text }, // JSONB type in SQLite uses TEXT |
| 53 | + { "group_rid", SqliteType.Integer }, |
| 54 | + { "hash", SqliteType.Text }, // JSON object stored as TEXT |
| 55 | + { "internal_name", SqliteType.Text }, |
| 56 | + { "load_path", SqliteType.Text }, |
| 57 | + { "name", SqliteType.Text }, |
| 58 | + { "provider", SqliteType.Text }, |
| 59 | + { "result_type", SqliteType.Text } |
| 60 | + }; |
| 61 | + |
| 62 | + public AddressablesBuildBundle() |
| 63 | + { |
| 64 | + } |
| 65 | + } |
| 66 | +} |
0 commit comments