sqlc-pg

command module
v0.0.0-...-48c47ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 6 Imported by: 0

README

sqlc-pg

sqlc-pg is a sqlc plugin for PostgreSQL using pgx Go driver.

build

Generated Code Examples

sqlc Sample Configuration

  • sqlc-pg must be available in your path
  • Sample sqlc.yaml:
    version: "2"
    plugins:
      - name: sqlc-pg
        process:
          cmd: sqlc-pg
    sql:
      - engine: postgresql
        queries: query.sql
        schema: schema.sql
        codegen:
          - plugin: sqlc-pg
            out: sqlc
            options:
              emit_db_tags: true
              emit_exported_queries: false
              emit_params_struct_pointers: false
              emit_result_struct_pointers: false
              emit_table_names: true
              output_files_suffix: .gen
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL