2026-10-02 14:53:02 +08:00
|
|
|
|
cabal-version: 2.4
|
|
|
|
|
|
|
|
|
|
|
|
name: chusql-server
|
|
|
|
|
|
version: 1.0.0
|
2026-10-05 00:15:01 +08:00
|
|
|
|
synopsis: ChuSQL database server with TCP endpoints and SQL sessions
|
|
|
|
|
|
description: Provides the ChuSQL TCP server and newline-delimited JSON protocol,
|
|
|
|
|
|
authentication, rate limiting, and SQL sessions. SQL is executed by
|
|
|
|
|
|
chusql-core-engine with the in-process chusql_core_storage library.
|
|
|
|
|
|
Web and command-line clients access the database through TCP.
|
2026-10-02 14:53:02 +08:00
|
|
|
|
build-type: Simple
|
|
|
|
|
|
|
|
|
|
|
|
library
|
|
|
|
|
|
hs-source-dirs: src
|
|
|
|
|
|
exposed-modules: ChuSQL.Server.Accounts
|
|
|
|
|
|
ChuSQL.Server.Backend
|
2026-10-03 02:17:46 +08:00
|
|
|
|
ChuSQL.Server.Catalog
|
2026-10-11 17:32:12 +08:00
|
|
|
|
ChuSQL.Server.Normalization
|
2026-10-02 14:53:02 +08:00
|
|
|
|
ChuSQL.Server.Policy
|
|
|
|
|
|
ChuSQL.Server.Privileges
|
2026-10-05 22:22:23 +08:00
|
|
|
|
ChuSQL.Server.ObjectACL
|
|
|
|
|
|
ChuSQL.Server.Security
|
2026-10-02 14:53:02 +08:00
|
|
|
|
ChuSQL.Server.Session
|
|
|
|
|
|
ChuSQL.Server.TCP
|
|
|
|
|
|
build-depends: base >= 4.14 && < 5
|
|
|
|
|
|
, aeson
|
|
|
|
|
|
, bytestring
|
|
|
|
|
|
, chusql-core-engine
|
|
|
|
|
|
, chusql-core-model
|
|
|
|
|
|
, chusql-interface
|
|
|
|
|
|
, containers
|
|
|
|
|
|
, crypton
|
|
|
|
|
|
, directory
|
|
|
|
|
|
, filepath
|
|
|
|
|
|
, memory
|
|
|
|
|
|
, network
|
|
|
|
|
|
, scientific
|
|
|
|
|
|
, text
|
|
|
|
|
|
, time
|
|
|
|
|
|
, vector
|
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
ghc-options: -Wall
|
|
|
|
|
|
|
|
|
|
|
|
executable chusql-server
|
|
|
|
|
|
main-is: Main.hs
|
|
|
|
|
|
hs-source-dirs: app
|
|
|
|
|
|
build-depends: base
|
2026-10-03 02:17:46 +08:00
|
|
|
|
, aeson
|
2026-10-02 14:53:02 +08:00
|
|
|
|
, chusql-core-engine
|
|
|
|
|
|
, chusql-core-model
|
|
|
|
|
|
, chusql-interface
|
|
|
|
|
|
, chusql-server
|
|
|
|
|
|
, containers
|
|
|
|
|
|
, filepath
|
|
|
|
|
|
, text
|
|
|
|
|
|
, time
|
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
ghc-options: -Wall -threaded
|
|
|
|
|
|
-- 运行期找 libchusql_core_storage.so:$ORIGIN 让二进制与动态库同目录即可
|
|
|
|
|
|
if os(linux)
|
|
|
|
|
|
ld-options: -Wl,-rpath,$ORIGIN
|
|
|
|
|
|
if os(osx)
|
|
|
|
|
|
ld-options: -Wl,-rpath,@loader_path
|
|
|
|
|
|
|
|
|
|
|
|
test-suite chusql-server-test
|
|
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
|
main-is: Spec.hs
|
|
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
|
build-depends: base
|
|
|
|
|
|
, aeson
|
|
|
|
|
|
, bytestring
|
|
|
|
|
|
, chusql-core-engine
|
|
|
|
|
|
, chusql-core-model
|
|
|
|
|
|
, chusql-interface
|
|
|
|
|
|
, chusql-server
|
|
|
|
|
|
, containers
|
|
|
|
|
|
, directory
|
|
|
|
|
|
, filepath
|
|
|
|
|
|
, hspec
|
|
|
|
|
|
, network
|
|
|
|
|
|
, text
|
|
|
|
|
|
, time
|
|
|
|
|
|
, vector
|
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
ghc-options: -Wall -threaded
|