2026-10-03 02:17:46 +08:00
|
|
|
cabal-version: 2.4
|
|
|
|
|
|
|
|
|
|
name: chusql-bootstrap
|
|
|
|
|
version: 1.0.0
|
2026-10-05 00:15:01 +08:00
|
|
|
synopsis: ChuSQL system catalog initialization and offline maintenance
|
|
|
|
|
description: Initializes the system catalog, administrator identity, and builtin
|
|
|
|
|
type registry during installation, preserving existing passwords
|
|
|
|
|
and validating type definitions. Provides offline structure repair,
|
|
|
|
|
WAL recovery, and system catalog reset commands.
|
2026-10-03 02:17:46 +08:00
|
|
|
build-type: Simple
|
|
|
|
|
|
2026-10-05 00:15:01 +08:00
|
|
|
library
|
|
|
|
|
hs-source-dirs: src
|
|
|
|
|
exposed-modules: ChuSQL.Bootstrap
|
|
|
|
|
build-depends: base >= 4.14 && < 5, aeson, chusql-core-model, text
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
ghc-options: -Wall
|
|
|
|
|
|
2026-10-03 02:17:46 +08:00
|
|
|
executable csql-bootstrap
|
|
|
|
|
hs-source-dirs: app
|
|
|
|
|
main-is: Main.hs
|
|
|
|
|
build-depends: base >= 4.14 && < 5
|
|
|
|
|
, aeson
|
|
|
|
|
, bytestring
|
|
|
|
|
, chusql-core-engine
|
|
|
|
|
, chusql-interface
|
2026-10-05 00:15:01 +08:00
|
|
|
, chusql-bootstrap
|
2026-10-03 02:17:46 +08:00
|
|
|
, text
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
ghc-options: -Wall
|
2026-10-11 17:32:12 +08:00
|
|
|
if os(linux)
|
|
|
|
|
ld-options: -Wl,-rpath,$ORIGIN
|
|
|
|
|
if os(osx)
|
|
|
|
|
ld-options: -Wl,-rpath,@loader_path
|
2026-10-05 00:15:01 +08:00
|
|
|
|
|
|
|
|
test-suite chusql-bootstrap-test
|
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
main-is: Spec.hs
|
|
|
|
|
build-depends: base >= 4.14 && < 5, aeson, bytestring, chusql-bootstrap,
|
|
|
|
|
chusql-core-engine, chusql-core-model, directory, filepath, hspec, text
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
ghc-options: -Wall
|