Skip to content

Commit caa6c30

Browse files
committed
Updating tests and dependency version for database
1 parent 87911e6 commit caa6c30

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

modules/database/db_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build cgo
2+
13
package database_test
24

35
import (
@@ -145,7 +147,7 @@ func (y *YourModule) RequiresServices() []modular.ServiceDependency {
145147
}
146148

147149
func (y *YourModule) Constructor() modular.ModuleConstructor {
148-
return func(app *modular.StdApplication, services map[string]any) (modular.Module, error) {
150+
return func(app modular.Application, services map[string]any) (modular.Module, error) {
149151
// Get the JSONSchemaService from the services map
150152
dbService, ok := services["database.service"].(database.DatabaseService)
151153
if !ok {

modules/database/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/GoCodeAlone/modular/modules/database
33
go 1.23.5
44

55
require (
6-
github.com/GoCodeAlone/modular v1.1.2
6+
github.com/GoCodeAlone/modular v1.2.0
77
github.com/mattn/go-sqlite3 v1.14.27
88
)
99

modules/database/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
22
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
33
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
4-
github.com/GoCodeAlone/modular v1.1.2 h1:E5aB5L71Z20+rqz6+cw0Vex0gCrD4TpIYKwLcqof3sY=
5-
github.com/GoCodeAlone/modular v1.1.2/go.mod h1:LYqrbw3/LkxJcQdQI+8fADVf4s73m31FRvX2ekpI/SA=
4+
github.com/GoCodeAlone/modular v1.2.0 h1:Ut7jVIhIjlJEBZDihn7ihON44oUlrgzfegFgdrEuC8Y=
5+
github.com/GoCodeAlone/modular v1.2.0/go.mod h1:LYqrbw3/LkxJcQdQI+8fADVf4s73m31FRvX2ekpI/SA=
66
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
77
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
88
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=

0 commit comments

Comments
 (0)