CREATE USER smith IDENTIFIED BY password;
GRANT CREATE TABLE TO smith;
GRANT CREATE SESSION TO smith;
commit;
SELECT username, account_status FROM dba_users
WHERE username = 'SMITH';
CREATE SCHEMA AUTHORIZATION smith;
package com.example; | |
import org.apache.calcite.adapter.jdbc.JdbcCatalogSchema; | |
import org.apache.calcite.jdbc.CalciteConnection; | |
import org.apache.calcite.jdbc.JavaTypeFactoryImpl; | |
import org.apache.calcite.rel.type.RelDataTypeField; | |
import org.apache.calcite.schema.SchemaPlus; | |
import org.apache.calcite.schema.Table; | |
import schemacrawler.schema.Catalog; | |
import schemacrawler.schemacrawler.SchemaCrawlerOptions; |
I keep a number of personal files on my computer, organized in folders. These could be photos, financial information, and so on. As I work with these files, I add to them, sometimes modify them to edit a photo, or add to notes, and move or rename them in various ways to reorganize. I wanted a good way to keep track of these changes.
My first thought is that I would write a Python program to scan the folders, and print MD5 checksums of each file in a readable way. This way, I could save off the old "index", and compare it with a new index using a standard diff tool. My attempt at this program is sualeh/diff-name-only. My disclaimer if you look at the code is that I am still teaching myself Python, and have not reached the heights of Pythonic Zen.
As I was writing this code, I was struck by how much of what I needed was already done by a standard source control system such as git. I could simply use git, and solve my problems. However, git keeps tr
This was tested on MacOS 10.14.5 on 2019-07-16
schemacrawler is a free and open-source database schema discovery and comprehension tool. It can be invoked from the command-line to produce, using GraphViz, images/pdfs from a SQLite (or other database type) file. It can be used from the command-line to generate schema diagrams like these:
<NotepadPlus> | |
<UserLang name="Todo.txt" ext="Todo.txt" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" /> | |
<Prefix Keywords1="yes" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00x 01 02((EOL)) 03 04</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |