Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
5fba7e0e2f
|
|||
|
8757643399
|
@@ -1,5 +1,5 @@
|
||||
package goext
|
||||
|
||||
const GoextVersion = "0.0.358"
|
||||
const GoextVersion = "0.0.360"
|
||||
|
||||
const GoextVersionTimestamp = "2024-01-05T16:53:14+0100"
|
||||
const GoextVersionTimestamp = "2024-01-06T01:31:07+0100"
|
||||
|
||||
@@ -12,5 +12,8 @@ func CalcPaginationTotalPages(totalItems int, limit int) int {
|
||||
if totalItems == 0 {
|
||||
return 0
|
||||
}
|
||||
if limit == 0 {
|
||||
return 0
|
||||
}
|
||||
return 1 + (totalItems-1)/limit
|
||||
}
|
||||
|
||||
@@ -39,7 +39,9 @@ func TestCreateUpdateStatement(t *testing.T) {
|
||||
JsonVal JsonObj `json:"jsonVal" db:"json_val"`
|
||||
}
|
||||
|
||||
if !langext.InArray("sqlite3", sql.Drivers()) {
|
||||
sqlite.RegisterAsSQLITE3()
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package sq
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"github.com/glebarez/go-sqlite"
|
||||
"github.com/jmoiron/sqlx"
|
||||
@@ -20,7 +21,9 @@ func TestTypeConverter1(t *testing.T) {
|
||||
Timestamp time.Time `db:"timestamp"`
|
||||
}
|
||||
|
||||
if !langext.InArray("sqlite3", sql.Drivers()) {
|
||||
sqlite.RegisterAsSQLITE3()
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
@@ -48,15 +51,15 @@ func TestTypeConverter1(t *testing.T) {
|
||||
|
||||
func TestTypeConverter2(t *testing.T) {
|
||||
|
||||
if !langext.InArray("sqlite3", sql.Drivers()) {
|
||||
sqlite.RegisterAsSQLITE3()
|
||||
}
|
||||
|
||||
type RequestData struct {
|
||||
ID string `db:"id"`
|
||||
Timestamp rfctime.UnixMilliTime `db:"timestamp"`
|
||||
}
|
||||
|
||||
sqlite.RegisterAsSQLITE3()
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
dbdir := t.TempDir()
|
||||
|
||||
Reference in New Issue
Block a user