packages feed

atelier-db 0.2.0.0 → 0.3.0.0

raw patch · 5 files changed

+30/−16 lines, 5 filesdep +atelier-monitoringdep ~aesondep ~atelier-coredep ~hasql-pool

Dependencies added: atelier-monitoring

Dependency ranges changed: aeson, atelier-core, hasql-pool, time

Files

CHANGELOG.md view
@@ -7,6 +7,16 @@  ## [Unreleased] +## [0.3.0.0] - 2026-08-14++### Changed++- Major version bump for the following dependencies' upper version bounds:+  - `aeson`+  - `atelier-core`+  - `hasql-pool`+  - `time`+ ## [0.2.0.0] - 2026-08-13  ### Changed
LICENSE view
@@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Christian Georgii+Copyright (c) 2026 Tweag  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
README.md view
@@ -4,13 +4,9 @@  ## Overview -`atelier-db` exposes database access as a first-class effect so queries can be interpreted, mocked, and composed alongside the rest of your application's effects.--| Module | Purpose |-|---|---|-| `Atelier.Effects.DB` | The `DB` effect and its interpreters |-| `Atelier.Effects.DB.Config` | Connection configuration |-| `Atelier.Effects.DB.Rel8` | Rel8 query helpers over the `DB` effect |+`atelier-db` exposes database access as a first-class effect so queries can be+interpreted, mocked, and composed alongside the rest of your application's+effects.  ## Part of atelier @@ -18,6 +14,7 @@ - [`atelier-core`](https://github.com/tweag/tricorder/tree/main/atelier-core) — foundational effects and utilities - [`atelier-db`](https://github.com/tweag/tricorder/tree/main/atelier-db) — this package - [`atelier-testing`](https://github.com/tweag/tricorder/tree/main/atelier-testing) — database-backed test utilities+- [`atelier-monitoring`](https://github.com/tweag/tricorder/tree/main/atelier-monitoring) - observability and monitoring effects and utilities  ## License 
atelier-db.cabal view
@@ -5,14 +5,14 @@ -- see: https://github.com/sol/hpack  name:           atelier-db-version:        0.2.0.0+version:        0.3.0.0 synopsis:       Relational database effect for atelier (Hasql/Rel8) description:    Relational database access via Hasql and Rel8, exposed as an Effectful effect — part of the atelier toolkit. category:       Database homepage:       https://github.com/tweag/tricorder#readme bug-reports:    https://github.com/tweag/tricorder/issues-author:         Christian Georgii-maintainer:     christian.georgii@tweag.io+author:         Victor Nascimento Bakke+maintainer:     victor.bakke@tweag.io license:        MIT license-file:   LICENSE build-type:     Simple@@ -59,8 +59,9 @@       TypeFamilies   ghc-options: -Weverything -Wno-unsafe -Wno-missing-safe-haskell-mode -Wno-monomorphism-restriction -Wno-missing-kind-signatures -Wno-missing-local-signatures -Wno-missing-import-lists -Wno-implicit-prelude -Wno-unticked-promoted-constructors -Wno-unused-packages -Wno-all-missed-specialisations -Wno-missed-specialisations -fplugin=Effectful.Plugin -threaded   build-depends:-      aeson ==2.2.*-    , atelier-core ==0.3.*+      aeson >=2.2 && <2.4+    , atelier-core >=0.3 && <0.5+    , atelier-monitoring ==0.1.*     , atelier-prelude >=0.1 && <0.3     , base >=4.18 && <4.23     , bytestring >=0.11 && <0.13@@ -71,11 +72,11 @@     , effectful-plugin >=2.0 && <2.2     , effectful-th ==1.0.*     , hasql >=1.9 && <1.11-    , hasql-pool ==1.3.*+    , hasql-pool >=1.3 && <1.5     , hasql-transaction ==1.2.*     , rel8 ==1.7.*     , text ==2.1.*-    , time >=1.12 && <1.16+    , time >=1.12 && <1.17   mixins:       base hiding (Prelude)   default-language: GHC2021
src/Atelier/Effects/DB.hs view
@@ -18,7 +18,13 @@ where  import Atelier.Effects.Monitoring.Metrics (Metrics, counterInc, withHistogramTiming)-import Atelier.Effects.Monitoring.Tracing (SpanStatus (..), Tracing, addAttribute, setStatus, withSpan)+import Atelier.Effects.Monitoring.Tracing+    ( SpanStatus (..)+    , Tracing+    , addAttribute+    , setStatus+    , withSpan+    ) import Effectful (Effect, IOE) import Effectful.Dispatch.Dynamic (interpretWith_) import Effectful.Error.Static (Error, throwError)