在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):haskell-beam/beam开源软件地址(OpenSource Url):https://github.com/haskell-beam/beam开源编程语言(OpenSource Language):Haskell 95.1%开源软件介绍(OpenSource Introduction):Beam: a type-safe, non-TH Haskell relational database library and ORMIf you use beam commercially, please consider a donation to make this project possible: https://liberapay.com/tathougies Beam is a Haskell interface to relational databases. Beam uses the Haskell type system to verify that queries are type-safe before sending them to the database server. Queries are written in a straightforward, natural monadic syntax. Combinators are provided for all standard SQL92 features, and a significant subset of SQL99, SQL2003, and SQL2008 features. For your convenience a thorough compatibility matrix is maintained here. Beam is standards compliant but not naive. We recognize that different database backends provide different guarantees, syntaxes, and advantages. To reflect this, beam maintains a modular design. While the core package provides standard functionality, beam is split up into a variety of backends which provide a means to interface Beam's data query and update DSLs with particular RDBMS backends. Backends can be written and maintained independently of this repository. For example, the beam-mysql and beam-firebird backends are packaged independently. Recognizing that over-abstraction frequently means caving in to the lowest common denominator, Beam does not do connection or transaction management. Rather, the user is free to perform these functions using the appropriate Haskell interface library for their backend of choice. Additionally, beam backends provide a significant portion of backend-specific functionality which seamlessly fits into the beam ecosystem. For example, the For more information, see the user guide. For questions, feel free to join
our mailing list or
head over to A word on testing
Tests are written !beam-query
```haskell
!example <template-name> <requirements>
do x <- all_ (customer chinookDb) -- chinookDb available under chinook and chinookdml examples
pure x
``` The Building the documentationBeam uses The documentation uses a custom Markdown preprocessor to automatically build
examples against the canonical Chinook database. By default, beam will build
examples for every beam backend it knows about, including ones not in the main
source tree (see To only build examples for a particular backend, modify - docs.markdown.beam_query:
template_dir: 'docs/beam-templates'
cache_dir: 'docs/.beam-query-cache'
conf: 'docs/beam.yaml'
base_dir: '.' to - docs.markdown.beam_query:
template_dir: 'docs/beam-templates'
cache_dir: 'docs/.beam-query-cache'
conf: 'docs/beam.yaml'
base_dir: '.'
enabled_backends:
- beam-sqlite |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论