Packages
sqlc_gen_gleam
0.0.1
A sqlc plugin for gleam that generates type-safe gleam code for your SQL statements.
Current section
Files
Jump to
Current section
Files
src/sqlc_gen_gleam@config.erl
-module(sqlc_gen_gleam@config).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([get_json_file/1]).
-export_type([config/0]).
-type config() :: {config, binary()}.
-file("/Users/danielkurz/code/daniellionel01/sqlc-gen-gleam/src/sqlc_gen_gleam/config.gleam", 10).
-spec get_json_file(config()) -> {ok, binary()} |
{error, simplifile:file_error()}.
get_json_file(Config) ->
Path = filepath:join(
sqlc_gen_gleam@internal@project:root(),
erlang:element(2, Config)
),
simplifile:read(Path).