Skip to content

Commit

Permalink
Merge pull request #203 from aberba/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
denizzzka authored Jul 31, 2024
2 parents 195ee7a + 5bcf87a commit ac6057c
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
dpq2
====
# dpq2
[![Coverage Status](https://coveralls.io/repos/denizzzka/dpq2/badge.svg?branch=master)](https://coveralls.io/r/denizzzka/dpq2)
[![codecov.io](https://codecov.io/github/denizzzka/dpq2/coverage.svg?branch=master)](https://codecov.io/github/denizzzka/dpq2)

This is yet another attempt to create a good interface to PostgreSQL for the
D programming language.
An interface to PostgreSQL for the D programming language.

It adds only tiny overhead to the original low level library libpq but
make convenient use PostgreSQL from D.
> It adds only tiny overhead to the original low level library libpq but make convenient use PostgreSQL from D.
[API documentation](https://denizzzka.github.io/dpq2)

_Please help us to make documentation better!_

Features
--------
## Features

* Text string arguments support
* Binary arguments support (including multi-dimensional arrays)
Expand All @@ -36,14 +32,12 @@ Features
* Bulk data upload to table from string data ([SQL COPY](https://www.postgresql.org/docs/current/sql-copy.html))
* Simple SQL query builder

Building
--------
## Building
> Bindings for libpq can be static or dynamic. The static bindings are generated by default.
Bindings for libpq can be static or dynamic.
The static bindings are generated by default.
* On Linux, you may install `libpq-dev` for dynamic linking e.g. `sudo apt-get install libpq-dev`

Example
-------
## Example
```D
#!/usr/bin/env rdmd
Expand Down Expand Up @@ -171,8 +165,7 @@ column name: 'multi_array', bson: [[1,2,3],[4,5,6]]
column name: 'json_value', bson: {"text_str":"text string","float_value":123.456}
```

Using dynamic version of libpq
--------
## Using dynamic version of libpq
Is provided two ways to load `libpq` dynamically:

* Automatic load and unload (`dynamic` build config option)
Expand Down

0 comments on commit ac6057c

Please sign in to comment.