Discover Packages
github.com/dygoframework/dygo/sql
internal
suite
package
Version:
v1.0.0-beta.1
Opens a new window with list of versions in this module.
Published: Nov 2, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package suite holds the integration tests every dialect must pass against a
real database, so MySQL and Postgres behave the same.
Open connects to the database in the environment variable env, or skips the
test when it is not set, so `make test` needs no database.
Run runs the shared cases. ddl holds the dialect's CREATE TABLE statements
for the parent and child tables, with %s for the table name suffix.
RunRepository runs the Repository cases. ddl is the dialect's CREATE TABLE
for Account, with %s for the table name: an auto increment id, a unique
email, a name, and created_at and updated_at with microseconds.
type Account struct {
ID int64 `db:"id,pk,auto"`
Email string `db:"email"`
Name string `db:"name"`
CreatedAt time .Time `db:"created_at,created"`
UpdatedAt time .Time `db:"updated_at,updated"`
}
Account is the entity of the repository cases.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.