Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPathNotSet = errors.New("Migrations path not set. \nPlease set it using --path flag or in your prest config file") ErrURLNotSet = errors.New("Database URL not set. \nPlease set it using --url flag or configure it on your prest config file") )
View Source
var RootCmd = &cobra.Command{ Use: "prestd", Short: "Serve a RESTful API from any PostgreSQL database", Long: `prestd (PostgreSQL REST), simplify and accelerate development, ⚡ instant, realtime, high-performance on any Postgres application, existing or new`, Run: func(cmd *cobra.Command, args []string) { if config.PrestConf.Adapter == nil { slog.Warningln("adapter is not set. Using the default (postgres)") postgres.Load() } startServer() }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.