Documentation ¶
Index ¶
- Variables
- func DeleteAll(ctx context.Context, db *DB) (int64, error)
- type Bar
- type Bar_Id_Field
- type Bar_Name_Field
- type Bar_Update_Fields
- type Baz
- type Baz_Id_Field
- type Baz_Name_Field
- type Baz_Update_Fields
- type DB
- type DBMethods
- type Error
- type ErrorCode
- type Foo
- type Foo_BarId_Field
- type Foo_Bar_Baz_Row
- type Foo_BazId_Field
- type Foo_Id_Field
- type Foo_Name_Field
- type Foo_Update_Fields
- type Methods
- type Tx
- type TxMethods
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 Bar_Id_Field ¶
type Bar_Id_Field struct {
// contains filtered or unexported fields
}
func Bar_Id ¶
func Bar_Id(v int64) Bar_Id_Field
type Bar_Name_Field ¶
type Bar_Name_Field struct {
// contains filtered or unexported fields
}
func Bar_Name ¶
func Bar_Name(v string) Bar_Name_Field
type Bar_Update_Fields ¶
type Bar_Update_Fields struct { }
type Baz_Id_Field ¶
type Baz_Id_Field struct {
// contains filtered or unexported fields
}
func Baz_Id ¶
func Baz_Id(v int64) Baz_Id_Field
type Baz_Name_Field ¶
type Baz_Name_Field struct {
// contains filtered or unexported fields
}
func Baz_Name ¶
func Baz_Name(v string) Baz_Name_Field
type Baz_Update_Fields ¶
type Baz_Update_Fields struct { }
type DB ¶
type Foo_BarId_Field ¶
type Foo_BarId_Field struct {
// contains filtered or unexported fields
}
func Foo_BarId ¶
func Foo_BarId(v int64) Foo_BarId_Field
type Foo_Bar_Baz_Row ¶
type Foo_BazId_Field ¶
type Foo_BazId_Field struct {
// contains filtered or unexported fields
}
func Foo_BazId ¶
func Foo_BazId(v int64) Foo_BazId_Field
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_Name_Field ¶
type Foo_Name_Field struct {
// contains filtered or unexported fields
}
func Foo_Name ¶
func Foo_Name(v string) Foo_Name_Field
type Foo_Update_Fields ¶
type Foo_Update_Fields struct {
Name Foo_Name_Field
}
type Methods ¶
type Methods interface { All_Foo_Bar_Baz(ctx context.Context) ( rows []*Foo_Bar_Baz_Row, err error) Delete_Foo_By_Bar_Name(ctx context.Context, bar_name Bar_Name_Field) ( deleted bool, err error) Update_Foo_By_Bar_Name(ctx context.Context, bar_name Bar_Name_Field, update Foo_Update_Fields) ( foo *Foo, err error) }
Click to show internal directories.
Click to hide internal directories.