<commit_before>autoapi
=======

Automatic api generation from an SQL database, complete with http API endpoint scaffolding code and preconditions checking.


Installation
============

Because I'm a lazy bum, I have not gotten around to setting this up with a proper go-gettable url, so for now, you have to do custom stuff to install it.

1- clone repo to $GOPATH/src/is-a-dev.com/autoapi
2- inside that dir, run go get.
3- same dir, run go install


Usage
=====

autoapi <connectionstring> <dbname>

connectionstring: 'tcp:127.0.0.1:3306*databasename/username/password' <-- this is ugly as all hell and needs to go, I agree with you, now shush.
dbname: 		  your db name

A tiny guide:

cd in a new go project (empty dir under $GOPATH/src/wherever)
autoapi <connectionstring> <dbname>
if everything went according to plan, your dir now looks like this:

$GOPATH/src/whatever/
---bin/
------main.go
---http/
------several folders and/or depending on your db tables
---dbi/
------several folders and/or depending on your db tables
---db/
------mysql/
---------several folders and/or depending on your db tables.
<commit_msg>Go-gettable url simplified the installation process. :P<commit_after>autoapi
=======

Automatic api generation from an SQL database, complete with http API endpoint scaffolding code and preconditions checking.


Installation
============

    go get is-a-dev.com/autoapi

Usage
=====

autoapi <connectionstring> <dbname>

connectionstring: 'tcp:127.0.0.1:3306*databasename/username/password' <-- this is ugly as all hell and needs to go, I agree with you, now shush.
dbname: 		  your db name

A tiny guide:

cd in a new go project (empty dir under $GOPATH/src/wherever)
autoapi <connectionstring> <dbname>
if everything went according to plan, your dir now looks like this:

$GOPATH/src/whatever/
---bin/
------main.go
---http/
------several folders and/or depending on your db tables
---dbi/
------several folders and/or depending on your db tables
---db/
------mysql/
---------several folders and/or depending on your db tables.

{'fraction_non_alphanumeric': 0.1314508276533593, 'fraction_numerical': 0.011197663096397274, 'mean_word_length': 3.4193548387096775, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3413493', 'n_tokens_mistral': 650, 'n_tokens_neox': 604, 'n_words': 266}