package migra
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A database migration tool and library for OCaml supporting PostgreSQL, MariaDB/MySQL, and SQLite
Install
dune-project
Dependency
Authors
Maintainers
Sources
migra-1.0.1.tbz
sha256=daaaab416e580e5b8dc9f0a74482e142cef6d77b248d995d320f6f882d3a9e35
sha512=8f60494b9ee6ac2e7e69a16eefce69d1e8c22e831fe28f600a42200e3086e2f4d15331323ad1848f7165e1c8ff30fe320445185b7e988325588293a66937966a
doc/migra.engine/Migra_engine/Dialect/SQLite_dialect/index.html
Module Dialect.SQLite_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)"
>