modulesync

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package modulesync syncs module-local SQL assets into global sqlc input folders.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(workspaceRoot string) error

Sync copies module-local SQL files into root db/schema and db/queries.

Types

type SourceFile

type SourceFile struct {
	// Module is the source module name.
	Module string
	// Source is the module-local SQL file path.
	Source string
	// Target is the synced root-level SQL file path.
	Target string
}

SourceFile describes one module-local SQL file sync mapping.

Jump to

Keyboard shortcuts

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