Skip to content

HaxeFloppa/SillyBase

Repository files navigation

SillyBase

The worst database you will ever come across.

Build the interperter

The project is held together by a single Makefile and can be used to run the interperter as so:

make sillybase

SillyScript: The SillyBase Programming Language

This database comes with it's own programming language that.. isn't SQL!

Make a new query and manage it

To create and alter the data of a new query, you'll need to define the table by writing:

NEW QUERY (make a preferred name for your query)

To alter the data and see the data of a query, you'll need to call it by the address:

NEW QUERY Pennywise
INSERT AT 0 Nickelsmart
LOGS 0

It's a very tedious process, but you can just spam the "INSERT AT" and "LOGS" command to print more than 1 line as shown:

NEW QUERY Pennywise
INSERT AT 0 Nickelsmart
LOGS 0
INSERT AT 0 Quarterintelligent
LOGS 0
INSERT AT 0 Coin-knowledge
LOGS 0

Export data from your queries

You are able to export the queries from your .sib files to a static HTML file by simply writing the following at the end of the file:

NEW QUERY Goobin
INSERT AT 0 Hey
LOGS 0
INSERT AT 0 Are-you
LOGS 0
INSERT AT 0 Goobin?
LOGS 0
SAVE FILE

Since we are only using one query in this project, you should get a static HTML file that would show the following:

<table>
  <tr>
    <td>Goobin?</td>
  </tr>
</table>

Select objects as single variable.

You can assign an address to a 'select' variable that can be called by writing "SELECTED" in the places where you'd usually put in addressess, like so:

NEW QUERY Wrong!
NEW QUERY Wrong!
NEW QUERY Right!

SELECT 2
LOGS SELECTED

About

The worst database you will ever come across.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published