Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemasFS embed.FS
SchemasFS holds the embedded Fluxbase internal schema SQL files. These files are baked into the binary and extracted to a temporary directory at runtime so they work regardless of deployment path.
Functions ¶
func ExtractSchemas ¶
ExtractSchemas writes all embedded schema SQL files to a temporary directory and returns the path to that directory. The caller should call Cleanup when done.
func MakeSQLIdempotent ¶
MakeSQLIdempotent transforms SQL to be idempotent by prepending DROP IF EXISTS statements before CREATE POLICY and ALTER TABLE ADD CONSTRAINT statements. This allows schema SQL files to be safely re-applied to existing databases.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.