1
0

uuid_ossp.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // Code generated by sqlc-pg-gen. DO NOT EDIT.
  2. package contrib
  3. import (
  4. "github.com/sqlc-dev/sqlc/internal/sql/ast"
  5. "github.com/sqlc-dev/sqlc/internal/sql/catalog"
  6. )
  7. var funcsUuidOssp = []*catalog.Function{
  8. {
  9. Name: "uuid_generate_v1",
  10. Args: []*catalog.Argument{},
  11. ReturnType: &ast.TypeName{Name: "uuid"},
  12. },
  13. {
  14. Name: "uuid_generate_v1mc",
  15. Args: []*catalog.Argument{},
  16. ReturnType: &ast.TypeName{Name: "uuid"},
  17. },
  18. {
  19. Name: "uuid_generate_v3",
  20. Args: []*catalog.Argument{
  21. {
  22. Name: "namespace",
  23. Type: &ast.TypeName{Name: "uuid"},
  24. },
  25. {
  26. Name: "name",
  27. Type: &ast.TypeName{Name: "text"},
  28. },
  29. },
  30. ReturnType: &ast.TypeName{Name: "uuid"},
  31. },
  32. {
  33. Name: "uuid_generate_v4",
  34. Args: []*catalog.Argument{},
  35. ReturnType: &ast.TypeName{Name: "uuid"},
  36. },
  37. {
  38. Name: "uuid_generate_v5",
  39. Args: []*catalog.Argument{
  40. {
  41. Name: "namespace",
  42. Type: &ast.TypeName{Name: "uuid"},
  43. },
  44. {
  45. Name: "name",
  46. Type: &ast.TypeName{Name: "text"},
  47. },
  48. },
  49. ReturnType: &ast.TypeName{Name: "uuid"},
  50. },
  51. {
  52. Name: "uuid_nil",
  53. Args: []*catalog.Argument{},
  54. ReturnType: &ast.TypeName{Name: "uuid"},
  55. },
  56. {
  57. Name: "uuid_ns_dns",
  58. Args: []*catalog.Argument{},
  59. ReturnType: &ast.TypeName{Name: "uuid"},
  60. },
  61. {
  62. Name: "uuid_ns_oid",
  63. Args: []*catalog.Argument{},
  64. ReturnType: &ast.TypeName{Name: "uuid"},
  65. },
  66. {
  67. Name: "uuid_ns_url",
  68. Args: []*catalog.Argument{},
  69. ReturnType: &ast.TypeName{Name: "uuid"},
  70. },
  71. {
  72. Name: "uuid_ns_x500",
  73. Args: []*catalog.Argument{},
  74. ReturnType: &ast.TypeName{Name: "uuid"},
  75. },
  76. }
  77. func UuidOssp() *catalog.Schema {
  78. s := &catalog.Schema{Name: "pg_catalog"}
  79. s.Funcs = funcsUuidOssp
  80. return s
  81. }