schema

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(db *sql.DB, filename string) error

Create executes DDL queries from the given SQL file.

It uses a very naive regexp pattern to identify 'CREATE TABLE' queries in order to first drop the table if it already exists.

If you find yourself expanding the behavior of this function its probably time to stop and look for a proper schema management solution.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL