Debian Codegraph @

CHANGELOG

raw
1 # -*- mode: org -*-
2 * v2.4.1 2026-06-01
3
4 - Use ~llama~ package.
5
6 * v2.4.0 2026-01-01
7
8 - Neither ignore nor assume ~eieio-backward-compatibility~. #11
9
10 - Various build improvements.
11
12 * v2.3.2 2025-11-01
13
14 Thoughts and whitespace.
15
16 * v2.3.1 2025-10-11
17
18 Thoughts and whitespace.
19
20 * v2.3.0 2025-09-01
21
22 Dropped support for Emacs 26 and 27.
23
24 * v2.2.2 2025-06-01
25
26 Thoughts and whitespace.
27
28 * v2.2.1 2025-03-01
29
30 Thoughts and whitespace.
31
32 * v2.2.0 2025-01-26
33
34 - ~closql-dset~ can now be told to ignore unknown connections. ae8e78f
35
36 * v2.1.0 2024-12-01
37
38 - Adjusted to take advantage of EmacSQL v4.1.0.
39
40 * v2.0.0 2024-08-08
41
42 - Dropped support for Emacs 25. 22f67f5
43
44 - Database classes no longer derive from a connector class. c3b34a6
45
46 - Added two new generic functions ~closql-dref~ and ~closql-dset~, which
47 are used by our advices to ~eieio-oref~ and ~eieio-oset~, when they deal
48 with slots whose values aren't completely stored in the object's
49 primary table. This makes it possible to implement slot-specific
50 behavior. 296a356, 27aa7e5
51
52 - Originally the ~:closql-table~ slot property was used for slots that
53 involved the use of two tables, but later it was additionally abused
54 for slots that involve three tables. Now such slots use a new slot
55 property, ~:closql-tables~. The values of these slots can now be
56 accessed using ~oref,~ and the old hack ~closql--iref~ has been removed.
57
58 - The value of ~:closql-tables~ slots now begin with the id. dae0256
59
60 - Accessing the value of indirect slots is much faster now, and the
61 value is cached, making repeated slot access even faster. 09ad40f,
62 dc8cacb
63
64 * v1.2.1 2022-02-16
65
66 - Refreshed metadata.
67
68 * v1.2.0 2021-09-28
69
70 - By default ~closql-get~ no longer proactively resolves all slots,
71 which is never actually unnecessary but often extremely expensive.
72
73 * v1.1.0 2021-09-27
74
75 - Added support for alternative database connectors.
76 The ~closql-database~ class is abstract now, making it necessary to
77 define a class that derives from that and also from a connector
78 class.
79
80 * v1.0.6 2021-06-16
81
82 - Adjusted to how unbound slots are represented in Emacs 28.
83
84 * v1.0.5 2021-05-30
85
86 - Cosmetics.
87
88 * v1.0.4 2020-07-20
89
90 - Added new functions ~closql--db-get~ and ~closql--db-set~.
91
92 * v1.0.3 2020-06-13
93
94 - When any class is autoloaded, then that could still caused a
95 recursive load.
96
97 * v1.0.2 2020-05-22
98
99 - When any class is autoloaded, then that caused a recursive load.
100
101 * v1.0.1 2019-12-05
102
103 - Adjusted to incompatibles changes to Eieio internals that broke
104 some code that relied on implementation details.
105
106 * v1.0.0 2018-10-31
107
108 - Added optional ~replace~ argument to ~closql-insert~. It non-nil,
109 then this function uses ~INSERT OR REPLACE INTO~ instead of just
110 ~INSERT INTO~, allowing the caller to replace an existing row.
111
112 - Added function ~closql-reload~, which, given a potentially outdated
113 object, returns an up-to-date object.
114
115 - Replaced the slot property ~:closql-columns~ with ~:closql-table~. The
116 value has to be a table instead of a vector of columns and its name
117 can be different from that of the slot, which previously was not
118 possible. The slots are now determined by querying the database.
119
120 - Added new experimental function ~closql--iref~.
121
122 * v0.6.0 2018-07-01
123
124 - Added new ~closql-object~ class slot ~closql-order-by~, which allows
125 specify how the values of a related ~:closql-class~ slot are ordered.
126
127 - An initially unbound slot for which neither ~:closql-class~ nor
128 ~:closql-columns~ is set caused an error in ~closql--resolve-slots~.
129
130 * v0.5.2 2018-05-21
131
132 - Fixed a bug that caused ~closql-insert~ to fail when using Emacs 25
133 ever since Emacs 26 is supported too.
134
135 - Added new utility function ~closql-format~.
136
137 * v0.5.1 2017-12-19
138
139 - A recent change on Emacs 27.0.50 causes an EmacSQL bug to surface.
140 That was fixed upstream and the dependency was bumped to bring in
141 that fix.
142
143 * v0.5.0 2017-11-27
144
145 - Emacs 26.1 will use a new ~record~ type instead of vectors.
146 Closql can now deal with both internal representations.
147
148 * v0.4.0 2017-09-19
149
150 - The value of a slot can now be a list of objects. Like for a slot
151 whose value is a list of lists, the elements have to be uniform, in
152 this case they have to share a base-class, and they are unordered.
153
154 Objects in such secondary tables can be queried directly, using the
155 same functions that are used to query objects in the primary table.
156 For secondary tables the new optional ~class~ argument of these query
157 functions has to be provided.
158
159 Note that ~oset~ currently does not support "list of objects" slots.
160
161 - Access information is now stored in slots of the object base class
162 instead of in the database class. This change was necessary to
163 allow storing objects of different types in different tables.
164
165 The names of all of these slots are prefixed with ~closql-~. The
166 existing slot ~database~ was renamed to ~closql-database~ and the slot
167 property ~:columns~ was renamed to ~:closql-columns~.
168
169 - Class tags are now automatically abbreviated when being stored in
170 the database because that gives friendlier results when querying it
171 direct.
172
173 It was already possible to do that before by implementing the
174 generic functions ~closql--class-to-sql~ and ~closql--sql-to-class~.
175 These functions were replaced by the functions ~closql--abbrev-class~
176 and ~closql--expand-abbrev~, which have different signatures and allow
177 subclasses to strip a common prefix and/or suffix by setting the
178 object slots ~closql-class-prefix~ and ~closql-class-suffix~ instead of
179 having to define methods for these subclasses.
180
181 - Added new functions ~closql-query~. It calls either ~closql-entries~
182 or if its ~select~ argument is non-nil ~closql-select~. If ~select~ is a
183 symbol, then return a list of elements, unlike ~closql-select~, which
184 would return a list of lists with one element each.
185
186 - The function ~closql--where-class-in~ isn't merely intended for
187 internal use anymore and was renamed to ~closql-where-in-class~.
188
189 - Added new internal function ~closql--list-subbrevs~.
190
191 - The internal function ~closql--oref-default~ was removed.
192
193 - The function signature of ~closql--remake-instance~ changed.
194
195 * v0.3.3 2016-12-31
196
197 - Repository moved to https://github.com/emacscollective/closql.
198
199 * v0.3.2 2016-11-26
200
201 - Update links.
202
203 * v0.3.1 2016-11-03
204
205 - Fixed updating of rows in secondary tables when the key is ~nil~.
206
207 * v0.3.0 2016-10-25
208
209 - Setting the value of a slot whose value is stored in a secondary
210 table no longer deletes and recreates all rows.
211
212 - ~closql--db-init~ no longer sets the primary key of secondary tables.
213
214 * v0.2.0 2016-09-02
215
216 - Text properties are now being removed when storing string in the
217 database.
218
219 * v0.1.0 2016-04-15
220
221 - Initial public alpha release.