Skip to content
Extracts the PostgreSQL metadata and build an SQL Model (In progress).
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BaselineOfPgMetadata.package
PgMetadata-Core.package
PgMetadata-Node-Tree-Parser.package
PgMetadata-SQL-Extractors.package
PgMetadata-SQL-Model-Objects.package
PgMetadata-tests.package
.filetree
.project
.properties
LICENSE
README.md

README.md

PgMetadata

Extracts the PostgreSQL metadata and build an SQL Model (In progress).

How to install

Metacello new
    baseline: 'PgMetadata';
    repository: 'github://olivierauverlot/PgMetadata';
    load

How to use PgMetadata

The class PgMetadata returns an instance of PgDatabase that describes the SQL schema.

| metadata sqlObjects |
metadata := PgMetadata database: 'mydb' connection: (
PgConnection
	hostname: 'localhost'
	port: 5432
	database: 'dbname'
	user: 'username'
	password: 'password'
).
pgDB := metadata extractMetadata.
sqlObjects := pgDB objects
You can’t perform that action at this time.