Skip to content

Commit

Permalink
Use ambar-sqlserver lib
Browse files Browse the repository at this point in the history
  • Loading branch information
lazamar committed Jan 9, 2025
1 parent 1fc4f0f commit 08f0ffb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
11 changes: 9 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@ packages: .

source-repository-package
type: git
location: https://github.com/ambarltd/ambar-hs-utils
tag: 55334ab4af375ac19f4bbbd1a20071998f9b2306
location: https://github.com/ambarltd/haskell-libs
subdir: ambar-hs-utils
tag: 175aae291acd4996aa9b2bae3120ccf9cd32fef3

source-repository-package
type: git
location: https://github.com/ambarltd/haskell-libs
subdir: ambar-sqlserver
tag: 175aae291acd4996aa9b2bae3120ccf9cd32fef3
3 changes: 2 additions & 1 deletion emulator.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ library emulator-lib
Ambar.Transport.Http
Ambar.Transport.File
Database.MySQL
Database.MicrosoftSQLServer
build-depends:
base
, ambar-hs-utils
, ambar-sqlserver
, aeson
, aeson-pretty
, async
Expand Down Expand Up @@ -123,6 +123,7 @@ test-suite emulator-tests
build-depends:
base
, ambar-hs-utils
, ambar-sqlserver
, emulator-lib
, aeson
, async
Expand Down
4 changes: 2 additions & 2 deletions src/Ambar/Emulator/Connector/MicrosoftSQLServer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import GHC.Generics (Generic)
import qualified Prettyprinter as Pretty
import Prettyprinter (pretty, (<+>))

import Database.MicrosoftSQLServer
import Database.SQLServer
( Connection
, ConnectionInfo(..)
, withConnection
Expand All @@ -38,7 +38,7 @@ import Database.MicrosoftSQLServer
, rawBytes
)
import qualified Database.Tds.Message as Tds
import qualified Database.MicrosoftSQLServer as M
import qualified Database.SQLServer as M

import qualified Ambar.Emulator.Connector as C
import Ambar.Emulator.Connector.Poll (BoundaryTracker, Boundaries(..), EntryId(..))
Expand Down
2 changes: 1 addition & 1 deletion src/Database/MicrosoftSQLServer.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE UndecidableInstances #-}

module Database.MicrosoftSQLServer
module Database.SQLServer
( Connection
, ConnectionInfo(..)
, withConnection
Expand Down
2 changes: 1 addition & 1 deletion tests/Test/Connector/MicrosoftSQLServer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import qualified Ambar.Emulator.Queue.Topic as Topic
import Ambar.Emulator.Queue.Topic (Topic, PartitionCount(..))
import Ambar.Emulator.Connector.MicrosoftSQLServer (SQLServer(..))
import Ambar.Record (Bytes(..))
import Database.MicrosoftSQLServer as S
import Database.SQLServer as S

import Util.Docker (DockerCommand(..), withDocker)
import Util.OnDemand (OnDemand)
Expand Down

0 comments on commit 08f0ffb

Please sign in to comment.