GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - veltiosoft/sqlc-gen-python-orm

This repository was archived by the owner on Sep 23, 2024. It is now read-only.
BranchesTags
Open more actions menu
 
 

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
_examples
_examples
 
 
cmd/sqlc-gen-python-orm
cmd/sqlc-gen-python-orm
 
 
internal
internal
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
_sqlc.yaml
_sqlc.yaml
 
 
codegen_request.json
codegen_request.json
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
sqlc.yaml
sqlc.yaml
 
 

Repository files navigation

sqlc-gen-python-orm

sqlc-gen-python-orm is a plugin for sqlc that generates an ORM (now, support SQLAlchemy only) for Python.

This softwaer forked from sqlc-gen-python and modified to generate ORM.

Usage

get sha256 hash of wasm file

curl -sSL https://github.com/veltiosoft/sqlc-gen-python-orm/releases/download/v0.0.1/sqlc-gen-python-orm.wasm.sha256

add plugin to sqlc.yaml

version: '2'
plugins:
- name: py
  wasm:
    url: https://github.com/veltiosoft/sqlc-gen-python-orm/releases/download/v0.0.1/sqlc-gen-python-orm.wasm
    sha256: <sha256 hash>
sql:
- schema: "schema.sql"
  queries: "query.sql"
  engine: postgresql
  codegen:
  - out: src/authors
    plugin: py
    options:
      package: .
      emit_sync_querier: true
      emit_async_querier: true

Refs

  • sqlc plugin を書こう - 薄いブログ

About

No description, website, or topics provided.

Resources

Readme
License
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.