package
0.0.0-20241222215834-09a60126efae
Repository: https://github.com/tucats/ego.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddStaticRoutes accepts an endpoint router, and adds to it the endpoint routes used by the Tables services.
Authorized uses the database located in the Ego tables database to determine if the proposed operation is permitted for the given table.
CreateTablePermissions creates a row for the permissions data for a given user and named table, with the permissions enumerated as the last parameters.
DeletePermissions deletes one or permissions records for a given username and table.
DeleteRows deletes rows from a table.
DeleteTable will delete a database table from the user's schema.
GrantPermissions is used to grant and revoke permissions.
InsertRows updates the rows (specified by a filter clause as needed) with the data from the payload.
InsertRows updates the rows (specified by a filter clause as needed) with the data from the payload.
ListTables will list all the tables for the given session.User.
ReadRows reads the data for a given table, and returns it as an array of structs for each row, with the struct tag being the column name.
ReadAllPermissions reads all permissions for all tables.
ReadPermissions reads the permissions data for a specific table.
ReadRows reads the data for a given table, and returns it as an array of structs for each row, with the struct tag being the column name.
ReadTable handler reads the metadata for a given table, and returns it as an array of column names and types.
RemoveTablePermissions updates the permissions data to remove references to the named table.
SQLTransaction executes a series of SQL statements from the REST client and attempts to execute them all as a single transaction.
TableCreate handler creates a new table based on the JSON payload, which must be an array of DBColumn objects, defining the characteristics of each column in the table.
UpdateRows updates the rows (specified by a filter clause as needed) with the data from the payload.
UpdateRows updates the rows (specified by a filter clause as needed) with the data from the payload.