Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New language support with Fsharp plugin #2287

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,17 @@ entries using the `db_type` key in order to generate the struct.
- `emit_pydantic_models`:
- If true, generate classes that inherit from `pydantic.BaseModel`. Otherwise, define classes using the `dataclass` decorator. Defaults to `false`.

#### fsharp

- `package`:
- The package name to use for the generated code.
- `out`:
- Output directory for generated code.
- `emit_exact_table_names`:
- If true, use the exact table name for generated models. Otherwise, guess a singular form. Defaults to `false`.
- `async`:
- If true, generated query functions will return Async results. Defaults to `false`.

#### json

- `out`:
Expand Down
25 changes: 18 additions & 7 deletions docs/reference/language-support.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
Database and language support
#############################

======== ================= ============ ============ ===============
Language Plugin MySQL PostgreSQL SQLite
======== ================= ============ ============ ===============
Go (built-in) Stable Stable Beta
Kotlin sqlc-gen-kotlin Beta Beta Not implemented
Python sqlc-gen-python Beta Beta Not implemented
======== ================= ============ ============ ===============
======== ================= =============== ============== ===============
Language Plugin MySQL PostgreSQL SQLite
======== ================= =============== ============== ===============
Go (built-in) Stable Stable Beta
Kotlin sqlc-gen-kotlin Beta Beta Not implemented
Python sqlc-gen-python Beta Beta Not implemented
FSharp sqlc-gen-fsharp Not implemented Beta Beta
======== ================= =============== =============== ===============


================= =============================================
Plugin Repo
================= =============================================
(built-in) Stable
sqlc-gen-kotlin https://github.com/tabbed/sqlc-gen-kotlin
sqlc-gen-python https://github.com/tabbed/sqlc-gen-python
sqlc-gen-fsharp https://github.com/kaashyapan/sqlc-gen-fsharp
================= =============================================

Future Language Support
************************
Expand Down