mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 02:47:04 +00:00
Update to 8.4.0 | New macro type, new high-optimized MVC features. Read HISTORY.md
Former-commit-id: b72a23ba063be60a9750c8b1b0df024b0c8ed549
This commit is contained in:
20
_examples/mvc/login/database/database.go
Normal file
20
_examples/mvc/login/database/database.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package database
|
||||
|
||||
// Result is our imaginary result, it will never be used, it's
|
||||
// here to show you a method of doing these things.
|
||||
type Result struct {
|
||||
cur int
|
||||
}
|
||||
|
||||
// Next moves the cursor to the next result.
|
||||
func (r *Result) Next() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Database is our imaginary database interface, it will never be used here.
|
||||
type Database interface {
|
||||
Open(connstring string) error
|
||||
Close() error
|
||||
Query(q string) (result Result, err error)
|
||||
Exec(q string) (lastInsertedID int64, err error)
|
||||
}
|
||||
Reference in New Issue
Block a user