All Projects → musicglue → pg-ts

musicglue / pg-ts

Licence: MIT license
Typescript wrapper around node-postgres

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to pg-ts

hisha
Postgres SQL Cross Platform Web-based Client
Stars: ✭ 23 (+53.33%)
Mutual labels:  pgsql, node-postgres
Vscode Postgres
PostgreSQL extension for vscode providing explorer, highlighting, diagnostics, and intellisense
Stars: ✭ 117 (+680%)
Mutual labels:  pgsql
laravel-ltree
LTree Extension (PostgreSQL) for Laravel
Stars: ✭ 19 (+26.67%)
Mutual labels:  pgsql
Ezsql
PHP class to make interacting with a database ridiculusly easy
Stars: ✭ 804 (+5260%)
Mutual labels:  pgsql
Kore
Kore (https://kore.io) is an easy to use web application platform for writing scalable web APIs in C. Its main goals are security, scalability and allowing rapid development and deployment of such APIs.
Stars: ✭ 3,477 (+23080%)
Mutual labels:  pgsql
Naming Convention
Templates for naming convention - TSQL, JavaScript, C#, R, Python, Powershell
Stars: ✭ 961 (+6306.67%)
Mutual labels:  pgsql
pg-diff
PostgreSQL schema and data comparing tool
Stars: ✭ 39 (+160%)
Mutual labels:  pgsql
Ozo
OZO is a C++17 Boost.Asio based header-only library for asyncronous communication with PostgreSQL DBMS.
Stars: ✭ 138 (+820%)
Mutual labels:  pgsql
Postgraphile
GraphQL is a new way of communicating with your server. It eliminates the problems of over- and under-fetching, incorporates strong data types, has built-in introspection, documentation and deprecation capabilities, and is implemented in many programming languages. This all leads to gloriously low-latency user experiences, better developer experiences, and much increased productivity. Because of all this, GraphQL is typically used as a replacement for (or companion to) RESTful API services.
Stars: ✭ 10,967 (+73013.33%)
Mutual labels:  pgsql
Blog
Everything about database,business.(Most for PostgreSQL).
Stars: ✭ 6,330 (+42100%)
Mutual labels:  pgsql
Pgtap
PostgreSQL Unit Testing Suite
Stars: ✭ 631 (+4106.67%)
Mutual labels:  pgsql
Stacker
Stacker - The environment for local web development, ready for use.
Stars: ✭ 356 (+2273.33%)
Mutual labels:  pgsql
Piggly
PL/pgSQL stored procedure code coverage tool
Stars: ✭ 47 (+213.33%)
Mutual labels:  pgsql
Yiigo
🔥 Go 轻量级开发通用库 🚀🚀🚀
Stars: ✭ 304 (+1926.67%)
Mutual labels:  pgsql
Sqlbuilder
A powerful, fast, cross-platform SQL Builder for PHP. Convert your structured data into SQL queries with a fluent style interface and targeting on all the mainstream database (MySQL, PostgreSQL, SQLite)
Stars: ✭ 131 (+773.33%)
Mutual labels:  pgsql
fyi
Map & Explore your organization's System Architecture
Stars: ✭ 28 (+86.67%)
Mutual labels:  pgsql
Zblogphp
Z-BlogPHP博客程序
Stars: ✭ 527 (+3413.33%)
Mutual labels:  pgsql
Pecee Pixie
Lightweight, easy-to-use querybuilder for PHP inspired by Laravel Eloquent - but with less overhead.
Stars: ✭ 19 (+26.67%)
Mutual labels:  pgsql
Sumo db
Erlang Persistency Framework
Stars: ✭ 163 (+986.67%)
Mutual labels:  pgsql
Xc Spring Cloud Alibaba
spring cloud alibaba(2.2.1最新版)+nacos+dubbo+gateWay+sentinel+rocketmq+(pgsql/mysql8.0的json支持)+ignite集成可用于docker分布式框架+分布式自动化任务+mybatis多数据源+seate+ shardingSphere分布式分库事务解决方案
Stars: ✭ 131 (+773.33%)
Mutual labels:  pgsql

pg-ts

Typescript wrapper around node-postgres

💥 breaking change 🚀 new feature 🐛 bug fix 🔧 chore 📓 docs

v10.0.0

  • 🔧 Dependency updates

v9.0.3

  • 🔧 improve PgDriverQueryError message

v9.0.2

  • 🐛 If a queryOneOrNone was executed with SQL that selected insufficient columns to fully populate the row type, it would erroneously return None. Fixed now to return the expected PgRowValidationError type.

v9.0.1

  • 🐛 Prevent array positional parameters from being deduped.

v9.0.0

  • 💥 An additional context param has been added to connection.query and queryX functions. This is a blob of data that will be attached to query and transaction error instances. The normal use case for this is attaching application context so that error reporting functions can group errors together, or log out additional information about where the error came from.

v8.1.0

  • 🚀 Add named function to set the name of a given SQL-templated query.

v8.0.1

  • 🐛 Sql fragment parser should unwrap complex types (e.g. NonEmptyArray, Option) before passing it to the driver.

v8.0.0

  • 🐛 Fix broken nominal typing on classes by changing public readonly _T = "<class name>" to public readonly _<class name>: void.
  • 💥 As a result of fixing nominal typing, makeConnectionPool now returns an error union of PgPoolCreationError | PgTypeParserSetupError instead of PgPoolCreationError. Other errors may occur in application code as a result of the error classes now being correctly differentiated.

v7.0.0

v6.0.1

  • 🔧 Add _T symbol to uniquely identify error classes

v6.0.0

  • 💥 Simplified the API by always requiring an environment object in which pg-ts can store it's state (Connection) under a Symbol key. This will never conflict with other keys in the E, so we can now remove ConnectionE and related subsequent design decisions.

v5.0.1

  • 🐛 QueryAnyError union included PgRowCountError. This is incorrect (obvs).
  • 🔧 Compiled with TS3.0.1.

v5.0.0

  • Eitherish functions no longer return a simple Error type in their Lefts. Instead, we now provide a union of concrete error types that make it explicit what the failure conditions are. Clients can pattern match on error type using the provided ErrorPredicate functions, e.g, isRowCountError. Application-defined error types are propagated through the pg-ts stack.

  • Commonly-grouped errors are provided as unions, e.g. ConnectionError<L>, TransactionError<L>.

  • Renamed withConnectionE to widenToConnectionE for clarity and to differentiate from the withConnectionE function defined on Connection.

  • withTransaction has been replaced by three similar functions that assist you depending on whether you want to go from:

    Outer Context Inner Context Function to use
    Connection Connection withTransactionC
    ConnectionE<E> ConnectionE<E> withTransactionE
    ConnectionE<E> Connection withTransactionEC
  • Fixed the types setting in package.json, so imports should now default to from "pg-ts" instead of from "pg-ts/dist".

  • Integration tests are provided. A DATABASE_URL environment variable must be present. The test suite will create the table it needs and will truncate before each test. Every query type is tested and transaction commit/rollback behaviour is also verified.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].