Documentation
¶
Overview ¶
Example ¶
package main
import (
"context"
"os"
"path/filepath"
"github.com/xoctopus/genx/pkg/genx"
"github.com/xoctopus/x/misc/must"
_ "github.com/xoctopus/sqlx/devpkg/sqlx/v1"
)
func main() {
cwd := must.NoErrorV(os.Getwd())
entry := filepath.Join(cwd, "..", "..", "..", "testdata")
ctx := genx.NewContext(&genx.Args{
Entrypoint: []string{entry},
})
if err := ctx.Execute(context.Background(), genx.Get()...); err != nil {
panic(err)
}
}
Index ¶
- type Model
- func (m *Model) IndexList(unique bool) s.Snippet
- func (m *Model) ModeledCT(ctx context.Context, t typx.Type) s.Snippet
- func (m *Model) ModeledColDefList(ctx context.Context) s.Snippet
- func (m *Model) ModeledColInitList(ctx context.Context) s.Snippet
- func (m *Model) ModeledKeyDefList(ctx context.Context) s.Snippet
- func (m *Model) ModeledKeyInitList(_ context.Context) s.Snippet
- func (m *Model) ModeledM(ctx context.Context) s.Snippet
- func (m *Model) ModeledTCol(ctx context.Context, t typx.Type) s.Snippet
- func (m *Model) ModeledTable(ctx context.Context) s.Snippet
- func (m *Model) PrimaryColList() s.Snippet
- func (m *Model) T() s.Snippet
- func (m *Model) TableDesc() []string
- func (m *Model) TableName() string
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) ModeledColInitList ¶
func (*Model) PrimaryColList ¶
Click to show internal directories.
Click to hide internal directories.