8000 GitHub - liz3/dictu-pq: Dictu driver for postgresql
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

liz3/dictu-pq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dictu pg

A simple postgresql client driver for Dictu

Building

Clone the repository:

git clone --recurse-submodules https://github.com/liz3/dictu-pg.git

Note: You need a version of dictu build from Dictus develop branch because the FFI API is not currently in a release.

Prerequisites For Windows

Building psql

MacOS/Linux

cd third-party/pq
./configure with_icu=no --prefix=$(pwd)/build
make -j && make install

Windows

Note: If you Cygwin installation is NOT c:\cygwin64 then update third-party\pq\src\tools\msvc\buildenv.pl
Note: Make sure there are no cygwin or msys compilers in your path, so to use the MSVC Compiler

cd <repository root>
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cd <repository-root>\third-party\pq\src\tools\msvc
.\build.bat
cd third-party\pq
.\src\tools\msvc\install.bat .\build

Building dictu-pg

Linux and MacOS

cd <repository root>
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j

Windows

cd <repository root>
cd build
cmake --build . --config Release

Note: On windows after building you need to copy the DLLs from third-party\pg\build\libintobuild\Release` for the mod to work.

Usage

from "mod.du" import pg;

Docs

Here are a list of exposed functions:

mod.createClient(url:string) -> Client

Client.connect() -> bool
Client.exec(query: string) -> Result(Dict)
Client.exec(query: string, params: List) -> Result(Dict)

About

Dictu driver for postgresql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0