From 0522b909177e4ebd963a42f4915653b9e18a352b Mon Sep 17 00:00:00 2001 From: ysandler Date: Thu, 24 Apr 2025 21:10:43 -0500 Subject: [PATCH] doc: update readme to new Select struct --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5ce4d3..7b40ad1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # query-interpreter -**README LAST UPDATED: 04-15-25** +**README LAST UPDATED: 04-24-25** This project is under active development and is subject to change often and drastically as I am likely an idiot. @@ -69,13 +69,29 @@ A `Select` object is shaped as the following: ```go type Select struct { Table string - Columns []string + Columns []Column Conditionals []Conditional OrderBys []OrderBy + Joins []Join IsWildcard bool IsDistinct bool } +type Column struct { + Name string + Alias string + AggregateFunction AggregateFunctionType +} + +type AggregateFunctionType int +const ( + MIN AggregateFunctionType = iota + 1 + MAX + COUNT + SUM + AVG +) + //dependency in query.go type Conditional struct { Key string