一覧へ戻る
JuliaDatabases/PostgreSQL.jl(新しいタブで開きます)
主要言語: Julia
DEPRECATED: use LibPQ.jl instead
- star 数
- 62
- watcher 数
- 10
- fork 数
- 38
- issue 数
- 18
- 最終更新
- 2020/10/30
主要言語: Julia
DEPRECATED: use LibPQ.jl instead
An interface to PostgreSQL from Julia. Uses libpq (the C PostgreSQL API) and obeys the DBI.jl protocol.
I can no longer spend work time on this so this project is in maintenance mode (accepting PRs and attempting to resolve issues). New code on the dbapi branch (https://github.com/JuliaDatabases/DBAPI.jl) represents the most recent work, which I will continue if I am in a position to do so again.
using DBI using PostgreSQL conn = connect(Postgres, "localhost", "username", "password", "dbname", 5432) stmt = prepare(conn, "SELECT 1::bigint, 2.0::double precision, 'foo'::character varying, " * "'foo'::character(10);") result = execute(stmt) for row in result # code end finish(stmt) disconnect(conn)
using DBI using PostgreSQL connect(Postgres, "localhost", "username", "password", "dbname", 5432) do conn #code end
Tests require a local PostgreSQL server with a postgres user/database (installed by default with PostgreSQL server installations) with trusted authentication from localhost.