Skip to content
@portablesql

portablesql

Portable SQL toolkit for Go — write once, run on MySQL, PostgreSQL, and SQLite

portablesql

Portable SQL toolkit for Go — write database code once, run it on MySQL / MariaDB, PostgreSQL / CockroachDB and SQLite.

Packages

Package Description Install
psql Core: struct binding, query builder, transactions, associations go get github.com/portablesql/psql
psql-mysql MySQL / MariaDB driver go get github.com/portablesql/psql-mysql
psql-pgsql PostgreSQL / CockroachDB driver go get github.com/portablesql/psql-pgsql
psql-sqlite SQLite driver go get github.com/portablesql/psql-sqlite

Quick Start

import (
    "github.com/portablesql/psql"
    _ "github.com/portablesql/psql-sqlite" // or psql-mysql, psql-pgsql
)

be, err := psql.New(":memory:") // engine detected from the DSN
ctx := be.Plug(context.Background())

Drivers register themselves on import, and only the driver you import gets downloaded.

Links

Popular repositories Loading

  1. psql psql Public

    Portable SQL query builder and ORM for Go — supports MySQL, PostgreSQL, and SQLite

    Go 1 1

  2. psql-mysql psql-mysql Public

    MySQL/MariaDB driver for portablesql/psql

    Go

  3. psql-pgsql psql-pgsql Public

    PostgreSQL driver for portablesql/psql

    Go

  4. psql-sqlite psql-sqlite Public

    SQLite driver for portablesql/psql

    Go

  5. .github .github Public

    Community health files for the portablesql organization

  6. portablesql.github.io portablesql.github.io Public

    Documentation site for portablesql

    HTML

Repositories

Showing 7 of 7 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…