Documentation
¶
Index ¶
- Constants
- func ConvertISO88591ToUTF8(data []byte) (string, error)
- func GenerateSlice(columnTypes []*sql.ColumnType, mapType service.MapType) []any
- func GetType(col *sql.ColumnType, mapType service.MapType) any
- func Map(columnsIndex map[string]int, mapType service.MapType, values []any) error
- func PlaceHolder(dbType string) string
- func QueryBuilder(table string, columns []string, placeHolder string) func(batchCount int) string
- func SanitizeString(s string) string
- func ScanSlice(columnsLen int, r *sql.Rows) ([]any, error)
- func ScanSliceWithValues(columnsLen int, r *sql.Rows, valueTypes []any) ([]any, error)
- type Batch
- type Database
- func (d *Database) Close()
- func (d *Database) DatabaseList() []string
- func (d *Database) Exec(ctx context.Context, name, query string) (service.Result, error)
- func (d *Database) IterGet(ctx context.Context, name, query string, mapType service.MapType) ([]string, iter.Seq2[[]any, error], error)
- func (d *Database) IterSet(ctx context.Context, name, table string, wipe bool, ...) (service.Result, error)
- func (d *Database) Query(ctx context.Context, name, query string, limit int64) (service.Result, error)
- type Info
- type Result
Constants ¶
View Source
const (
EncodingISO88591 = "ISO 8859-1"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertISO88591ToUTF8 ¶
func GenerateSlice ¶
func GenerateSlice(columnTypes []*sql.ColumnType, mapType service.MapType) []any
func PlaceHolder ¶
func QueryBuilder ¶
func SanitizeString ¶
Types ¶
type Database ¶
func (*Database) DatabaseList ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (*Result) RowsAffected ¶
Click to show internal directories.
Click to hide internal directories.