rom

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

50 most recent check-ins

2023-04-24
22:41
fix for when names are keywords names like "check" are keywords. if they are used as name for tables etc. they need to be wrapped in the appropriate quotes. usually " is used, but one never knows with DBMS systems. to prevent futher problems, quoting and joining (like table.column) of identifiers is done with database specific functions. check-in: 210768274e user: ruben tags: trunk, v0.1.0, v0.1.1
22:40
remove links to services of haters. Leaf check-in: 0c4bf1b7c2 user: ruben tags: trunk
2021-09-13
12:52
postgres feature branch slipped into the generated documentation check-in: 930d69cd53 user: code@rbn.im tags: trunk
12:44
relicense from AGPL to MPL there was some criticism regarding the choice of AGPL3. a valid point is that the generated code is probably licensed AGPL3 too, due to templaing being used. licensing this MPL 2.0 should fix this problem, only the generated database access code has to be licensed MPL 2.0, the rest of the program can have it's own license (see https://www.mozilla.org/en-US/MPL/2.0/FAQ/ question 11). Leaf check-in: e5ea013280 user: code@rbn.im tags: trunk, MPL
12:34
WIP on master: f848428 fix sqlite tests Leaf check-in: e16329cb3e user: code@rbn.im tags: trunk, refs/stash
12:34
index on master: f848428 fix sqlite tests check-in: 2c1fdc99d8 user: code@rbn.im tags: trunk, refs/stash
2021-07-18
14:09
more postgres work table, columns and primary key queries and code adjusted. foreign keys need some additional work as postgres uses another representation for them in information_schema. Leaf check-in: d20e745d10 user: code@rbn.im tags: trunk, postgres
2021-07-11
13:38
just copy over mysql and see how far we'll get check-in: 27ebc3d4c8 user: code@rbn.im tags: trunk, postgres
13:33
prototype to have different placeholders per DBMS postgres uses $1, $2, ..., $n as placeholders in queries, so we have to have some way to change what is used in the generated code. this adds this functionality with a template-function "placeholder", which is assigned a function matching the DBMS in use. the templates need to be changed for this, the change in delete.tmpl is just a quick test to validate this approach. Leaf check-in: 17ed52b12c user: code@rbn.im tags: trunk, placeholders
2021-06-03
12:43
fix sqlite tests i should really wait with tagging versions until the tests are done :) check-in: e12592adc3 user: code@rbn.im tags: trunk, MPL
2021-06-01
12:22
fix wrong foreign constraint names in sqlite every foreign constraint but the first of each table had a wrong name generated. the name was generated as parent-table-name + constraint-id instead of table-name + constraint-id (as done for the first foreign constraint of every table). this led to duplicated names in the generated go code. Leaf check-in: 1c7fdece10 user: code@rbn.im tags: trunk, v0.0.18
11:57
add note about using SQLite features like fts5 check-in: f193865405 user: code@rbn.im tags: trunk, v0.0.17
2021-04-25
09:37
add clone method, update and fix docs check-in: 8a52c3c91e user: code@rbn.im tags: trunk, v0.0.16
2021-04-15
11:45
export mysql type map check-in: 8042ded366 user: code@rbn.im tags: trunk, v0.0.15
11:26
make sqlite type maps a parameter to sqlite.DB check-in: 76c2db2eea user: code@rbn.im tags: trunk
2021-04-14
16:56
add type map to sqlite the driver functionality of sqlite just doesn't really cut it. the type map implementation still tries to match the type affinities and storage classes as described in [1], while giving some flexibility regarding which types are used in the generated code. [1] https://sqlite.org/datatype3.html check-in: 394af7dd96 user: code@rbn.im tags: trunk
2021-04-11
00:21
fix broken INSERT code generation check-in: dc3b9b1683 user: code@rbn.im tags: trunk, v0.0.14
2021-04-03
17:17
hopefully unique foreign constraint names with sqlite check-in: 72dd96bfb6 user: code@rbn.im tags: trunk, v0.0.13
16:40
guard against empty/nil values in output check-in: 155e438205 user: code@rbn.im tags: trunk, v0.0.12
16:17
update documentation check-in: bd94ca1781 user: code@rbn.im tags: trunk, v0.0.11
11:20
unexport sql query consts check-in: 24d3986ac4 user: code@rbn.im tags: trunk, v0.0.10
11:19
update foreign docs check-in: acf2efa1d2 user: code@rbn.im tags: trunk
2021-04-02
23:02
fix appending empty foreign constraint check-in: 8baf8f1f97 user: code@rbn.im tags: trunk
22:47
clean tests check-in: b2ce5b2736 user: code@rbn.im tags: trunk
17:57
fix several bugs in foreign constraint handling reworked the template for foreign constraints, they now don't rely on other generated methods anymore. fix bugs in mysql foreign constraint reading. check-in: 8a84db9c59 user: code@rbn.im tags: trunk
15:53
fix sqlite wrongly naming first foreign constraint check-in: 8bbbbab2b8 user: code@rbn.im tags: trunk
2021-03-29
01:50
add missing file for docs check-in: c051a235e3 user: code@rbn.im tags: trunk
01:48
select exported or unexported struct generation it is better for code quality if the generated table structs aren't exported. they can then be embedded in exported structs which also implement the business logic. as it might be easier to use exported structs for testing purposes, a switch is added to generate them exported. check-in: fb583fa9c8 user: code@rbn.im tags: trunk
01:47
reverse foreign methods check-in: 3c7bc2ab8b user: code@rbn.im tags: trunk
2021-03-27
16:28
pin license to AGPLv3 check-in: 56aa2f21cc user: code@rbn.im tags: trunk, v0.0.9
12:30
update documentation check-in: d0f3d2aa7c user: code@rbn.im tags: trunk, v0.0.8
12:20
fix type mapping to use sql.NullInt32 check-in: 423948e9c2 user: code@rbn.im tags: trunk
2021-03-26
18:34
foreign constraints check-in: 32d7777b25 user: code@rbn.im tags: trunk
2021-03-25
15:19
use go:embed for templates check-in: 6b43aef6fc user: code@rbn.im tags: trunk, v0.0.7
2021-03-22
13:05
foreign keys with sqlite check-in: 6ecf59b2fa user: code@rbn.im tags: trunk
11:44
sqlite exported Views redirection to views check-in: 4b357da1ff user: code@rbn.im tags: trunk
2021-03-19
12:56
tests for views check-in: ad14f8ff10 user: code@rbn.im tags: trunk, v0.0.6
12:55
documentation check-in: f236c5f37b user: code@rbn.im tags: trunk
2021-03-17
12:35
update documentation check-in: 9321440614 user: code@rbn.im tags: trunk, v0.0.5
12:31
finer grained templates, read & gen views check-in: 0543f27571 user: code@rbn.im tags: trunk, v0.0.4
2021-03-16
17:30
update documentation check-in: 1ab6ada3ca user: code@rbn.im tags: trunk
17:10
add stored procedures support check-in: 959526350d user: code@rbn.im tags: trunk
2021-03-09
12:55
add note about reading stored procedures and functions check-in: b7f0a84bf1 user: code@rbn.im tags: trunk
12:43
documentation about generated code check-in: 151bb613e6 user: code@rbn.im tags: trunk, v0.0.3
2021-03-06
18:15
better help text for flags check-in: 502140cc92 user: code@rbn.im tags: v0.0.2, trunk
18:15
ScanFrom generation and some fixes in output templates check-in: 1f363d1555 user: code@rbn.im tags: trunk
2021-03-04
18:58
remove committing from makefile, add go fmt check-in: 2954080430 user: code@rbn.im tags: trunk
2021-03-03
17:05
go fmt check-in: c475354352 user: code@rbn.im tags: trunk
16:39
regenerate documentation check-in: 418649f810 user: code@rbn.im tags: trunk
16:38
split up templates into table, methods, primary and foreign check-in: e5e79fdb38 user: code@rbn.im tags: trunk