Пример #1
0
// DefineTable creates definition for sequences
func DefineTable(settings schema.Generator, s *schema.Schema) ([]byte, error) {
	common.TemplateFuncs["GenerateSQLField"] = GenerateSQLField

	return common.ProcessSingle(&common.Op{
		Template:       TableTemplate,
		PostProcessors: []common.PostProcessor{clean},
	}, s, settings)
}
Пример #2
0
// DefineSequence creates definition for sequences
func DefineSequence(settings schema.Generator, s *schema.Schema) ([]byte, error) {
	return common.ProcessSingle(&common.Op{
		Template:       SequenceTemplate,
		PostProcessors: []common.PostProcessor{clean},
	}, s, settings)
}