From 7d5bff29aa4423bd4b9306f5fa5dfcb0277940d4 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 21 Sep 2016 00:24:03 +0100 Subject: [PATCH] Add additional sql functions --- sql/funcs/ceil.go | 15 +++++++++++++++ sql/funcs/floor.go | 15 +++++++++++++++ sql/funcs/round.go | 15 +++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 sql/funcs/ceil.go create mode 100644 sql/funcs/floor.go create mode 100644 sql/funcs/round.go diff --git a/sql/funcs/ceil.go b/sql/funcs/ceil.go new file mode 100644 index 00000000..c5523f80 --- /dev/null +++ b/sql/funcs/ceil.go @@ -0,0 +1,15 @@ +// Copyright © 2016 Abcum Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package funcs diff --git a/sql/funcs/floor.go b/sql/funcs/floor.go new file mode 100644 index 00000000..c5523f80 --- /dev/null +++ b/sql/funcs/floor.go @@ -0,0 +1,15 @@ +// Copyright © 2016 Abcum Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package funcs diff --git a/sql/funcs/round.go b/sql/funcs/round.go new file mode 100644 index 00000000..c5523f80 --- /dev/null +++ b/sql/funcs/round.go @@ -0,0 +1,15 @@ +// Copyright © 2016 Abcum Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package funcs