aboutsummaryrefslogtreecommitdiffstats
path: root/elements.ml (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-08-13add searching by element nameHEADmasterGravatar Peter McGoron 1-1/+4
2021-08-13store NULL when an element's discovery year is "Ancient"Gravatar Peter McGoron 1-0/+1
The only elements that do not have a discovery year are those that have been known for about as long as we have historical records. It is highly unlikely that we will discover a new element that will not have a definite year of discovery, so NULL can be used to refer to elements so old nobody knows who discovered it first.
2021-08-13Use lowercase for all element names and symbolsGravatar Peter McGoron 1-5/+6
The matching algorithm will work better when all names are normalized. For instance, a search of "iorn" will not list "iron" in the first three matches, but a search of "Iorn" will have "iron" as the first match.
2021-08-13makedb: fix "searchtable" being refered to its old name "cache"Gravatar Peter McGoron 1-1/+1
2021-08-13makedb: split newlines for each value and parameterGravatar Peter McGoron 1-14/+50
2021-08-13use Arg.bad instead of Failure exception when positional atomic number argumentsGravatar Peter McGoron 1-1/+4
2021-08-13add documentation; add search over atomic numberGravatar Peter McGoron 1-3/+18
2021-08-10change 'cache' to 'searchtable' in databaseGravatar Peter McGoron 1-4/+4
2021-08-10generate database from command line argumentsGravatar Peter McGoron 1-3/+16
2021-08-10add command line arguments parserGravatar Peter McGoron 1-2/+39
2021-08-08makedb: properly add cacheGravatar Peter McGoron 1-9/+10
2021-08-08makedb: make cached automatonGravatar Peter McGoron 2-8/+38
2021-08-08makedb: finalize stmtGravatar Peter McGoron 1-2/+4
2021-08-08makedb: add cache tableGravatar Peter McGoron 1-1/+5
2021-08-08use sqlite to store tableGravatar Peter McGoron 4-27/+56