MCPcopy Create free account
hub / github.com/sqlc-dev/sqlc / defaultSchema

Function defaultSchema

internal/engine/dolphin/stdlib.go:8–5695  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

6)
7
8func defaultSchema(name string) *catalog.Schema {
9 s := &catalog.Schema{Name: name}
10 s.Funcs = []*catalog.Function{
11 {
12 Name: "ABS",
13 Args: []*catalog.Argument{
14 {
15 Type: &ast.TypeName{Name: "tinyint"},
16 },
17 },
18 ReturnType: &ast.TypeName{Name: "tinyint"},
19 },
20 {
21 Name: "ABS",
22 Args: []*catalog.Argument{
23 {
24 Type: &ast.TypeName{Name: "smallint"},
25 },
26 },
27 ReturnType: &ast.TypeName{Name: "smallint"},
28 },
29 {
30 Name: "ABS",
31 Args: []*catalog.Argument{
32 {
33 Type: &ast.TypeName{Name: "mediumint"},
34 },
35 },
36 ReturnType: &ast.TypeName{Name: "mediumint"},
37 },
38 {
39 Name: "ABS",
40 Args: []*catalog.Argument{
41 {
42 Type: &ast.TypeName{Name: "int"},
43 },
44 },
45 ReturnType: &ast.TypeName{Name: "int"},
46 },
47 {
48 Name: "ABS",
49 Args: []*catalog.Argument{
50 {
51 Type: &ast.TypeName{Name: "bigint"},
52 },
53 },
54 ReturnType: &ast.TypeName{Name: "bigint"},
55 },
56 {
57 Name: "ABS",
58 Args: []*catalog.Argument{
59 {
60 Type: &ast.TypeName{Name: "double"},
61 },
62 },
63 ReturnType: &ast.TypeName{Name: "double"},
64 },
65 {

Callers 1

NewCatalogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…