Path: redb-route/demo/SerialNumbersDemo/SerialNumbers.Core/Database/SqlScripts.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/demo/SerialNumbersDemo/SerialNumbers.Core/Database/SqlScripts.cs ---- namespace SerialNumbers.Core.Database; /// SQL scripts compiled into the module as resources. public static class SqlScripts { /// Creates the flat tables when they are missing. Safe to run on every start. public static readonly string Schema = Load("schema.sql"); private static string Load(string fileName) { var name = $"{typeof(SqlScripts).Namespace}.{fileName}"; using var stream = typeof(SqlScripts).Assembly.GetManifestResourceStream(name) ?? throw new InvalidOperationException($"Embedded SQL script '{name}' was not found."); using var reader = new StreamReader(stream); return reader.ReadToEnd(); } }