Ecosyste.ms: Repos

An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/lib/pq

Package pq is a pure Go Postgres driver for the database/sql package. In most cases clients will use the database/sql package instead of using this package directly. For example: You can also connect to a database using a URL. For example: Similarly to libpq, when establishing a connection using pq you are expected to supply a connection string containing zero or more parameters. A subset of the connection parameters supported by libpq are also supported by pq. Additionally, pq also lets you specify run-time parameters (such as search_path or work_mem) directly in the connection string. This is different from libpq, which does not allow run-time parameters in the connection string, instead requiring you to supply them in the options parameter. For compatibility with libpq, the following special connection parameters are supported: Valid values for sslmode are: See http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING for more information about connection string parameters. Use single quotes for values that contain whitespace: A backslash will escape the next character in values: Note that the connection parameter client_encoding (which sets the text encoding for the connection) may be set but must be "UTF8", matching with the same rules as Postgres. It is an error to provide any other value. In addition to the parameters listed above, any run-time parameter that can be set at backend start time can be set in the connection string. For more information, see http://www.postgresql.org/docs/current/static/runtime-config.html. Most environment variables as specified at http://www.postgresql.org/docs/current/static/libpq-envars.html supported by libpq are also supported by pq. If any of the environment variables not supported by pq are set, pq will panic during connection establishment. Environment variables have a lower precedence than explicitly provided connection parameters. The pgpass mechanism as described in http://www.postgresql.org/docs/current/static/libpq-pgpass.html is supported, but on Windows PGPASSFILE must be specified explicitly. database/sql does not dictate any specific format for parameter markers in query strings, and pq uses the Postgres-native ordinal markers, as shown above. The same marker can be reused for the same parameter: pq does not support the LastInsertId() method of the Result type in database/sql. To return the identifier of an INSERT (or UPDATE or DELETE), use the Postgres RETURNING clause with a standard Query or QueryRow call: For more details on RETURNING, see the Postgres documentation: For additional instructions on querying see the documentation for the database/sql package. Parameters pass through driver.DefaultParameterConverter before they are handled by this package. When the binary_parameters connection option is enabled, []byte values are sent directly to the backend as data in binary format. This package returns the following types for values from the PostgreSQL backend: All other types are returned directly from the backend as []byte values in text format. pq may return errors of type *pq.Error which can be interrogated for error details: See the pq.Error type for details. You can perform bulk imports by preparing a statement returned by pq.CopyIn (or pq.CopyInSchema) in an explicit transaction (sql.Tx). The returned statement handle can then be repeatedly "executed" to copy data into the target table. After all data has been processed you should call Exec() once with no arguments to flush all buffered data. Any call to Exec() might return an error which should be handled appropriately, but because of the internal buffering an error returned by Exec() might not be related to the data passed in the call that failed. CopyIn uses COPY FROM internally. It is not possible to COPY outside of an explicit transaction in pq. Usage example: PostgreSQL supports a simple publish/subscribe model over database connections. See http://www.postgresql.org/docs/current/static/sql-notify.html for more information about the general mechanism. To start listening for notifications, you first have to open a new connection to the database by calling NewListener. This connection can not be used for anything other than LISTEN / NOTIFY. Calling Listen will open a "notification channel"; once a notification channel is open, a notification generated on that channel will effect a send on the Listener.Notify channel. A notification channel will remain open until Unlisten is called, though connection loss might result in some notifications being lost. To solve this problem, Listener sends a nil pointer over the Notify channel any time the connection is re-established following a connection loss. The application can get information about the state of the underlying connection by setting an event callback in the call to NewListener. A single Listener can safely be used from concurrent goroutines, which means that there is often no need to create more than one Listener in your application. However, a Listener is always connected to a single database, so you will need to create a new Listener instance for every database you want to receive notifications in. The channel name in both Listen and Unlisten is case sensitive, and can contain any characters legal in an identifier (see http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS for more information). Note that the channel name will be truncated to 63 bytes by the PostgreSQL server. You can find a complete, working example of Listener usage at https://godoc.org/github.com/lib/pq/example/listen. If you need support for Kerberos authentication, add the following to your main package: This package is in a separate module so that users who don't need Kerberos don't have to download unnecessary dependencies. When imported, additional connection string parameters are supported:
24 versions
Latest release: about 1 year ago
27,676 dependent packages

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/lib/pq

View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/lib%2Fpq

Dependent Repos 81,738

msrinivasssa/go-trial-app
  • v1.2.0 go.sum
  • v1.10.2 go.sum

Size: 397 KB - Last synced: about 1 year ago - Pushed: about 1 year ago

rancher-max/rancher Fork of rancher/rancher
Complete container management platform
  • v0.0.0-20171126050459-83612a56d3dd go.sum
  • v1.0.0 go.sum
  • v1.2.0 go.sum
  • v1.8.0 go.sum
  • v1.9.0 go.sum
  • v1.10.0 go.sum
  • v1.10.3 go.sum
  • v1.10.4 go.sum

Size: 131 MB - Last synced: 23 days ago - Pushed: 24 days ago

jrivera-px/operator Fork of libopenstorage/operator
Storage operator for Kubernetes
  • v1.0.0 go.sum
  • v1.1.1 go.sum
  • v1.3.0 go.sum

Size: 34.9 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

ahmedbutt7121991/golang Fork of NerdCademyDev/golang
All the code for the golang series will be here
  • v1.10.4 23_server_session_auth/app/go.mod
  • v1.10.4 23_server_session_auth/app/go.sum

Size: 1 MB - Last synced: about 1 year ago - Pushed: almost 2 years ago

paketo-buildpacks/go
A Cloud Native Buildpack for Go
  • v1.0.0 go.sum
  • v1.1.1 go.sum
  • v1.8.0 go.sum
  • v1.9.0 go.sum
  • v1.10.3 go.sum
  • v1.10.4 go.sum

Size: 82.6 MB - Last synced: 1 day ago - Pushed: 1 day ago

slachiewicz/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift
  • v1.0.0 extensions/camel-k/generator-v1/go.sum
  • v1.1.1 extensions/camel-k/generator-v1/go.sum
  • v1.2.0 extensions/camel-k/generator-v1/go.sum
  • v1.3.0 extensions/camel-k/generator-v1/go.sum
  • v1.0.0 extensions/camel-k/generator-v1alpha1/go.sum
  • v1.1.1 extensions/camel-k/generator-v1alpha1/go.sum
  • v1.2.0 extensions/camel-k/generator-v1alpha1/go.sum
  • v1.1.1 extensions/chaosmesh/generator/go.sum
  • v1.2.0 extensions/chaosmesh/generator/go.sum
  • v1.0.0 extensions/knative/generator/go.sum
  • v1.1.1 extensions/knative/generator/go.sum
  • v1.2.0 extensions/knative/generator/go.sum
  • v1.3.0 extensions/knative/generator/go.sum
  • v1.0.0 extensions/tekton/generator-v1beta1/go.sum
  • v1.1.1 extensions/tekton/generator-v1beta1/go.sum
  • v1.2.0 extensions/tekton/generator-v1beta1/go.sum
  • v1.3.0 extensions/tekton/generator-v1beta1/go.sum
  • v1.0.0 kubernetes-model-generator/go.sum
  • v1.2.0 kubernetes-model-generator/go.sum
  • v1.9.0 kubernetes-model-generator/go.sum

Size: 466 MB - Last synced: about 13 hours ago - Pushed: 1 day ago

paketo-buildpacks/dotnet-core
A Cloud Native Buildpack for .NET Core
  • v1.0.0 go.sum
  • v1.1.1 go.sum
  • v1.8.0 go.sum
  • v1.9.0 go.sum
  • v1.10.3 go.sum
  • v1.10.4 go.sum

Size: 134 MB - Last synced: 1 day ago - Pushed: 1 day ago

rxrddd/austin-v2
基于kratos 的聚合消息推送平台
  • v1.0.0 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.10.2 go.sum

Size: 1.77 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

cilium/cilium-olm 📦
  • v1.0.0 tools/go.sum
  • v1.1.1 tools/go.sum
  • v1.2.0 tools/go.sum

Size: 982 KB - Last synced: 9 months ago - Pushed: 12 months ago

influxdata/influxdb-observability
  • v1.0.0 tests-integration/go.sum

Size: 2.21 MB - Last synced: 13 days ago - Pushed: 13 days ago

RafaySystems/terraform-provider-rafay
Rafay terraform provider
  • v1.2.0 go.sum
  • v1.10.0 go.sum
  • v1.10.4 go.sum

Size: 4.33 MB - Last synced: 2 days ago - Pushed: 3 days ago

Boroda76/go_service_naked
  • v1.10.2 go.mod
  • v1.2.0 go.sum
  • v1.0.0 go.sum
  • v1.1.0 go.sum
  • v1.3.0 go.sum
  • v1.8.0 go.sum
  • v1.10.0 go.sum
  • v1.10.2 go.sum

Size: 791 KB - Last synced: 16 days ago - Pushed: about 1 year ago

mirakl/lib-vault
Provides useful vault api for golang project
  • v0.0.0-20180327071824-d34b9ff171c2 go.sum

Size: 205 KB - Last synced: 2 days ago - Pushed: 3 days ago

LATOKEN/bridge-backend-service
  • v1.10.4 src/go.mod
  • v1.1.1 src/go.sum
  • v1.10.4 src/go.sum
  • v1.0.0 src/go.sum

Size: 449 KB - Last synced: 4 months ago - Pushed: over 1 year ago

GoogleCloudPlatform/gke-poc-toolkit
📦 Demo generator for Google Kubernetes Engine!
  • v1.0.0 analytics/go.sum
  • v1.1.0 analytics/go.sum
  • v1.2.0 analytics/go.sum
  • v1.10.2 analytics/go.sum

Size: 12.8 MB - Last synced: 7 days ago - Pushed: 7 days ago

Cha0sIDL/ZeroBot-Plugin Fork of FloatTech/ZeroBot-Plugin
基于 ZeroBot 的 OneBot 插件
  • v1.1.1 go.sum

Size: 28.3 MB - Last synced: 8 months ago - Pushed: 8 months ago

drh-determined-ai/determined Fork of determined-ai/determined
Determined: Deep Learning Training Platform
  • v1.2.0 agent/go.sum
  • v1.3.0 agent/go.sum
  • v1.1.0 agent/go.sum
  • v1.0.0 agent/go.sum
  • v1.10.2 agent/go.sum
  • v1.0.0 master/go.sum
  • v1.1.0 master/go.sum
  • v1.2.0 master/go.sum
  • v1.3.0 master/go.sum
  • v1.10.2 master/go.sum

Size: 114 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

manish8561/go_microservice
go_microservice with grpc
  • v1.0.0 farm/go.sum

Size: 1.38 MB - Last synced: 7 months ago - Pushed: 8 months ago

Seanstoppable/wtf Fork of wtfutil/wtf
The personal information dashboard for your terminal.
  • v1.2.0 go.mod
  • v1.0.0 go.sum
  • v1.2.0 go.sum

Size: 47.6 MB - Last synced: 10 months ago - Pushed: 11 months ago

mxq7854687/go-empoyee-system
  • v1.10.5 go.mod
  • v1.10.5 go.sum

Size: 90.8 KB - Last synced: about 1 year ago - Pushed: almost 2 years ago

Shashankreddysunkara/NavVis-go-webapp
  • v1.0.0 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.10.2 go.sum

Size: 701 KB - Last synced: about 1 year ago - Pushed: about 1 year ago

leoluz/argo-rollouts Fork of argoproj/argo-rollouts
Progressive Delivery for Kubernetes
  • v1.0.0 go.sum
  • v1.1.1 go.sum

Size: 25.8 MB - Last synced: 19 days ago - Pushed: about 1 year ago

dreamer-zq/cosmos-sdk Fork of cosmos/cosmos-sdk
:chains: A Framework for Building High Value Public Blockchains :sparkles:
  • v1.2.0 cosmovisor/go.sum
  • v1.10.2 cosmovisor/go.sum

Size: 217 MB - Last synced: 19 days ago - Pushed: 7 months ago