Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pure Pony Postgres driver

License

NotificationsYou must be signed in to change notification settings

ponylang/postgres

Repository files navigation

Pure Pony Postgres driver

Status

Postgres is an alpha-level package.

We welcome users who are willing to experience errors and possible application shutdowns. Your feedback on API usage and in reporting bugs is greatly appreciated.

Please note that if this library encounters a state that the programmers thought was impossible to hit, it will exit the program immediately with informational messages. Normal errors are handled in standard Pony fashion.

Installation

  • Installcorral
  • corral add github.com/ponylang/postgres.git --version 0.2.0
  • corral fetch to fetch your dependencies
  • use "postgres" to include this package
  • corral run -- ponyc to compile your application

This library has a transitive dependency onponylang/net_ssl. It requires a C SSL library to be installed. Please see thenet_ssl installation instructions for more information.

API Documentation

https://ponylang.github.io/postgres

Postgres API Support

This library aims to support the Postgres API to the level required to use Postgres from Pony in ways that the Pony community needs. We do not aim to support the entire API surface. If there is functionality missing, we will happily accept high-quality pull requests to add additional support so long as they don't come with additional external dependencies or overly burdensome maintenance.

Authentication

Only MD5 password authentication is supported. KerberosV5, cleartext, SCM, GSS, SSPI, and SASL authentication methods are not supported.

Commands

Basic API commands related to querying are supported at this time. Some functionality that isn't yet supported is:

  • Supplying connection configuration to the server
  • Prepared statements (aka Extended Queries)
  • Pipelining queries
  • Function calls
  • COPY operations
  • Cancelling in progress requests
  • Session encryption

Note the appearance of an item on the above list isn't a guarantee that it will be supported in the future.

Data Types

The following data types are fully supported and will be converted from their postgres type to the corresponding Pony type. All other data types will be presented asString.

  • bool =>Bool
  • int2 =>I16
  • int4 =>I32
  • int8 =>I64
  • float4 =>F32
  • float8 =>F64

AsString is our default type, all character types such astext are returned to the user asString and as such, aren't listed in our supported types.

Sponsor this project

    Packages

    No packages published

    Contributors3

    •  
    •  
    •  

    [8]ページ先頭

    ©2009-2025 Movatter.jp