Open agershun opened 9 years ago
I feel like the Excel features could be a plugin that you use if you need it
We need to be accurate with Excel. According GitHub stats many people come to AlaSQL from StackOverflow because examples with import/export to Excel. Anyway, we need to move to plugin direction.
God point.
idea:
What about having most things as plugins, but pre compile commonly used stuff into the "main" alasql.js - By that alasql.js was a preselected mix of alasql-core.js plus alasql-pluginx.js, alasql-pluginy.js, alasql-pluginz.js
And if size is important one can download/link to a custom set of core + plugins.
Question: would the alaSQL parser itself even be a plugin?
We can maintain and test three versions:
Good point.
Is "tiny" a good word to use? it does not describe so much. I have a feeling a word like "skeleton", "bone", "glue", "center", "connector", "stripped" or something like that would be more communicative.
If you feel "tiny" is best we go with that...
Yes, 'tiny' is not the best name. Other variants:
alasql.engine.js
alasql.heart.js
alasql.seed.js
alasql.sesame.js
alasql.box.js
alasql.noparser.js
I really like alasql.engine.js
Specially thinking about whats left in that code: all the functions to store and select data. Its basically our pure database engine (without a parser to interact with it)
Let it be so!
Отправлено с iPhone
9 июня 2015 г., в 20:02, Mathias Rangel Wulff notifications@github.com написал(а):
I really like alasql.engine.js
— Reply to this email directly or view it on GitHub.
I imagine we structure the src different with a more modular approach.
Let me know if you start rearranging files - so I can stop editing them...
Not now. I will finish PIVOT thing in two days, before that I will not push commits.
What structure for src
is optimal in this case?
For example:
src/engine
src/core
src/plugins
src/worker
Do you have other variants?
Looks good! Was thinking having all plugins as its own folder in same level as engine and worker
Ok, it is easy. So, we just add three folders for engine, core, and worker... BTW we do not need to have separate directory for engine/core, but rather let's create directory for parser.
So, now it will be: src/
`Please, do not change this structure until I merge the PIVOT changes. I will notify you, when we can start.
Thinking: the engine must be in a folder called engine - and it becomes "core" when we merge it with parser?
Ok. This will focus us more on the 'enginess' of this part of the library
Отправлено с iPhone
10 июня 2015 г., в 9:41, Mathias Rangel Wulff notifications@github.com написал(а):
Thinking: the engine must be in a folder called engine - and it becomes "core" when we merge it with parser?
— Reply to this email directly or view it on GitHub.
It seems there will be a lot of plugins, wouldn't it be better for put them all in a src/plugins
folder like your first idea ?
I feel like if everything is directly in src
it won't be clear that these are all plugins, and the alasql heart will be lost in the plugins jungle.
May be we separate them by types:
We can create a list of features to be removed for the AlaSQL core to minimize the sze: