Skip to content

main.aug ​

A database with SQLite · Source and specification

Files in this project

Code ​

aug
// aug-spec: "main.aug.md" explains this file. Read it before changes; refresh with aug spec.
import storedName from database
import SqliteError from "https://github.com/GreenPandaStudios/aug-sqlite#43d8c33289b6b9310199f8c65fb83d48cd9dc310"
try:
    print(value=storedName())
catch SqliteError error:
    print(value=error.message)
aug
// aug-spec: "main.aug.md" explains this file. Read it before changes; refresh with aug spec.
import storedName from database
import SqliteError from "https://github.com/GreenPandaStudios/aug-sqlite#43d8c33289b6b9310199f8c65fb83d48cd9dc310"
try {
    print(value=storedName())
}
catch SqliteError error {
    print(value=error.message)
}

Compiled specification ​

Interactions and sequences

Startup ​

It prints storedName. If this work raises SqliteError as error, it prints error.message. source

Dependencies ​

It uses SqliteError (message) from https://github.com/GreenPandaStudios/aug-sqlite#43d8c33289b6b9310199f8c65fb83d48cd9dc310. It uses storedName from database.

Built-in operations follow the language reference.

Last updated:

The world runs on language