package
0.0.0-20241207170442-d31050cfa1f0
Repository: https://github.com/imran31415/protobuf-db.git
Documentation: pkg.go.dev
# Constants
Binary data.
Boolean.
Date and time.
Double-precision floating-point.
Floating-point number.
Integer type.
Large text field.
Default value for unspecified type.
Variable-length string.
NOT NULL.
PRIMARY KEY.
UNIQUE.
Default value for no constraint.
DEFAULT CURRENT_TIMESTAMP.
Custom default value.
DEFAULT '' (empty string).
DEFAULT FALSE.
DEFAULT TRUE.
No default.
DEFAULT 0 (for numeric fields).
NOW().
No default function.
UUID().
CASCADE.
NO ACTION.
RESTRICT.
SET NULL.
No action.
Composite index across multiple columns.
Full-text search index.
Standard index.
Spatial index.
Default value for no index.
ON UPDATE CURRENT_TIMESTAMP.
No update action.
# Variables
Enum value maps for DbColumnType.
Enum value maps for DbColumnType.
Enum value maps for DbConstraint.
Enum value maps for DbConstraint.
Enum value maps for DbDefault.
Enum value maps for DbDefault.
Enum value maps for DbDefaultFunction.
Enum value maps for DbDefaultFunction.
Enum value maps for DbForeignKeyAction.
Enum value maps for DbForeignKeyAction.
Enum value maps for DbIndexType.
Enum value maps for DbIndexType.
Enum value maps for DbUpdateAction.
Enum value maps for DbUpdateAction.
Custom default value (used only if db_default is DB_DEFAULT_CUSTOM)
optional string custom_default_value = 50007;.
Attributes for numeric types (e.g., AUTO_INCREMENT)
optional bool db_auto_increment = 50015;.
Character set for the column
optional string db_character_set = 50020;.
repeated string db_check_constraint = 50026;.
Collation for the column
optional string db_collate = 50021;.
The name of the database column
optional string db_column = 50001;.
The database column type
optional db_annotations.DbColumnType db_column_type = 50004;.
Composite index definitions.
Composite primary keys.
The database constraints
repeated db_annotations.DbConstraint db_constraints = 50005;.
The default value for the column
optional db_annotations.DbDefault db_default = 50006;.
optional db_annotations.DbDefaultFunction db_default_function = 50022;.
Referenced column.
Referenced table.
Whether the field should be indexed
optional bool db_index = 50003;.
Action on delete.
Action on update.
Total number of digits.
Whether the field is a primary key
optional bool db_primary_key = 50002;.
Number of digits after the decimal point.
Composite unique constraints.
The update action for the column
optional db_annotations.DbUpdateAction db_update_action = 50008;.
No description provided by the author
# Type aliases
Enum for supported database column types.
Enum for supported database constraints.
Enum for supported default values.
Enum for default value functions.
No description provided by the author
Enum for index types.
No description provided by the author