- Save all the files from this gist into a single directory
- Run
docker-compose -f schemacrawler-sqlite-mermaid.yml
// See https://www.online-java.com/6uKwX2DOQ9 | |
public class JavaRounding | |
{ | |
public static void main(String []args) | |
{ | |
System.out.println(0.9 - 0.1); | |
System.out.println(0.7 + 0.1); | |
} | |
} |
{ | |
"meta": { | |
"theme": "short" | |
}, | |
"basics": { | |
"name": "Sualeh Fatehi", | |
"label": "Software Engineer; Open Source Enthusiast; Team Manager", | |
"image": "", | |
"email": "sualeh@hotmail.com", | |
"url": "https://sualeh.github.io/", |
"""Tests for lab1 module.""" | |
import pytest | |
import lab1 | |
def test_minimum_0(): | |
"""Tests an argument of None, and ensures that no error occurs.""" | |
data = None | |
assert lab1.minimum(data) is None |
"""Tests for lab module.""" | |
import pytest | |
import schedule | |
def test_schedule_0(): | |
"""Tests an argument of None, and ensures that no error occurs.""" | |
sch = schedule.Schedule(None, ['Math']) | |
classes: list = sch.classes_for('Mon') | |
for day in ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']: |
"""Test for lab module.""" | |
from unittest import TestCase | |
from schedule import Schedule | |
from unittest import skip | |
class TestLab3ForGrading(TestCase): | |
"""Test for Lab 3.""" | |
def test_schedule_happy_path(self): |
from __future__ import print_function | |
import re | |
from schemacrawler.schema import TableRelationshipType # pylint: disable=import-error | |
from schemacrawler.schemacrawler import IdentifierQuotingStrategy # pylint: disable=import-error | |
from schemacrawler.utility import MetaDataUtility # pylint: disable=import-error | |
print("@startuml") | |
print(""" | |
hide empty methods | |
!define schema(x) package x <<Rectangle>> |
Ever wondered what the tables in your Cassandra database look like? Generate a text file of your Cassandra database with one command. You can run this on any system that has Docker installed.
For now, create a Cassandra database in a Docker container. Later you can use the same technique to conect to your own Cassandra database. Create two Docker Compose files for the Cassandra and SchemaCrawler containers. Also create one more with the CQL database creation script. You can find these files in the GitHub gist for this article.
Then open a command shell in the same folder that you created these files, and run:
docker-compose -f schemacrawler.yml -f cassandra.yml up -d
Ever wondered what the tables in your Trino database look like? Generate a text file of your Trino database with one command. You can run this on any system that has Docker installed.
For now, create a Trino database in a Docker container. Later you can use the same technique to conect to your own Trino database. Create two Docker Compose files for the Trino and SchemaCrawler containers from the GitHub gist for this article.
Then open a command shell in the same folder that you created these files, and run:
docker-compose -f schemacrawler.yaml -f trino.yaml up -d
package com.example; | |
import java.sql.Connection; | |
import java.util.logging.Level; | |
import schemacrawler.crawl.ConnectionInfoBuilder; | |
import schemacrawler.schema.Catalog; | |
import schemacrawler.schema.Column; | |
import schemacrawler.schema.Schema; | |
import schemacrawler.schema.Table; | |
import schemacrawler.schemacrawler.LimitOptionsBuilder; |