Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.36 KB

Examples.md

File metadata and controls

44 lines (33 loc) · 1.36 KB

Examples

The same example application for each database: a schema, queries that use every supported feature, and the code the plugin generates from them. The generated code is committed, and the end-to-end tests run against it.

In each generated directory, query_sql.rb has the query methods, models.rb the table and enum models, connection.rb the shared helpers, and the .rbs files their signatures (see The generated code).

PostgreSQL (pg)

Schema · Queries · Generated code · End-to-end tests

Options:

driver: pg
rubyVersion: "3.3"
generateTypes: true
generateGemfile: false

MySQL (mysql2)

Schema · Queries · Generated code · End-to-end tests

Options:

driver: mysql2
rubyVersion: "3.3"
generateTypes: true
generateGemfile: false

SQLite (sqlite3)

Schema · Queries · Generated code · End-to-end tests

Options:

driver: sqlite3
rubyVersion: "3.3"
generateTypes: true
generateGemfile: false