Skip to content

Commit

Permalink
Merge pull request #11 from RyougiNevermore/master
Browse files Browse the repository at this point in the history
add comments in generated file
  • Loading branch information
RyougiNevermore committed Jul 22, 2020
2 parents 255bd7d + b9a070f commit 1fb3050
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/dalc/internal/generates/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func makeGenerateQueryData(packageName string, jsonTag bool, queries []*entry.Qu
return
}

var templateSelect = `
var templateSelect = `// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package {{ .Package }}
import (
Expand Down Expand Up @@ -212,7 +212,7 @@ func {{ .Name }}(ctx dalc.PreparedContext, request *{{ .Name }}Request, iterator
}
`

var templateExec = `
var templateExec = `// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package {{ .Package }}
import (
Expand Down
1 change: 1 addition & 0 deletions cmd/dalc/internal/generates/query_exec.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package {{ .Package }}

import (
Expand Down
1 change: 1 addition & 0 deletions cmd/dalc/internal/generates/query_select.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package {{ .Package }}

import (
Expand Down
2 changes: 1 addition & 1 deletion cmd/dalc/internal/generates/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func buildTableDeleteSQL(table *entry.Table) (q string) {
return
}

var tableTemplate = `
var tableTemplate = `// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package {{ .Package }}
import (
Expand Down
1 change: 1 addition & 0 deletions cmd/dalc/internal/generates/table.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package {{ .Package }}

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package dal

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package dal

import (
Expand Down
1 change: 1 addition & 0 deletions example/generated/dal/query.users_domain_events_delete.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package dal

import (
Expand Down
1 change: 1 addition & 0 deletions example/generated/dal/query.users_domain_events_insert.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package dal

import (
Expand Down
1 change: 1 addition & 0 deletions example/generated/dal/query.users_domain_events_list.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package dal

import (
Expand Down
1 change: 1 addition & 0 deletions example/generated/dal/query.users_domain_events_list_v2.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package dal

import (
Expand Down
1 change: 1 addition & 0 deletions example/generated/dal/query.users_domain_events_update.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package dal

import (
Expand Down
1 change: 1 addition & 0 deletions example/generated/dal/query.users_domain_snapshot_list.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DO NOT EDIT THIS FILE, IT IS GENERATED BY DALC
package dal

import (
Expand Down

0 comments on commit 1fb3050

Please sign in to comment.