-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disentangle CLI logic from libraries
- Loading branch information
1 parent
df1df48
commit 16f66f3
Showing
38 changed files
with
1,107 additions
and
1,103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package lib | ||
|
||
import ( | ||
"log/slog" | ||
|
||
"github.com/dbsteward/dbsteward/lib/ir" | ||
) | ||
|
||
// Config is a structure containing all configuration information | ||
// for any execution of code. | ||
type Config struct { | ||
Logger *slog.Logger | ||
SqlFormat ir.SqlFormat | ||
CreateLanguages bool | ||
RequireSlonyId bool | ||
RequireSlonySetId bool | ||
GenerateSlonik bool | ||
SlonyIdStartValue uint | ||
SlonyIdSetValue uint | ||
OutputFileStatementLimit uint | ||
IgnoreCustomRoles bool | ||
IgnorePrimaryKeyErrors bool | ||
RequireVerboseIntervalNotation bool | ||
QuoteSchemaNames bool | ||
QuoteObjectNames bool | ||
QuoteTableNames bool | ||
QuoteFunctionNames bool | ||
QuoteColumnNames bool | ||
QuoteAllNames bool | ||
QuoteIllegalIdentifiers bool | ||
QuoteReservedIdentifiers bool | ||
OnlySchemaSql bool | ||
OnlyDataSql bool | ||
LimitToTables map[string][]string | ||
SingleStageUpgrade bool | ||
FileOutputDirectory string | ||
FileOutputPrefix string | ||
IgnoreOldNames bool | ||
AlwaysRecreateViews bool | ||
OldDatabase *ir.Definition | ||
NewDatabase *ir.Definition | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.