Categorygithub.com/goware/pgkit/v2
modulepackage
2.2.2
Repository: https://github.com/goware/pgkit.git
Documentation: pkg.go.dev

# README

pgkit

lightweight PostgreSQL sugar combining the use of..

  • github.com/jackc/pgx
  • github.com/Masterminds/squirrel
  • github.com/georgysavva/scany/v2
  • plus, code & ideas from github.com/upper/db

Usage

go get github.com/goware/pgkit/v2

Please see ./tests/pgkit_test.go

LICENSE

Apache 2.0

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
Map converts a struct object (aka record) to a mapping of column names and values which can be directly passed to a query executor.
No description provided by the author
No description provided by the author
NewPaginator creates a new paginator with the given options.
No description provided by the author
No description provided by the author
No description provided by the author
WithColumnFunc sets a function to transform column names.
WithDefaultSize sets the default page size.
WithMaxSize sets the maximum page size.
WithSort sets the default sort order.

# Constants

No description provided by the author
DefaultPageSize is the default number of rows per page.
No description provided by the author
MaxPageSize is the maximum number of rows per page.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Paginator is a helper to paginate results.
No description provided by the author
RawSQL allows you to build queries by hand easily.
RawStatement allows you to build query statements by hand, where the query will remain the same but the arguments can change.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
PaginatorOption is a function that sets an option on a paginator.
No description provided by the author
No description provided by the author