Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WrapErr = func(err *Error) error { return err } Logger func(format string, args ...any) ShouldRetry func(driver string, err error) bool )
View Source
var SQLite3JournalMode = "WAL"
SQLite3JournalMode controls the journal_mode pragma for all new connections. Since it is read without a mutex, it must be changed to the value you want before any Open calls.
Functions ¶
Types ¶
type DB ¶
type Foo_Id_Field ¶
type Foo_Id_Field struct {
// contains filtered or unexported fields
}
func Foo_Id ¶
func Foo_Id(v int64) Foo_Id_Field
type Foo_Update_Fields ¶
type Foo_Update_Fields struct {
}
type Methods ¶
type Methods interface {
All_Foo(ctx context.Context) (
rows []*Foo, err error)
Count_Foo(ctx context.Context) (
count int64, err error)
Count_Foo_By_Id(ctx context.Context,
foo_id Foo_Id_Field) (
count int64, err error)
Find_Foo(ctx context.Context) (
foo *Foo, err error)
Find_Foo_By_Id(ctx context.Context,
foo_id Foo_Id_Field) (
foo *Foo, err error)
First_Foo_By_Id(ctx context.Context,
foo_id Foo_Id_Field) (
foo *Foo, err error)
Get_Foo(ctx context.Context) (
foo *Foo, err error)
Get_Foo_By_Id(ctx context.Context,
foo_id Foo_Id_Field) (
foo *Foo, err error)
Has_Foo(ctx context.Context) (
has bool, err error)
Has_Foo_By_Id(ctx context.Context,
foo_id Foo_Id_Field) (
has bool, err error)
Limited_Foo(ctx context.Context,
limit int, offset int64) (
rows []*Foo, err error)
Paged_Foo(ctx context.Context,
limit int, start *Paged_Foo_Continuation) (
rows []*Foo, next *Paged_Foo_Continuation, err error)
}
type Paged_Foo_Continuation ¶
type Paged_Foo_Continuation struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.