package migra
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A database migration tool for OCaml supporting PostgreSQL, MariaDB, and SQLite
Install
dune-project
Dependency
Authors
Maintainers
Sources
migra-1.0.0.tbz
sha256=08ceb8f21f00227f21209484ef1eb8cc326ed26a280747798ec5b0b7c5fdd678
sha512=70050833623ba7801a0a31b1700f5473903335c8db2cdf4de5bbd1876180ec0a93907444b42f7a39b6af454303e0ee5f4c3543ca51378d6324583a26b93f535c
doc/migra.engine/Migra_engine/Dialect/MariaDB_dialect/index.html
Module Dialect.MariaDB_dialectSource
Admin database to connect to for CREATE/DROP DATABASE operations
- PostgreSQL: Some "postgres"
- MariaDB: Some "mysql"
- SQLite: None (file-based, no admin DB)
SQL to check if database exists Returns query string with one parameter placeholder
- PostgreSQL: SELECT EXISTS(SELECT 1 FROM pg_database WHERE datname = $1)
- MariaDB: SELECT SCHEMA_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME = ?
- SQLite: "" (N/A - use file system check instead)
Generate SQL to create database
Generate SQL to drop database
Convert timestamp column to string in SELECT
Whether this dialect supports CREATE/DROP DATABASE SQLite is file-based, so it uses file operations instead
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>