derived table and row number addition
This commit is contained in:
11
playground/db/derived.go
Normal file
11
playground/db/derived.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package db
|
||||
|
||||
import "code.patial.tech/go/pgm"
|
||||
|
||||
func DerivedTable(tblName string, fromQry pgm.Query) pgm.Table {
|
||||
t := pgm.Table{
|
||||
Name: tblName,
|
||||
DerivedTable: fromQry,
|
||||
}
|
||||
return t
|
||||
}
|
||||
Reference in New Issue
Block a user